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 - Connecting to C++ Methods and Signals

Extending QML - Adding Property Bindings

Extending QML - Using Custom Property Types

Extending QML - Using List Property Types

Extending QML - Plugins Example
Tutorial: Writing advanced QML Extensions with Python

Extending QML (advanced) - BirthdayParty Base Project

Extending QML (advanced) - Inheritance and Coercion

Extending QML (advanced) - Default Properties

Extending QML (advanced) - Grouped Properties

Extending QML (advanced) - Attached Properties

Extending QML (advanced) - Property Value Source
Other Examples

Extending QML - Adding Types Example

Extending QML - Binding Example

QAbstractListModel in QML

Extending QML - Extension Objects Example

Extending QML - Methods Example

Extending QML - Object and List Property Types Example

Calling Python Methods from QML

Receiving return values from Python in QML

Handling QML Signals in Python

Directly Connecting QML Component Signals to Python Functions

Text Properties Example

Using Model Example
Quick (Essentials)

Object List Model Example

OpenGL under QML Squircle

Scene Graph Painted Item Example

QQuickRenderControl OpenGL Example

Scene Graph - Custom Geometry

String List Model Example

Qt Quick Examples - Window and Screen
Quickcontrols (Essentials)

Qt Quick Controls 2 - Gallery

Qt Quick Controls - Contact List

Qt Quick Controls - Filesystem Explorer
Widgets (Essentials)

Widgets Gallery Example

Address Book Example

Address Book Example

Anchor Layout Example

Animated Tiles Example

Application Chooser Example

Application Example

Basic Drawing Example

Basic Sort/Filter Model Example

Basic Layouts Example

Blur Picker Effect Example

Border Layout Example

Cannon Example

Character Map Example

Classwizard Example

Colliding Mice Example

Concentric Circles Examples

Diagram Scene Example

Digital Clock Example

Dir View Example

Dock Widget Example

Drag and Drop Robot Example

Draggable Text Example

Drop Site Example

Dynamic Layouts Example

Easing Example

Editable Tree Model Example

Elastic Nodes Example

Extension Example

Fetch More Example

Flow Layout Example

GNU gettext Example

Image Viewer Example

JSON Model Example

License Wizard Example

Lighting Example

Qt Linguist Example

MDI Example

Model View Tutorial Examples

Order Form Example

Painter Example

Plot Example

QRegularExpression Example

Screenshot Example

Simple RHI Widget Example

SpinBox Delegate Example

Standard Dialogs Example

Star Delegate Example

States Example

Syntax Highlighter Example

System Tray Icon Example

Tab Dialog Example

Tetrix

TextEdit Example

TextObject Example

Thread Signals Examples

Trivial Wizard Example
Designer (Essentials)

Task Menu Extension Example
Uitools (Essentials)

UILoader Example
Corelib (Essentials)

MIME Type Browser Example

Settings Editor Example

IPC: Shared Memory

Mandelbrot Threads Example
Async (Essentials)
Async “Eratosthenes” Example

Async “Minimal” Example
Network (Essentials)

Blocking Fortune Client Example

Downloader Example

Fortune Client Example

Fortune Server Example

Google Suggest Example

Loopback Example

Threaded Fortune Server Example
Sql (Essentials)

SQL Books Example
Dbus (Essentials)

D-Bus List Names Example

D-Bus Ping Pong Example
Xml (Essentials)

DOM Bookmarks Example
Gui (Essentials)

Analog Clock Window Example

RHI Window Example
Opengl (Essentials)

Context Info Example

Hello GL2 Example

Texture Example

Threaded QOpenGLWidget Example
Samplebinding (Essentials)

Sample Bindings Example
Scriptableapplication (Essentials)

Scriptable Application Example
Widgetbinding (Essentials)

WigglyWidget Example
Qt Demos (Add-ons)
Demos (Add-ons)

RESTful API client

Document Viewer Example

OSM Buildings
Httpserver (Add-ons)

Simple HTTP Server Example
Graphs (Add-ons)

Widget Graph Gallery

Simple Bar Graph

HelloGraphs Example

Minimal Surface Example
Datavisualization (Add-ons)

Graph Gallery

Surface Graph Gallery

Bars 3D Example

Surface Example

Surface Example

Surface Example
Charts (Add-ons)

Area Chart Example

Audio Example

Bar Chart Example

Callout Example

Chart Themes Example

Donut Chart Breakdown Example

Dynamic Spline Example

Legend Example

Line and Bar Chart Example

Line Chart Example

Logarithmic Axis Example

Memory Usag Example

Model Data Example

Nested Donuts Example

Percent Bar Chart Example

Pie Chart Example

Selected Point Configuration Example

Light Markers and Points Selection Example

QML Polar Chart Example

Temperature Records Example

Zoom Line Chart Example
Multimedia (Add-ons)

Audio Output Example

Audio Source Example

Camera Example

Player Example

Screen Capture Example
Webenginequick (Add-ons)

Nano Browser Example
Webenginewidgets (Add-ons)

WebEngine Markdown Editor Example

WebEngine Notifications Example

Simple Browser

Qt Widgets Nano Browser Example
Axcontainer (Add-ons)

Ax Viewer Example
Bluetooth (Add-ons)

Bluetooth Scanner Example

Bluetooth Low Energy Heart Rate Game

Bluetooth Low Energy Heart Rate Server

Bluetooth Low Energy Scanner Example
External (Add-ons)

Networkx viewer Example

OpenCV Face Detection Example

Pandas Simple Example

Scikit Image Example

Matplotlib Widget 3D Example

Matplotlib Widget Gaussian Example
Location (Add-ons)

Map Viewer Example
Networkauth (Add-ons)

Reddit Example
Pdf (Add-ons)

PDF Viewer Example
Pdfwidgets (Add-ons)

PDF Viewer Example
Quick3D (Add-ons)

Custom Geometry Example

Introduction Example Qt Quick 3D

Procedural Texture Example
Remoteobjects (Add-ons)

Model-View Server Example
Spatialaudio (Add-ons)

Spatial Audio Panning Example
Speech (Add-ons)

Hello Speak
3D (Add-ons)

Simple Qt 3D Example
Serialbus (Add-ons)

CAN Bus example

Modbus Client example
Serialport (Add-ons)

Terminal Example
Statemachine (Add-ons)

Move Blocks Example

StateMachine Ping Pong Example

StateMachine Rogue Example

Traffic Light Example
Webchannel (Add-ons)

WebChannel Standalone Example
Coap (M2M)

Simple CoAP Client Example
Mqtt (M2M)

Simple MQTT Client Example
Opcua (M2M)

Qt OPC UA Viewer Example
Tutorials
Tutorial: Finance Manager - Integrating PySide6 with SQLAlchemy and FastAPI

Finance Manager Example - Part 1

Finance Manager Example - Part 2

Finance Manager Example - Part 3
Webview

Minibrowser Example