Skip to content

Latest commit

 

History

History

official

Prerequisites

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.

Conversion

To convert the Qt.py examples to PyQt5 you must replace:

Qt.py PyQt5
Signal pyqtSignal
Slot pyqtSlot
Property pyqtProperty

Modules

Qt Core

Name Link
sharedmemory https://doc.qt.io/qt-5/qtcore-ipc-sharedmemory-example.html
localfortuneclient https://doc.qt.io/qt-5/qtcore-ipc-localfortuneclient-example.html
localfortuneserver https://doc.qt.io/qt-5/qtcore-ipc-localfortuneserver-example.html

Qt Charts

Name Link
areachart https://doc.qt.io/qt-5/qtcharts-areachart-example.html
audio https://doc.qt.io/qt-5/qtcharts-audio-example.html
barchart https://doc.qt.io/qt-5/qtcharts-barchart-example.html
barmodelmapper https://doc.qt.io/qt-5/qtcharts-barmodelmapper-example.html
boxplotchart https://doc.qt.io/qt-5/qtcharts-boxplotchart-example.html
callout https://doc.qt.io/qt-5/qtcharts-callout-example.html
candlestickchart https://doc.qt.io/qt-5/qtcharts-candlestickchart-example.html

Qt DBus

Name Link
pingpong https://doc.qt.io/qt-5/qtdbus-pingpong-example.html

Qt Gui

Name Link
rasterwindow https://doc.qt.io/qt-5/qtgui-rasterwindow-example.html

Qt Multimedia

Name Link
audiodevices https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiodevices-example.html

Qt Network

Name Link
googlesuggest https://doc.qt.io/qt-5/qtnetwork-googlesuggest-example.html
loopback https://doc.qt.io/qt-5/qtnetwork-loopback-example.html

Qt SerialPort

Name Link
cenumerator https://doc.qt.io/qt-5/qtserialport-cenumerator-example.html
enumerator https://doc.qt.io/qt-5/qtserialport-enumerator-example.html

Qt Sql

Name Link
cachedtable https://doc.qt.io/qt-5/qtsql-cachedtable-example.html
drilldown https://doc.qt.io/qt-5/qtsql-drilldown-example.html
sqlwidgetmapper https://doc.qt.io/qt-5/qtsql-sqlwidgetmapper-example.html

Qt Quick Controls 2

Name Link
automotive https://doc.qt.io/qt-5/qtquickcontrols-imagine-automotive-example.html
flatstyle https://doc.qt.io/qt-5/qtquickcontrols-flatstyle-example.html
gallery https://doc.qt.io/qt-5/qtquickcontrols-gallery-example.html
musicplayer https://doc.qt.io/qt-5/qtquickcontrols-imagine-musicplayer-example.html
swipetoremove https://doc.qt.io/qt-5/qtquickcontrols-swipetoremove-example.html

Qt WebEngine

Name Link
customdialogs https://doc.qt.io/qt-5/qtwebengine-webengine-customdialogs-example.html
lifecycle https://doc.qt.io/qt-5/qtwebengine-webengine-lifecycle-example.html
minimal https://doc.qt.io/qt-5/qtwebengine-webengine-minimal-example.html
recipebrowser https://doc.qt.io/qt-5/qtwebengine-webengine-recipebrowser-example.html

Qt WebEngine Widgets

Name Link
contentmanipulation https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-contentmanipulation-example.html
cookiebrowser https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-cookiebrowser-example.html
html2pdf https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-html2pdf-example.html
maps https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-maps-example.html
markdowneditor https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-markdowneditor-example.html
minimal https://doc.qt.io/qt-5.9/qtwebengine-webenginewidgets-minimal-example.html
notifications https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-notifications-example.html
printme https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-printme-example.html
spellchecker https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-spellchecker-example.html
webui https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-webui-example.html

Embedded

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

Qt Quick Demos

Name Link
calqlatr https://doc.qt.io/qt-5/qtdoc-demos-calqlatr-example.html
clocks https://doc.qt.io/qt-5/qtdoc-demos-clocks-example.html
coffee https://doc.qt.io/qt-5/qtdoc-demos-coffee-example.html
maroon https://doc.qt.io/qt-5/qtdoc-demos-maroon-example.html
photosurface https://doc.qt.io/qt-5/qtdoc-demos-photosurface-example.html