Examples

A collection of examples are provided with Qt for Python to help new users to understand different use cases of the module.

You can find all these examples inside the pyside-setup repository on the examples directory.

Qml (Essentials)

Tutorial: Writing QML Extensions with Python

Extending QML - Creating a New Type
Extending QML - Creating a New Type
Extending QML - Connecting to C++ Methods and Signals
Extending QML - Connecting to C++ Methods and Signals
Extending QML - Adding Property Bindings
Extending QML - Adding Property Bindings
Extending QML - Using Custom Property Types
Extending QML - Using Custom Property Types
Extending QML - Using List Property Types
Extending QML - Using List Property Types
Extending QML - Plugins Example
Extending QML - Plugins Example

Tutorial: Writing advanced QML Extensions with Python

Extending QML (advanced) - BirthdayParty Base Project
Extending QML (advanced) - BirthdayParty Base Project
Extending QML (advanced) - Inheritance and Coercion
Extending QML (advanced) - Inheritance and Coercion
Extending QML (advanced) - Default Properties
Extending QML (advanced) - Default Properties
Extending QML (advanced) - Grouped Properties
Extending QML (advanced) - Grouped Properties
Extending QML (advanced) - Attached Properties
Extending QML (advanced) - Attached Properties
Extending QML (advanced) - Property Value Source
Extending QML (advanced) - Property Value Source

Other Examples

