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)

adding

Extending QML - Adding Types Example

Extending QML - Adding Types Example
a1-Base-project

Extending QML (advanced) - BirthdayParty Base Project

Extending QML (advanced) - BirthdayParty Base Project
a2-Inheritance-and-coercion

Extending QML (advanced) - Inheritance and Coercion

Extending QML (advanced) - Inheritance and Coercion
a3-Default-properties

Extending QML (advanced) - Default Properties

Extending QML (advanced) - Default Properties
a4-Grouped-properties

Extending QML (advanced) - Grouped Properties

Extending QML (advanced) - Grouped Properties
a5-Attached-properties

Extending QML (advanced) - Attached Properties

Extending QML (advanced) - Attached Properties
a6-Property-value-source

Extending QML (advanced) - Property Value Source

Extending QML (advanced) - Property Value Source
binding

Extending QML - Binding Example

Extending QML - Binding Example
c1-basics

Extending QML - Creating a New Type

Extending QML - Creating a New Type
c2-methods

Extending QML - Connecting to C++ Methods and Signals

Extending QML - Connecting to C++ Methods and Signals
c3-bindings

Extending QML - Adding Property Bindings

Extending QML - Adding Property Bindings
c4-customPropertyTypes

Extending QML - Using Custom Property Types

Extending QML - Using Custom Property Types
c5-listproperties

Extending QML - Using List Property Types

Extending QML - Using List Property Types
c6-plugins

Extending QML - Plugins Example

Extending QML - Plugins Example
editingmodel

QAbstractListModel in QML

QAbstractListModel in QML
extended

Extending QML - Extension Objects Example

Extending QML - Extension Objects Example
methods

Extending QML - Methods Example

Extending QML - Methods Example
properties

Extending QML - Object and List Property Types Example

Extending QML - Object and List Property Types Example
pytoqml1

found in the qml/signals directory.

example_qml_signals_pytoqml1
pytoqml2

found in the qml/signals directory.

example_qml_signals_pytoqml2
qmltopy1

found in the qml/signals directory.

example_qml_signals_qmltopy1
qmltopy2

found in the qml/signals directory.

example_qml_signals_qmltopy2
qmltopy3

found in the qml/signals directory.

example_qml_signals_qmltopy3
qmltopy4

found in the qml/signals directory.

example_qml_signals_qmltopy4
textproperties

Text Properties Example

Text Properties Example
usingmodel

Using Model Example

Using Model Example

Quick (Essentials)

objectlistmodel

Object List Model Example

Object List Model Example
openglunderqml

OpenGL under QML Squircle

OpenGL under QML Squircle
painteditem

Scene Graph Painted Item Example

Scene Graph Painted Item Example
rendercontrol_opengl

QQuickRenderControl OpenGL Example

QQuickRenderControl OpenGL Example
scenegraph_customgeometry

Scene Graph - Custom Geometry

Scene Graph - Custom Geometry
stringlistmodel

String List Model Example

String List Model Example
window

Qt Quick Examples - Window and Screen

Qt Quick Examples - Window and Screen

Quickcontrols (Essentials)

gallery

Qt Quick Controls 2 - Gallery

Qt Quick Controls 2 - Gallery
contactslist

Qt Quick Controls - Contact List

Qt Quick Controls - Contact List
filesystemexplorer

Qt Quick Controls - Filesystem Explorer

Qt Quick Controls - Filesystem Explorer

Widgets (Essentials)

widgetsgallery

Widgets Gallery Example

Widgets Gallery Example
address_book

Address Book Example

Address Book Example
addressbook

Address Book Example

Address Book Example
anchorlayout

found in the widgets/graphicsview directory.

example_widgets_graphicsview_anchorlayout
animatedtiles

Animated Tiles Example

Animated Tiles Example
appchooser

Application Chooser Example

Application Chooser Example
application

found in the widgets/mainwindows directory.

example_widgets_mainwindows_application
basicdrawing

