All Qt for Python Examples

A varied selection of examples can be found in the ‘examples’ directory of the pyside-setup repository. This can be accessed after installing PySide2 via pip, checking the ‘site-packages/PySide2/examples’ directory.

This page aims to document the most important use cases of the module and it will be extended with each release.

PySide2.QtWidgets - Classwizard Example

Demonstrates the use of QDialog in a wizard application

PySide2.QtWidgets - Star Delegate Example

Demonstrates Qt’s itemview architecture