Extending QML - Adding Types Example
Extending QML - Adding Types Example
Extending QML - Binding Example
Extending QML - Binding Example
QAbstractListModel in QML
QAbstractListModel in QML
Extending QML - Extension Objects Example
Extending QML - Extension Objects Example
Extending QML - Methods Example
Extending QML - Methods Example
Extending QML - Object and List Property Types Example
Extending QML - Object and List Property Types Example
Calling Python Methods from QML
Calling Python Methods from QML
Receiving return values from Python in QML
Receiving return values from Python in QML
Handling QML Signals in Python
Handling QML Signals in Python
Directly Connecting QML Component Signals to Python Functions
Directly Connecting QML Component Signals to Python Functions
Text Properties Example
Text Properties Example
Using Model Example
Using Model Example
Quick (Essentials)
Object List Model Example
Object List Model Example
OpenGL under QML Squircle
OpenGL under QML Squircle
Scene Graph Painted Item Example
Scene Graph Painted Item Example
QQuickRenderControl OpenGL Example
QQuickRenderControl OpenGL Example
Scene Graph - Custom Geometry
Scene Graph - Custom Geometry
String List Model Example
String List Model Example
Qt Quick Examples - Window and Screen
Qt Quick Examples - Window and Screen
Quickcontrols (Essentials)
Qt Quick Controls 2 - Gallery
Qt Quick Controls 2 - Gallery
Qt Quick Controls - Contact List
Qt Quick Controls - Contact List
Qt Quick Controls - Filesystem Explorer
Qt Quick Controls - Filesystem Explorer
Widgets (Essentials)
Widgets Gallery Example
Widgets Gallery Example
Address Book Example
Address Book Example
Address Book Example
Address Book Example
Anchor Layout Example
Anchor Layout Example
Animated Tiles Example
Animated Tiles Example
Application Chooser Example
Application Chooser Example
Application Example
Application Example
Basic Drawing Example
Basic Drawing Example
Basic Sort/Filter Model Example
Basic Sort/Filter Model Example
Basic Layouts Example
Basic Layouts Example
Blur Picker Effect Example
Blur Picker Effect Example
Border Layout Example
Border Layout Example
Cannon Example
Cannon Example
Character Map Example
Character Map Example
Classwizard Example
Classwizard Example
Colliding Mice Example
Colliding Mice Example
Concentric Circles Examples
Concentric Circles Examples
Diagram Scene Example
Diagram Scene Example
Digital Clock Example
Digital Clock Example
Dir View Example
Dir View Example
Dock Widget Example
Dock Widget Example
Drag and Drop Robot Example
Drag and Drop Robot Example
Draggable Text Example
Draggable Text Example
Drop Site Example
Drop Site Example
Dynamic Layouts Example
Dynamic Layouts Example
Easing Example
Easing Example
Editable Tree Model Example
Editable Tree Model Example
Elastic Nodes Example
Elastic Nodes Example
Extension Example
Extension Example
Fetch More Example
Fetch More Example
Flow Layout Example
Flow Layout Example
GNU gettext Example
GNU gettext Example
Image Viewer Example
Image Viewer Example
JSON Model Example
JSON Model Example
License Wizard Example
License Wizard Example
Lighting Example
Lighting Example
Qt Linguist Example
Qt Linguist Example
MDI Example
MDI Example
Model View Tutorial Examples
Model View Tutorial Examples
Order Form Example
Order Form Example
Painter Example
Painter Example
Plot Example
Plot Example
QRegularExpression Example
QRegularExpression Example
Screenshot Example
Screenshot Example
Simple RHI Widget Example
Simple RHI Widget Example
SpinBox Delegate Example
SpinBox Delegate Example
Standard Dialogs Example
Standard Dialogs Example
Star Delegate Example
Star Delegate Example
States Example
States Example
Syntax Highlighter Example
Syntax Highlighter Example
System Tray Icon Example
System Tray Icon Example
Tab Dialog Example
Tab Dialog Example
Tetrix
Tetrix
TextEdit Example
TextEdit Example
TextObject Example
TextObject Example
Thread Signals Examples
Thread Signals Examples
Trivial Wizard Example
Trivial Wizard Example
Designer (Essentials)
Task Menu Extension Example
Task Menu Extension Example
Uitools (Essentials)
UILoader Example
UILoader Example
Corelib (Essentials)
MIME Type Browser Example
MIME Type Browser Example
Settings Editor Example
Settings Editor Example
IPC: Shared Memory
IPC: Shared Memory
Mandelbrot Threads Example
Mandelbrot Threads Example
Async (Essentials)
Async “Eratosthenes” Example
Async “Eratosthenes” Example
Async “Minimal” Example
Async “Minimal” Example
Network (Essentials)
Blocking Fortune Client Example
Blocking Fortune Client Example
Downloader Example
Downloader Example
Fortune Client Example
Fortune Client Example
Fortune Server Example
Fortune Server Example
Google Suggest Example
Google Suggest Example
Loopback Example
Loopback Example
Threaded Fortune Server Example
Threaded Fortune Server Example
Sql (Essentials)
SQL Books Example
SQL Books Example
Dbus (Essentials)
D-Bus List Names Example
D-Bus List Names Example
D-Bus Ping Pong Example
D-Bus Ping Pong Example
Xml (Essentials)
DOM Bookmarks Example
DOM Bookmarks Example
Gui (Essentials)
Analog Clock Window Example
Analog Clock Window Example
RHI Window Example
RHI Window Example
Opengl (Essentials)
Context Info Example
Context Info Example
Hello GL2 Example
Hello GL2 Example
Texture Example
Texture Example
Threaded QOpenGLWidget Example
Threaded QOpenGLWidget Example
Samplebinding (Essentials)
Sample Bindings Example
Sample Bindings Example
Scriptableapplication (Essentials)
Scriptable Application Example
Scriptable Application Example
Widgetbinding (Essentials)
WigglyWidget Example
WigglyWidget Example
Qt Demos (Add-ons)
Demos (Add-ons)
RESTful API client
RESTful API client
Document Viewer Example
Document Viewer Example
OSM Buildings
OSM Buildings
Httpserver (Add-ons)
Simple HTTP Server Example
Simple HTTP Server Example
Graphs (Add-ons)
Widget Graph Gallery
Widget Graph Gallery
Simple Bar Graph
Simple Bar Graph
HelloGraphs Example
HelloGraphs Example
Minimal Surface Example
Minimal Surface Example
Datavisualization (Add-ons)
Graph Gallery
Graph Gallery
Surface Graph Gallery
Surface Graph Gallery
Bars 3D Example
Bars 3D Example
Surface Example
Surface Example
Surface Example
Surface Example
Surface Example
Surface Example
Charts (Add-ons)
Area Chart Example
Area Chart Example
Audio Example
Audio Example
Bar Chart Example
Bar Chart Example
Callout Example
Callout Example
Chart Themes Example
Chart Themes Example
Donut Chart Breakdown Example
Donut Chart Breakdown Example
Dynamic Spline Example
Dynamic Spline Example
Legend Example
Legend Example
Line and Bar Chart Example
Line and Bar Chart Example
Line Chart Example
Line Chart Example
Logarithmic Axis Example
Logarithmic Axis Example
Memory Usag Example
Memory Usag Example
Model Data Example
Model Data Example
Nested Donuts Example
Nested Donuts Example
Percent Bar Chart Example
Percent Bar Chart Example
Pie Chart Example
Pie Chart Example
Selected Point Configuration Example
Selected Point Configuration Example
Light Markers and Points Selection Example
Light Markers and Points Selection Example
QML Polar Chart Example
QML Polar Chart Example
Temperature Records Example
Temperature Records Example
Zoom Line Chart Example
Zoom Line Chart Example
Multimedia (Add-ons)
Audio Output Example
Audio Output Example
Audio Source Example
Audio Source Example
Camera Example
Camera Example
Player Example
Player Example
Screen Capture Example
Screen Capture Example
Webenginequick (Add-ons)
Nano Browser Example
Nano Browser Example
Webenginewidgets (Add-ons)
WebEngine Markdown Editor Example
WebEngine Markdown Editor Example
WebEngine Notifications Example
WebEngine Notifications Example
Simple Browser
Simple Browser
Qt Widgets Nano Browser Example
Qt Widgets Nano Browser Example
Axcontainer (Add-ons)
Ax Viewer Example
Ax Viewer Example
Bluetooth (Add-ons)
Bluetooth Scanner Example
Bluetooth Scanner Example
Bluetooth Low Energy Heart Rate Game
Bluetooth Low Energy Heart Rate Game
Bluetooth Low Energy Heart Rate Server
Bluetooth Low Energy Heart Rate Server
Bluetooth Low Energy Scanner Example
Bluetooth Low Energy Scanner Example
External (Add-ons)
Networkx viewer Example
Networkx viewer Example
OpenCV Face Detection Example
OpenCV Face Detection Example
Pandas Simple Example
Pandas Simple Example
Scikit Image Example
Scikit Image Example
Matplotlib Widget 3D Example
Matplotlib Widget 3D Example
Matplotlib Widget Gaussian Example
Matplotlib Widget Gaussian Example
Location (Add-ons)
Map Viewer Example
Map Viewer Example
Networkauth (Add-ons)
Reddit Example
Reddit Example
Pdf (Add-ons)
PDF Viewer Example
PDF Viewer Example
Pdfwidgets (Add-ons)
PDF Viewer Example
PDF Viewer Example
Quick3D (Add-ons)
Custom Geometry Example
Custom Geometry Example
Introduction Example Qt Quick 3D
Introduction Example Qt Quick 3D
Procedural Texture Example
Procedural Texture Example
Remoteobjects (Add-ons)
Model-View Server Example
Model-View Server Example
Spatialaudio (Add-ons)
Spatial Audio Panning Example
Spatial Audio Panning Example
Speech (Add-ons)
Hello Speak
Hello Speak
3D (Add-ons)
Simple Qt 3D Example
Simple Qt 3D Example
Serialbus (Add-ons)
CAN Bus example
CAN Bus example
Modbus Client example
Modbus Client example
Serialport (Add-ons)
Terminal Example
Terminal Example
Statemachine (Add-ons)
Move Blocks Example
Move Blocks Example
StateMachine Ping Pong Example
StateMachine Ping Pong Example
StateMachine Rogue Example
StateMachine Rogue Example
Traffic Light Example
Traffic Light Example
Webchannel (Add-ons)
WebChannel Standalone Example
WebChannel Standalone Example
Coap (M2M)
Simple CoAP Client Example
Simple CoAP Client Example
Mqtt (M2M)
Simple MQTT Client Example
Simple MQTT Client Example
Opcua (M2M)
Qt OPC UA Viewer Example
Qt OPC UA Viewer Example
Tutorials

Tutorial: Finance Manager - Integrating PySide6 with SQLAlchemy and FastAPI

Finance Manager Example - Part 1
Finance Manager Example - Part 1
Finance Manager Example - Part 2
Finance Manager Example - Part 2
Finance Manager Example - Part 3
Finance Manager Example - Part 3
Webview
Minibrowser Example
Minibrowser Example