Basic Drawing Example

Basic Drawing Example
basicfiltermodel

found in the widgets/itemviews directory.

example_widgets_itemviews_basicfiltermodel
basiclayouts

Basic Layouts Example

Basic Layouts Example
blurpicker

Blur Picker Effect Example

Blur Picker Effect Example
borderlayout

Border Layout Example

Border Layout Example
cannon

Cannon Example

Cannon Example
charactermap

Character Map Example

Character Map Example
classwizard

Classwizard Example

Classwizard Example
collidingmice

found in the widgets/graphicsview directory.

example_widgets_graphicsview_collidingmice
concentriccircles

Concentric Circles Examples

Concentric Circles Examples
diagramscene

found in the widgets/graphicsview directory.

example_widgets_graphicsview_diagramscene
digitalclock

Digital Clock Example

Digital Clock Example
dirview

Dir View Example

Dir View Example
dockwidgets

Dock Widget Example

Dock Widget Example
dragdroprobot

found in the widgets/graphicsview directory.

example_widgets_graphicsview_dragdroprobot
draggabletext

found in the widgets/draganddrop directory.

example_widgets_draganddrop_draggabletext
dropsite

Drop Site Example

Drop Site Example
dynamiclayouts

Dynamic Layouts Example

Dynamic Layouts Example
easing

Easing Example

Easing Example
editabletreemodel

Editable Tree Model Example

Editable Tree Model Example
elasticnodes

found in the widgets/graphicsview directory.

example_widgets_graphicsview_elasticnodes
extension

found in the widgets/dialogs directory.

example_widgets_dialogs_extension
fetchmore

found in the widgets/itemviews directory.

example_widgets_itemviews_fetchmore
flowlayout

Flow Layout Example

Flow Layout Example
gettext

GNU gettext Example

GNU gettext Example
imageviewer

found in the widgets directory.

example_widgets_imageviewer
jsonmodel

JSON Model Example

JSON Model Example
licensewizard

License Wizard Example

License Wizard Example
lighting

found in the widgets/effects directory.

example_widgets_effects_lighting
linguist

Qt Linguist Example

Qt Linguist Example
mdi

found in the widgets/mainwindows directory.

example_widgets_mainwindows_mdi
modelview

Model View Tutorial Examples

Model View Tutorial Examples
orderform

found in the widgets/richtext directory.

example_widgets_richtext_orderform
painter

Painter Example

Painter Example
plot

Plot Example

Plot Example
regularexpression

QRegularExpression Example

QRegularExpression Example
screenshot

Screenshot Example

Screenshot Example
simplerhiwidget

Simple RHI Widget Example

Simple RHI Widget Example
spinboxdelegate

SpinBox Delegate Example

SpinBox Delegate Example
standarddialogs

found in the widgets/dialogs directory.

example_widgets_dialogs_standarddialogs
stardelegate

Star Delegate Example

Star Delegate Example
states

States Example

States Example
syntaxhighlighter

Syntax Highlighter Example

Syntax Highlighter Example
systray

found in the widgets/desktop directory.

example_widgets_desktop_systray
tabdialog

Tab Dialog Example

Tab Dialog Example
tetrix

Tetrix

Tetrix
textedit

TextEdit Example

TextEdit Example
textobject

TextObject Example

TextObject Example
thread_signals

found in the widgets directory.

example_widgets_thread_signals
trivialwizard

found in the widgets/dialogs directory.

example_widgets_dialogs_trivialwizard

Designer (Essentials)

taskmenuextension

Task Menu Extension Example

Task Menu Extension Example

Uitools (Essentials)

uiloader

found in the uitools directory.

example_uitools_uiloader

Corelib (Essentials)

mimetypesbrowser

MIME Type Browser Example

MIME Type Browser Example
settingseditor

Settings Editor Example

Settings Editor Example
sharedmemory

found in the corelib/ipc directory.

example_corelib_ipc_sharedmemory
threads

Mandelbrot Threads Example

