Registry / web-framework / pyqt5-tools

pyqt5-tools

JSON →
library5.15.9.3.3pypypiunverified

PyQt5-tools provides Qt Designer, Qt Linguist, and other Qt tools for PyQt5 development. Current version 5.15.9.3.3, with irregular releases. It bundles binaries for Windows and Linux to avoid manual installation of Qt tools.

pip install pyqt5-tools
INSTALL
IMPORT
SIG · PYQT5-TOOLS
P
pyqt5-tools
web-frameworkpythonv5.15.9.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

QtDesigner launch
from pyqt5_tools import QtDesigner; QtDesigner.run()
import pyqt5_tools; pyqt5_tools.designer()
Old API used direct module attribute; correct is via QtDesigner class

Launch Qt Designer from Python code.

import os from pyqt5_tools import QtDesigner # Optionally set designer path os.environ.setdefault('QT_QPA_PLATFORM_PLUGIN_PATH', '') QtDesigner.run()
Debug
Known issues
breakingIn version 5.15.x, the import path changed from `pyqt5_tools.designer` to `pyqt5_tools.QtDesigner.run()`. Direct function calls break.
fix
Use `from pyqt5_tools import QtDesigner; QtDesigner.run()`
affects: >=5.15
gotchaPyQt5-tools does not install PyQt5 automatically. Must install PyQt5 separately.
fix
Run `pip install PyQt5` before or alongside pyqt5-tools.
affects: all
gotchaOn Linux, Qt platform plugin errors may occur: 'Could not load the Qt platform plugin "xcb"'. This is due to missing system libraries.
fix
Install system packages: `sudo apt install libxcb-xinerama0` or use offscreen platform: `export QT_QPA_PLATFORM=offscreen`
affects: all
Upgrade
Version history
5.15.9.3.3latest on PyPI · released Mar 27, 2023
Audit
Dependencies
PyQt5requiredRuntime dependency; tools are designed to work with PyQt5
Agent activity
20 hits · last 30 days
node
20
Resources