Skip to main content

Overview

A Qt package that lets you use web URLs as tooltips in Qt widgets.

  • Free software: BSD 2-Clause License

Requires

PySide or PyQt4 with QtWebKit

Installation

pip install qwebtip

How To Use

Simply import qwebtip’s main model, qweburltip and set it to override one of your widget’s tooltips with some URL.

The next time you build your application and hover over that widget, a URL box will be displayed, instead.

from qwebtip import qweburltip

url = 'http://pyqt.sourceforge.net/Docs/PyQt4/qwebframe.html'
qweburltip.override_tool_tip(QtWidgets.QLabel('Some label'), url)

How To Use - Customizing

Setting a custom tooltip size

from qwebtip import qweburltip

url = 'http://pyqt.sourceforge.net/Docs/PyQt4/qwebframe.html'
qweburltip.override_tool_tip(
   QtWidgets.QLabel('Some label'),
   url,
   width=100,
   height=400,
)

Opening the URL at a specific header section

url = 'http://pyqt.sourceforge.net/Docs/PyQt4/qwebframe.html'
qweburltip.override_tool_tip(
   self.line_edit,
   element_selector.UnknownHeaderSelector(
       url,
       'Method Documentation',
   ),
)

Disabling Caching

Loaded webpages are cached so that successive loads can be kept fast. To disable caching, simply set the following environment variable.

export QWEBTIP_DISABLE_CACHING=1

This is useful for debugging but is not generally not recommended.

Changelog

0.1.0 (2018-12-04)

  • First release on PyPI.

Metadata

Release files for qwebtip 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qwebtip 0.1.0
File Size Uploaded Provenance Actions
qwebtip-0.1.0.tar.gz 12.0 kB Without provenance Details for qwebtip-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qwebtip 0.1.0
File Interpreter ABI Platform Actions
qwebtip-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for qwebtip-0.1.0-py2.py3-none-any.whl

Total release size: 20.4 kB

Release files / qwebtip-0.1.0.tar.gz

Download URL qwebtip-0.1.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3fcda91d6ecd9c5e35218ad3b198ebbfe5a74936519a0f55a467604b23996062
BLAKE2b-256 checksum
How to use checksums
6cf0fbd234a9a20297cecc86cd6412b089d8b18ba1f84aa609a6b8639053c5ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.5

Release files / qwebtip-0.1.0-py2.py3-none-any.whl

Download URL qwebtip-0.1.0-py2.py3-none-any.whl
Size 8.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c96e63225673030a65b90e8d9eda93d545ad7466b37152da1afa97f0cdf6d485
BLAKE2b-256 checksum
How to use checksums
acc964cb09ad958e4a56e0ed363df77c2da3b0dd22bb504eaf2e950703e12513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.5

Security for qwebtip 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page