Mandelbrot Threads Example

Async (Essentials)

eratosthenes

Async “Eratosthenes” Example

Async “Eratosthenes” Example
minimal

Async “Minimal” Example

Async “Minimal” Example

Network (Essentials)

blockingfortuneclient

found in the network directory.

example_network_blockingfortuneclient
downloader

Downloader Example

Downloader Example
fortuneclient

found in the network directory.

example_network_fortuneclient
fortuneserver

found in the network directory.

example_network_fortuneserver
googlesuggest

Google Suggest Example

Google Suggest Example
loopback

Loopback Example

Loopback Example
threadedfortuneserver

found in the network directory.

example_network_threadedfortuneserver

Sql (Essentials)

books

SQL Books Example

SQL Books Example

Dbus (Essentials)

listnames

found in the dbus directory.

example_dbus_listnames
pingpong

found in the dbus directory.

example_dbus_pingpong

Xml (Essentials)

dombookmarks

DOM Bookmarks Example

DOM Bookmarks Example

Gui (Essentials)

analogclock

Analog Clock Window Example

Analog Clock Window Example
rhiwindow

RHI Window Example

RHI Window Example

Opengl (Essentials)

contextinfo

Context Info Example

Context Info Example
hellogl2

Hello GL2 Example

Hello GL2 Example
textures

Texture Example

Texture Example
threadedqopenglwidget

Threaded QOpenGLWidget Example

Threaded QOpenGLWidget Example

Samplebinding (Essentials)

samplebinding

Sample Bindings Example

Sample Bindings Example

Scriptableapplication (Essentials)

scriptableapplication

Scriptable Application Example

Scriptable Application Example

Widgetbinding (Essentials)

widgetbinding

WigglyWidget Example

WigglyWidget Example

Qt Demos (Add-ons)

mediaplayer

Media Player Example

Media Player Example

Demos (Add-ons)

colorpaletteclient

RESTful API client

RESTful API client
documentviewer

Document Viewer Example

Document Viewer Example

Httpserver (Add-ons)

simplehttpserver

Simple HTTP Server Example

Simple HTTP Server Example

Graphs (Add-ons)

widgetgraphgallery

Widget Graph Gallery

Widget Graph Gallery
hellographs

HelloGraphs Example

HelloGraphs Example
minimalsurfacegraph

Minimal Surface Example

Minimal Surface Example

Datavisualization (Add-ons)

graphgallery

Graph Gallery

Graph Gallery
qmlsurfacegallery

Surface Graph Gallery

Surface Graph Gallery
bars3d

Bars 3D Example

Bars 3D Example
surface

Surface Example

Surface Example
surface_model_numpy

Surface Example

Surface Example
surface_numpy

Surface Example

Surface Example

Charts (Add-ons)

areachart

Area Chart Example

Area Chart Example
audio

Audio Example

Audio Example
barchart

Bar Chart Example

Bar Chart Example
callout

Callout Example

Callout Example
chartthemes

Chart Themes Example

Chart Themes Example
donutbreakdown

Donut Chart Breakdown Example

Donut Chart Breakdown Example
dynamicspline

Dynamic Spline Example

Dynamic Spline Example
legend

Legend Example

Legend Example
lineandbar

Line and Bar Chart Example

Line and Bar Chart Example
linechart

Line Chart Example

Line Chart Example
logvalueaxis

Logarithmic Axis Example

Logarithmic Axis Example
memoryusage

Memory Usag Example

Memory Usag Example
modeldata

Model Data Example

Model Data Example
nesteddonuts

Nested Donuts Example

Nested Donuts Example
percentbarchart

Percent Bar Chart Example

Percent Bar Chart Example
piechart

Pie Chart Example

Pie Chart Example
pointconfiguration

Selected Point Configuration Example

Selected Point Configuration Example
pointselectionandmarkers

Light Markers and Points Selection Example

Light Markers and Points Selection Example
qmlpolarchart

