In order to provide examples for PySide2 and PyQt5 I have used Qt.py
:
python -m pip install Qt.py
In some of the examples it is necessary to use classes or functions that are not provided by PyQt5 or PySide2, so the qmissings
module must be used, for this follow the documentation.
To convert the Qt.py examples to PyQt5 you must replace:
Qt.py | PyQt5 |
---|---|
Signal | pyqtSignal |
Slot | pyqtSlot |
Property | pyqtProperty |
Name | Link |
---|---|
pingpong | https://doc.qt.io/qt-5/qtdbus-pingpong-example.html |
Name | Link |
---|---|
rasterwindow | https://doc.qt.io/qt-5/qtgui-rasterwindow-example.html |
Name | Link |
---|---|
audiodevices | https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiodevices-example.html |
Name | Link |
---|---|
googlesuggest | https://doc.qt.io/qt-5/qtnetwork-googlesuggest-example.html |
loopback | https://doc.qt.io/qt-5/qtnetwork-loopback-example.html |
Name | Link |
---|---|
cenumerator | https://doc.qt.io/qt-5/qtserialport-cenumerator-example.html |
enumerator | https://doc.qt.io/qt-5/qtserialport-enumerator-example.html |
Name | Link |
---|---|
lightmaps | https://code.qt.io/cgit/qt/qtbase.git/tree/examples/embedded/lightmaps |
styleexample | https://code.qt.io/cgit/qt/qtbase.git/tree/examples/embedded/styleexample |