Yet another collection of those core widgets for a modern Qt application.
Backend Support: Currently only PySide6 is supported.
pip install qorewidgets
There are two ways to integrate QoreWidgets into your project:
Most Qore Widgets are designed as drop-in replacements for their corresponding base widgets.
Tip: If you installed PySide6 using pip, the designer is also installed as pyside6-designer
executable.
- Create the base widget in Qt Designer
- Right-click on the widget and select "Promote To..."
- Enter the desired Qore Widget name as the promoted class name, and "QoreWidgets.h" as the header file
- Use the
pyside6-uic
tool (also installed with PySide6) to convert the .ui file to a .py file - the base widget will be replaced by the appropriate Qore Widget during the conversion
Refer to Qt Doc: using custom widgets in designer for more detailed instructions.
For more infomation, check out the QoreWidgets Documentation.
The QoreWidgets Gallery app provides examples about how to use these widgets. To run the gallery app:
git clone https://github.com/du33169/QoreWidgets
cd QoreWidgets
pip install PySide6
python gallery/app.py
Note: the gallery app will first attempt to import QoreWidgets from installed python packages. If not installed, it will then import from the local src
directory.
QoreWidgets mainly focus on functional enhancements with minimal decoration. However, they should fit in with your global theme or stylesheets, for example, PyQtDarkTheme.