QML Polar Chart Example

QML Polar Chart Example
temperaturerecords

Temperature Records Example

Temperature Records Example

Multimedia (Add-ons)

audiooutput

Audio Output Example

Audio Output Example
audiosource

Audio Source Example

Audio Source Example
camera

Camera Example

Camera Example
player

Player Example

Player Example
screencapture

Screen Capture Example

Screen Capture Example

Webenginequick (Add-ons)

nanobrowser

Nano Browser Example

Nano Browser Example

Webenginewidgets (Add-ons)

markdowneditor

found in the webenginewidgets directory.

example_webenginewidgets_markdowneditor
notifications

WebEngine Notifications Example

WebEngine Notifications Example
simplebrowser

Simple Browser

Simple Browser
widgetsnanobrowser

Qt Widgets Nano Browser Example

Qt Widgets Nano Browser Example

Axcontainer (Add-ons)

axviewer

Ax Viewer Example

Ax Viewer Example

Bluetooth (Add-ons)

btscanner

Bluetooth Scanner Example

Bluetooth Scanner Example
heartrate_game

Bluetooth Low Energy Heart Rate Game

Bluetooth Low Energy Heart Rate Game
heartrate_server

Bluetooth Low Energy Heart Rate Server

Bluetooth Low Energy Heart Rate Server
lowenergyscanner

Bluetooth Low Energy Scanner Example

Bluetooth Low Energy Scanner Example

External (Add-ons)

networkx

Networkx viewer Example

Networkx viewer Example
opencv

OpenCV Face Detection Example

OpenCV Face Detection Example
pandas

Pandas Simple Example

Pandas Simple Example
scikit

Scikit Image Example

Scikit Image Example
widget3d

Matplotlib Widget 3D Example

Matplotlib Widget 3D Example
widget_gaussian

Matplotlib Widget Gaussian Example

Matplotlib Widget Gaussian Example

Location (Add-ons)

mapviewer

Map Viewer Example

Map Viewer Example

Networkauth (Add-ons)

redditclient

Reddit Example

Reddit Example

Pdf (Add-ons)

quickpdfviewer

PDF Viewer Example

PDF Viewer Example

Pdfwidgets (Add-ons)

pdfviewer

PDF Viewer Example

PDF Viewer Example

Quick3D (Add-ons)

customgeometry

Custom Geometry Example

Custom Geometry Example
intro

Introduction Example Qt Quick 3D

Introduction Example Qt Quick 3D
proceduraltexture

Procedural Texture Example

Procedural Texture Example

Remoteobjects (Add-ons)

modelview

found in the remoteobjects directory.

example_remoteobjects_modelview

Spatialaudio (Add-ons)

audiopanning

Spatial Audio Panning Example

Spatial Audio Panning Example

Speech (Add-ons)

hello_speak

Hello Speak

Hello Speak

3D (Add-ons)

simple3d

Simple Qt 3D Example

Simple Qt 3D Example

Serialbus (Add-ons)

can

CAN Bus example

CAN Bus example
modbusclient

Modbus Client example

Modbus Client example

Serialport (Add-ons)

terminal

Terminal Example

Terminal Example

Statemachine (Add-ons)

moveblocks

Move Blocks Example

Move Blocks Example
ping_pong

found in the statemachine directory.

example_statemachine_ping_pong
rogue

found in the statemachine directory.

example_statemachine_rogue
trafficlight

Traffic Light Example

Traffic Light Example

Webchannel (Add-ons)

standalone

WebChannel Standalone Example

WebChannel Standalone Example

Coap (M2M)

simplecoapclient

Simple CoAP Client Example

Simple CoAP Client Example

Mqtt (M2M)

simpleclient

Simple MQTT Client Example

Simple MQTT Client Example

Opcua (M2M)

opcuaviewer

Qt OPC UA Viewer Example

Qt OPC UA Viewer Example

Webview

minibrowser

Minibrowser Example

Minibrowser Example