Contents Menu Expand Light mode Dark mode Auto light/dark mode
Qt for Python
Logo
Qt for Python
  • Quick start
  • Getting Started
    • Getting Started on Linux
    • Getting Started on macOS
    • Getting Started on Windows
    • Package Details
    • Porting Applications from PySide2 to PySide6
  • Modules API
    • Qt Modules Supported by Qt for Python
      • PySide6.Qt3DAnimation
        • QAbstractAnimation
        • QAbstractAnimationClip
        • QAbstractChannelMapping
        • QAbstractClipAnimator
        • QAbstractClipBlendNode
        • QAdditiveClipBlend
        • QAnimationAspect
        • QAnimationCallback
        • QAnimationClip
        • QAnimationClipData
        • QAnimationClipLoader
        • QAnimationController
        • QAnimationGroup
        • QBlendedClipAnimator
        • QChannel
        • QChannelComponent
        • QChannelMapper
        • QChannelMapping
        • QClipAnimator
        • QClipBlendValue
        • QClock
        • QKeyFrame
        • QKeyframeAnimation
        • QLerpClipBlend
        • QMorphTarget
        • QMorphingAnimation
        • QSkeletonMapping
        • QVertexBlendAnimation
        • Qt3DAnimation
      • PySide6.Qt3DCore
        • QAbstractAspect
        • QAbstractFunctor
        • QAbstractSkeleton
        • QArmature
        • QAspectEngine
        • QAspectJob
        • QAttribute
        • QBackendNode
        • QBackendNodeMapper
        • QBoundingVolume
        • QBuffer
        • QComponent
        • QCoreSettings
        • QEntity
        • QGeometry
        • QGeometryView
        • QJoint
        • QNode
        • QNodeId
        • QNodeIdTypePair
        • QSkeleton
        • QSkeletonLoader
        • QTransform
        • Qt3DCore
      • PySide6.Qt3DExtras
        • InputState
        • QAbstractCameraController
        • QAbstractSpriteSheet
        • QConeGeometry
        • QConeGeometryView
        • QConeMesh
        • QCuboidGeometry
        • QCuboidGeometryView
        • QCuboidMesh
        • QCylinderGeometry
        • QCylinderGeometryView
        • QCylinderMesh
        • QDiffuseMapMaterial
        • QDiffuseSpecularMapMaterial
        • QDiffuseSpecularMaterial
        • QExtrudedTextGeometry
        • QExtrudedTextMesh
        • QFirstPersonCameraController
        • QForwardRenderer
        • QGoochMaterial
        • QMetalRoughMaterial
        • QMorphPhongMaterial
        • QNormalDiffuseMapAlphaMaterial
        • QNormalDiffuseMapMaterial
        • QNormalDiffuseSpecularMapMaterial
        • QOrbitCameraController
        • QPerVertexColorMaterial
        • QPhongAlphaMaterial
        • QPhongMaterial
        • QPlaneGeometry
        • QPlaneGeometryView
        • QPlaneMesh
        • QSkyboxEntity
        • QSphereGeometry
        • QSphereGeometryView
        • QSphereMesh
        • QSpriteGrid
        • QSpriteSheet
        • QSpriteSheetItem
        • QText2DEntity
        • QTextureMaterial
        • QTorusGeometry
        • QTorusGeometryView
        • QTorusMesh
        • Qt3DExtras
        • Qt3DWindow
      • PySide6.Qt3DInput
        • QAbstractActionInput
        • QAbstractAxisInput
        • QAbstractPhysicalDevice
        • QAction
        • QActionInput
        • QAnalogAxisInput
        • QAxis
        • QAxisAccumulator
        • QAxisSetting
        • QButtonAxisInput
        • QInputAspect
        • QInputChord
        • QInputSequence
        • QInputSettings
        • QKeyEvent
        • QKeyboardDevice
        • QKeyboardHandler
        • QLogicalDevice
        • QMouseDevice
        • QMouseEvent
        • QMouseHandler
        • QWheelEvent
        • Qt3DInput
      • PySide6.Qt3DLogic
        • QFrameAction
        • QLogicAspect
        • Qt3DLogic
      • PySide6.Qt3DRender
        • PropertyReaderInterface
        • QAbstractLight
        • QAbstractRayCaster
        • QAbstractTexture
        • QAbstractTextureImage
        • QAlphaCoverage
        • QAlphaTest
        • QBlendEquation
        • QBlendEquationArguments
        • QBlitFramebuffer
        • QBufferCapture
        • QCamera
        • QCameraLens
        • QCameraSelector
        • QClearBuffers
        • QClipPlane
        • QColorMask
        • QComputeCommand
        • QCullFace
        • QDepthRange
        • QDepthTest
        • QDirectionalLight
        • QDispatchCompute
        • QDithering
        • QEffect
        • QEnvironmentLight
        • QFilterKey
        • QFrameGraphNode
        • QFrontFace
        • QFrustumCulling
        • QGeometryRenderer
        • QGraphicsApiFilter
        • QLayer
        • QLayerFilter
        • QLevelOfDetail
        • QLevelOfDetailBoundingSphere
        • QLevelOfDetailSwitch
        • QLineWidth
        • QMaterial
        • QMemoryBarrier
        • QMesh
        • QMultiSampleAntiAliasing
        • QNoDepthMask
        • QNoDraw
        • QNoPicking
        • QObjectPicker
        • QPaintedTextureImage
        • QParameter
        • QPickEvent
        • QPickLineEvent
        • QPickPointEvent
        • QPickTriangleEvent
        • QPickingProxy
        • QPickingSettings
        • QPointLight
        • QPointSize
        • QPolygonOffset
        • QProximityFilter
        • QRasterMode
        • QRayCaster
        • QRayCasterHit
        • QRenderAspect
        • QRenderCapabilities
        • QRenderCapture
        • QRenderCaptureReply
        • QRenderPass
        • QRenderPassFilter
        • QRenderSettings
        • QRenderState
        • QRenderStateSet
        • QRenderSurfaceSelector
        • QRenderTarget
        • QRenderTargetOutput
        • QRenderTargetSelector
        • QSceneLoader
        • QScissorTest
        • QScreenRayCaster
        • QSeamlessCubemap
        • QSetFence
        • QShaderData
        • QShaderImage
        • QShaderProgram
        • QShaderProgramBuilder
        • QSharedGLTexture
        • QSortPolicy
        • QSpotLight
        • QStencilMask
        • QStencilOperation
        • QStencilOperationArguments
        • QStencilTest
        • QStencilTestArguments
        • QSubtreeEnabler
        • QTechnique
        • QTechniqueFilter
        • QTexture1D
        • QTexture1DArray
        • QTexture2D
        • QTexture2DArray
        • QTexture2DMultisample
        • QTexture2DMultisampleArray
        • QTexture3D
        • QTextureBuffer
        • QTextureCubeMap
        • QTextureCubeMapArray
        • QTextureData
        • QTextureDataUpdate
        • QTextureImage
        • QTextureImageData
        • QTextureImageDataGenerator
        • QTextureLoader
        • QTextureRectangle
        • QTextureWrapMode
        • QViewport
        • QWaitFence
        • Qt3DRender
      • PySide6.QtBluetooth
        • AddressInfo
        • Alternative
        • QBluetooth
        • QBluetoothAddress
        • QBluetoothDeviceDiscoveryAgent
        • QBluetoothDeviceInfo
        • QBluetoothHostInfo
        • QBluetoothLocalDevice
        • QBluetoothServer
        • QBluetoothServiceDiscoveryAgent
        • QBluetoothServiceInfo
        • QBluetoothSocket
        • QBluetoothUuid
        • QLowEnergyAdvertisingData
        • QLowEnergyAdvertisingParameters
        • QLowEnergyCharacteristic
        • QLowEnergyCharacteristicData
        • QLowEnergyConnectionParameters
        • QLowEnergyController
        • QLowEnergyDescriptor
        • QLowEnergyDescriptorData
        • QLowEnergyService
        • QLowEnergyServiceData
        • Sequence
      • PySide6.QtCharts
        • QAbstractAxis
        • QAbstractBarSeries
        • QAbstractSeries
        • QAreaLegendMarker
        • QAreaSeries
        • QBarCategoryAxis
        • QBarLegendMarker
        • QBarModelMapper
        • QBarSeries
        • QBarSet
        • QBoxPlotLegendMarker
        • QBoxPlotModelMapper
        • QBoxPlotSeries
        • QBoxSet
        • QCandlestickLegendMarker
        • QCandlestickModelMapper
        • QCandlestickSeries
        • QCandlestickSet
        • QCategoryAxis
        • QChart
        • QChartView
        • QDateTimeAxis
        • QHBarModelMapper
        • QHBoxPlotModelMapper
        • QHCandlestickModelMapper
        • QHPieModelMapper
        • QHXYModelMapper
        • QHorizontalBarSeries
        • QHorizontalPercentBarSeries
        • QHorizontalStackedBarSeries
        • QLegend
        • QLegendMarker
        • QLineSeries
        • QLogValueAxis
        • QPercentBarSeries
        • QPieLegendMarker
        • QPieModelMapper
        • QPieSeries
        • QPieSlice
        • QPolarChart
        • QScatterSeries
        • QSplineSeries
        • QStackedBarSeries
        • QVBarModelMapper
        • QVBoxPlotModelMapper
        • QVCandlestickModelMapper
        • QVPieModelMapper
        • QVXYModelMapper
        • QValueAxis
        • QXYLegendMarker
        • QXYModelMapper
        • QXYSeries
      • PySide6.QtCoap
        • QCoapClient
        • QCoapMessage
        • QCoapOption
        • QCoapPrivateKey
        • QCoapReply
        • QCoapRequest
        • QCoapResource
        • QCoapResourceDiscoveryReply
        • QCoapSecurityConfiguration
        • QtCoap
      • PySide6.QtConcurrent
        • QFutureQString
        • QFutureVoid
        • QFutureWatcherQString
        • QFutureWatcherVoid
        • QtConcurrent
      • PySide6.QtCore
        • Connection
        • FromBase64Result
        • OffsetData
        • QAbstractAnimation
        • QAbstractEventDispatcher
        • QAbstractItemModel
        • QAbstractListModel
        • QAbstractNativeEventFilter
        • QAbstractProxyModel
        • QAbstractTableModel
        • QAnimationGroup
        • QBasicMutex
        • QBasicTimer
        • QBitArray
        • QBuffer
        • QByteArray
        • QByteArrayMatcher
        • QCalendar
        • QCborArray
        • QCborError
        • QCborMap
        • QCborParserError
        • QCborStreamReader
        • QCborStreamWriter
        • QCborStringResultByteArray
        • QCborStringResultString
        • QCborValue
        • QChildEvent
        • QCollator
        • QCollatorSortKey
        • QCommandLineOption
        • QCommandLineParser
        • QConcatenateTablesProxyModel
        • QCoreApplication
        • QCryptographicHash
        • QDataStream
        • QDate
        • QDateTime
        • QDeadlineTimer
        • QDir
        • QDirIterator
        • QDynamicPropertyChangeEvent
        • QEasingCurve
        • QElapsedTimer
        • QEvent
        • QEventLoop
        • QFactoryInterface
        • QFile
        • QFileDevice
        • QFileInfo
        • QFileSelector
        • QFileSystemWatcher
        • QFutureInterfaceBase
        • QGenericArgument
        • QGenericReturnArgument
        • QIODevice
        • QIODeviceBase
        • QIdentityProxyModel
        • QItemSelection
        • QItemSelectionModel
        • QItemSelectionRange
        • QJsonArray
        • QJsonDocument
        • QJsonParseError
        • QJsonValue
        • QKeyCombination
        • QLibrary
        • QLibraryInfo
        • QLine
        • QLineF
        • QLocale
        • QLockFile
        • QLoggingCategory
        • QMargins
        • QMarginsF
        • QMessageAuthenticationCode
        • QMessageLogContext
        • QMetaClassInfo
        • QMetaEnum
        • QMetaMethod
        • QMetaObject
        • QMetaProperty
        • QMetaType
        • QMimeData
        • QMimeDatabase
        • QMimeType
        • QModelIndex
        • QModelRoleData
        • QMutex
        • QObject
        • QOperatingSystemVersion
        • QOperatingSystemVersionBase
        • QParallelAnimationGroup
        • QPauseAnimation
        • QPersistentModelIndex
        • QPluginLoader
        • QPoint
        • QPointF
        • QProcess
        • QProcessEnvironment
        • QPropertyAnimation
        • QRandomGenerator
        • QRandomGenerator64
        • QReadLocker
        • QReadWriteLock
        • QRect
        • QRectF
        • QRecursiveMutex
        • QRegularExpression
        • QRegularExpressionMatch
        • QRegularExpressionMatchIterator
        • QResource
        • QRunnable
        • QSaveFile
        • QSemaphore
        • QSemaphoreReleaser
        • QSequentialAnimationGroup
        • QSettings
        • QSharedMemory
        • QSignalBlocker
        • QSignalMapper
        • QSize
        • QSizeF
        • QSocketDescriptor
        • QSocketNotifier
        • QSortFilterProxyModel
        • QStandardPaths
        • QStorageInfo
        • QStringConverter
        • QStringConverterBase
        • QStringDecoder
        • QStringEncoder
        • QStringListModel
        • QSysInfo
        • QSystemSemaphore
        • QTemporaryDir
        • QTemporaryFile
        • QTextBoundaryFinder
        • QTextStream
        • QTextStreamManipulator
        • QThread
        • QThreadPool
        • QTime
        • QTimeLine
        • QTimeZone
        • QTimer
        • QTimerEvent
        • QTranslator
        • QTransposeProxyModel
        • QUrl
        • QUrlQuery
        • QUuid
        • QVariantAnimation
        • QVersionNumber
        • QWaitCondition
        • QWriteLocker
        • QXmlStreamAttribute
        • QXmlStreamAttributes
        • QXmlStreamEntityDeclaration
        • QXmlStreamEntityResolver
        • QXmlStreamNamespaceDeclaration
        • QXmlStreamNotationDeclaration
        • QXmlStreamReader
        • QXmlStreamWriter
        • Qt
        • State
        • SystemId
        • TimerInfo
        • YearMonthDay
        • ClassInfo
        • Property
        • QEnum/QFlag
        • Signal
        • Slot
      • PySide6.QtDBus
        • QDBus
        • QDBusAbstractAdaptor
        • QDBusAbstractInterface
        • QDBusAbstractInterfaceBase
        • QDBusArgument
        • QDBusConnection
        • QDBusConnectionInterface
        • QDBusContext
        • QDBusError
        • QDBusInterface
        • QDBusMessage
        • QDBusObjectPath
        • QDBusPendingCall
        • QDBusPendingCallWatcher
        • QDBusServer
        • QDBusServiceWatcher
        • QDBusSignature
        • QDBusUnixFileDescriptor
        • QDBusVariant
        • QDBusVirtualObject
      • PySide6.QtDataVisualization
        • Q3DBars
        • Q3DCamera
        • Q3DInputHandler
        • Q3DLight
        • Q3DObject
        • Q3DScatter
        • Q3DScene
        • Q3DSurface
        • Q3DTheme
        • QAbstract3DAxis
        • QAbstract3DGraph
        • QAbstract3DInputHandler
        • QAbstract3DSeries
        • QAbstractDataProxy
        • QBar3DSeries
        • QBarDataItem
        • QBarDataProxy
        • QCategory3DAxis
        • QCustom3DItem
        • QCustom3DLabel
        • QCustom3DVolume
        • QHeightMapSurfaceDataProxy
        • QItemModelBarDataProxy
        • QItemModelScatterDataProxy
        • QItemModelSurfaceDataProxy
        • QLogValue3DAxisFormatter
        • QScatter3DSeries
        • QScatterDataItem
        • QScatterDataProxy
        • QSurface3DSeries
        • QSurfaceDataItem
        • QSurfaceDataProxy
        • QTouch3DInputHandler
        • QValue3DAxis
        • QValue3DAxisFormatter
      • PySide6.QtDesigner
        • Category
        • QAbstractExtensionFactory
        • QAbstractExtensionManager
        • QAbstractFormBuilder
        • QDesignerActionEditorInterface
        • QDesignerContainerExtension
        • QDesignerCustomWidgetCollectionInterface
        • QDesignerCustomWidgetInterface
        • QDesignerDnDItemInterface
        • QDesignerDynamicPropertySheetExtension
        • QDesignerFormEditorInterface
        • QDesignerFormWindowCursorInterface
        • QDesignerFormWindowInterface
        • QDesignerFormWindowManagerInterface
        • QDesignerFormWindowToolInterface
        • QDesignerMemberSheetExtension
        • QDesignerObjectInspectorInterface
        • QDesignerPropertyEditorInterface
        • QDesignerPropertySheetExtension
        • QDesignerTaskMenuExtension
        • QDesignerWidgetBoxInterface
        • QExtensionManager
        • QFormBuilder
        • Widget
        • QPyDesignerContainerExtension
        • QPyDesignerCustomWidgetCollection
        • QPyDesignerMemberSheetExtension
        • QPyDesignerTaskMenuExtension
      • PySide6.QtGui
        • Attribute
        • Element
        • FormatRange
        • Key
        • PaintContext
        • PixmapFragment
        • QAbstractFileIconProvider
        • QAbstractTextDocumentLayout
        • QAccessible
        • QAccessibleActionInterface
        • QAccessibleEditableTextInterface
        • QAccessibleEvent
        • QAccessibleInterface
        • QAccessibleObject
        • QAccessibleStateChangeEvent
        • QAccessibleTableCellInterface
        • QAccessibleTableModelChangeEvent
        • QAccessibleTextCursorEvent
        • QAccessibleTextInsertEvent
        • QAccessibleTextInterface
        • QAccessibleTextRemoveEvent
        • QAccessibleTextSelectionEvent
        • QAccessibleTextUpdateEvent
        • QAccessibleValueChangeEvent
        • QAccessibleValueInterface
        • QAction
        • QActionEvent
        • QActionGroup
        • QBackingStore
        • QBitmap
        • QBrush
        • QClipboard
        • QCloseEvent
        • QColor
        • QColorConstants
        • QColorSpace
        • QColorTransform
        • QConicalGradient
        • QContextMenuEvent
        • QCursor
        • QDesktopServices
        • QDoubleValidator
        • QDrag
        • QDragEnterEvent
        • QDragLeaveEvent
        • QDragMoveEvent
        • QDropEvent
        • QEnterEvent
        • QEventPoint
        • QExposeEvent
        • QFileOpenEvent
        • QFocusEvent
        • QFont
        • QFontDatabase
        • QFontInfo
        • QFontMetrics
        • QFontMetricsF
        • QGlyphRun
        • QGradient
        • QGuiApplication
        • QHelpEvent
        • QHideEvent
        • QHoverEvent
        • QIcon
        • QIconDragEvent
        • QIconEngine
        • QImage
        • QImageIOHandler
        • QImageReader
        • QImageWriter
        • QInputDevice
        • QInputEvent
        • QInputMethod
        • QInputMethodEvent
        • QInputMethodQueryEvent
        • QIntValidator
        • QKeyEvent
        • QKeySequence
        • QLinearGradient
        • QMatrix2x2
        • QMatrix2x3
        • QMatrix2x4
        • QMatrix3x2
        • QMatrix3x3
        • QMatrix3x4
        • QMatrix4x2
        • QMatrix4x3
        • QMatrix4x4
        • QMouseEvent
        • QMoveEvent
        • QMovie
        • QNativeGestureEvent
        • QOffscreenSurface
        • QOpenGLContext
        • QOpenGLContextGroup
        • QOpenGLExtraFunctions
        • QOpenGLFunctions
        • QPageLayout
        • QPageRanges
        • QPageSize
        • QPagedPaintDevice
        • QPaintDevice
        • QPaintDeviceWindow
        • QPaintEngine
        • QPaintEngineState
        • QPaintEvent
        • QPainter
        • QPainterPath
        • QPainterPathStroker
        • QPalette
        • QPdfWriter
        • QPen
        • QPicture
        • QPixelFormat
        • QPixmap
        • QPixmapCache
        • QPlatformSurfaceEvent
        • QPointerEvent
        • QPointingDevice
        • QPointingDeviceUniqueId
        • QPolygon
        • QPolygonF
        • QQuaternion
        • QRadialGradient
        • QRasterWindow
        • QRawFont
        • QRegion
        • QRegularExpressionValidator
        • QResizeEvent
        • QRgba64
        • QScreen
        • QScrollEvent
        • QScrollPrepareEvent
        • QSessionManager
        • QShortcut
        • QShortcutEvent
        • QShowEvent
        • QSinglePointEvent
        • QStandardItem
        • QStandardItemModel
        • QStaticText
        • QStatusTipEvent
        • QStyleHints
        • QSurface
        • QSurfaceFormat
        • QSyntaxHighlighter
        • QTabletEvent
        • QTextBlock
        • QTextBlockFormat
        • QTextBlockGroup
        • QTextBlockUserData
        • QTextCharFormat
        • QTextCursor
        • QTextDocument
        • QTextDocumentFragment
        • QTextDocumentWriter
        • QTextFormat
        • QTextFragment
        • QTextFrame
        • QTextFrameFormat
        • QTextImageFormat
        • QTextInlineObject
        • QTextItem
        • QTextLayout
        • QTextLength
        • QTextLine
        • QTextList
        • QTextListFormat
        • QTextObject
        • QTextObjectInterface
        • QTextOption
        • QTextTable
        • QTextTableCell
        • QTextTableCellFormat
        • QTextTableFormat
        • QToolBarChangeEvent
        • QTouchEvent
        • QTransform
        • QUndoCommand
        • QUndoGroup
        • QUndoStack
        • QValidator
        • QVector2D
        • QVector3D
        • QVector4D
        • QWhatsThisClickedEvent
        • QWheelEvent
        • QWindow
        • QWindowStateChangeEvent
        • Qt
        • Range
        • ScaledPixmapArgument
        • Selection
        • State
        • Svg
        • Tab
        • iterator
        • iterator
      • PySide6.QtHelp
        • QCompressedHelpInfo
        • QHelpContentItem
        • QHelpContentModel
        • QHelpContentWidget
        • QHelpEngine
        • QHelpEngineCore
        • QHelpFilterData
        • QHelpFilterEngine
        • QHelpFilterSettingsWidget
        • QHelpIndexModel
        • QHelpIndexWidget
        • QHelpLink
        • QHelpSearchEngine
        • QHelpSearchQuery
        • QHelpSearchQueryWidget
        • QHelpSearchResult
        • QHelpSearchResultWidget
      • PySide6.QtHttpServer
        • QAbstractHttpServer
        • QFutureHttpServerResponse
        • QHttpServer
        • QHttpServerRequest
        • QHttpServerResponder
        • QHttpServerResponse
        • QHttpServerRouter
        • QHttpServerRouterRule
      • PySide6.QtMqtt
        • QMqtt
        • QMqttAuthenticationProperties
        • QMqttClient
        • QMqttConnectionProperties
        • QMqttLastWillProperties
        • QMqttMessage
        • QMqttMessageStatusProperties
        • QMqttPublishProperties
        • QMqttServerConnectionProperties
        • QMqttStringPair
        • QMqttSubscription
        • QMqttSubscriptionProperties
        • QMqttTopicFilter
        • QMqttTopicName
        • QMqttUnsubscriptionProperties
      • PySide6.QtMultimedia
        • Interval
        • QAudio
        • QAudioBuffer
        • QAudioDecoder
        • QAudioDevice
        • QAudioFormat
        • QAudioInput
        • QAudioOutput
        • QAudioSink
        • QAudioSource
        • QCamera
        • QCameraDevice
        • QCameraFormat
        • QImageCapture
        • QMediaCaptureSession
        • QMediaDevices
        • QMediaFormat
        • QMediaMetaData
        • QMediaPlayer
        • QMediaRecorder
        • QMediaTimeRange
        • QSoundEffect
        • QVideoFrame
        • QVideoFrameFormat
        • QVideoSink
      • PySide6.QtMultimediaWidgets
        • QGraphicsVideoItem
        • QVideoWidget
      • PySide6.QtNetwork
        • QAbstractNetworkCache
        • QAbstractSocket
        • QAuthenticator
        • QDnsDomainNameRecord
        • QDnsHostAddressRecord
        • QDnsLookup
        • QDnsMailExchangeRecord
        • QDnsServiceRecord
        • QDnsTextRecord
        • QDtls
        • QDtlsClientVerifier
        • QHostAddress
        • QHostInfo
        • QHstsPolicy
        • QHttp2Configuration
        • QHttpMultiPart
        • QHttpPart
        • QIPv6Address
        • QLocalServer
        • QLocalSocket
        • QNetworkAccessManager
        • QNetworkAddressEntry
        • QNetworkCacheMetaData
        • QNetworkCookie
        • QNetworkCookieJar
        • QNetworkDatagram
        • QNetworkDiskCache
        • QNetworkInformation
        • QNetworkInterface
        • QNetworkProxy
        • QNetworkProxyFactory
        • QNetworkProxyQuery
        • QNetworkReply
        • QNetworkRequest
        • QOcspResponse
        • QPasswordDigestor
        • QSsl
        • QSslCertificate
        • QSslCertificateExtension
        • QSslCipher
        • QSslConfiguration
        • QSslDiffieHellmanParameters
        • QSslEllipticCurve
        • QSslError
        • QSslKey
        • QSslPreSharedKeyAuthenticator
        • QSslServer
        • QSslSocket
        • QTcpServer
        • QTcpSocket
        • QUdpSocket
      • PySide6.QtNetworkAuth
        • QAbstractOAuth
        • QAbstractOAuth2
        • QAbstractOAuthReplyHandler
        • QOAuth1
        • QOAuth1Signature
        • QOAuth2AuthorizationCodeFlow
        • QOAuthHttpServerReplyHandler
        • QOAuthOobReplyHandler
      • PySide6.QtNfc
        • QNdefFilter
        • QNdefMessage
        • QNdefNfcIconRecord
        • QNdefNfcSmartPosterRecord
        • QNdefNfcTextRecord
        • QNdefNfcUriRecord
        • QNdefRecord
        • QNearFieldManager
        • QNearFieldTarget
        • Record
      • PySide6.QtOpcUa
        • DataChangeFilter
        • EventFilter
        • NodeIds
        • QOpcUa
        • QOpcUaAddNodeItem
        • QOpcUaAddReferenceItem
        • QOpcUaApplicationDescription
        • QOpcUaApplicationIdentity
        • QOpcUaArgument
        • QOpcUaAttributeOperand
        • QOpcUaAuthenticationInformation
        • QOpcUaAxisInformation
        • QOpcUaBinaryDataEncoding
        • QOpcUaBrowsePathTarget
        • QOpcUaBrowseRequest
        • QOpcUaClient
        • QOpcUaComplexNumber
        • QOpcUaContentFilterElement
        • QOpcUaContentFilterElementResult
        • QOpcUaDataValue
        • QOpcUaDeleteReferenceItem
        • QOpcUaDoubleComplexNumber
        • QOpcUaEUInformation
        • QOpcUaElementOperand
        • QOpcUaEndpointDescription
        • QOpcUaErrorState
        • QOpcUaEventFilterResult
        • QOpcUaExpandedNodeId
        • QOpcUaExtensionObject
        • QOpcUaHistoryData
        • QOpcUaHistoryReadRawRequest
        • QOpcUaHistoryReadResponse
        • QOpcUaLiteralOperand
        • QOpcUaLocalizedText
        • QOpcUaMonitoringParameters
        • QOpcUaMultiDimensionalArray
        • QOpcUaNode
        • QOpcUaNodeCreationAttributes
        • QOpcUaPkiConfiguration
        • QOpcUaProvider
        • QOpcUaQualifiedName
        • QOpcUaRange
        • QOpcUaReadItem
        • QOpcUaReadResult
        • QOpcUaReferenceDescription
        • QOpcUaRelativePathElement
        • QOpcUaSimpleAttributeOperand
        • QOpcUaUserTokenPolicy
        • QOpcUaWriteItem
        • QOpcUaWriteResult
        • QOpcUaXValue
      • PySide6.QtOpenGL
        • Binder
        • QAbstractOpenGLFunctions
        • QOpenGLBuffer
        • QOpenGLDebugLogger
        • QOpenGLDebugMessage
        • QOpenGLFramebufferObject
        • QOpenGLFramebufferObjectFormat
        • QOpenGLPaintDevice
        • QOpenGLPixelTransferOptions
        • QOpenGLShader
        • QOpenGLShaderProgram
        • QOpenGLTexture
        • QOpenGLTextureBlitter
        • QOpenGLTimeMonitor
        • QOpenGLTimerQuery
        • QOpenGLVersionFunctionsFactory
        • QOpenGLVersionProfile
        • QOpenGLVertexArrayObject
        • QOpenGLWindow
      • PySide6.QtOpenGLWidgets
        • QOpenGLWidget
      • PySide6.QtPdf
        • QPdfBookmarkModel
        • QPdfDocument
        • QPdfDocumentRenderOptions
        • QPdfLink
        • QPdfPageNavigator
        • QPdfPageRenderer
        • QPdfSearchModel
        • QPdfSelection
      • PySide6.QtPdfWidgets
        • QPdfView
      • PySide6.QtPositioning
        • QGeoAddress
        • QGeoAreaMonitorInfo
        • QGeoAreaMonitorSource
        • QGeoCircle
        • QGeoCoordinate
        • QGeoLocation
        • QGeoPath
        • QGeoPolygon
        • QGeoPositionInfo
        • QGeoPositionInfoSource
        • QGeoPositionInfoSourceFactory
        • QGeoRectangle
        • QGeoSatelliteInfo
        • QGeoSatelliteInfoSource
        • QGeoShape
        • QNmeaPositionInfoSource
      • PySide6.QtPrintSupport
        • QAbstractPrintDialog
        • QPageSetupDialog
        • QPrintDialog
        • QPrintEngine
        • QPrintPreviewDialog
        • QPrintPreviewWidget
        • QPrinter
        • QPrinterInfo
      • PySide6.QtQml
        • PropertyPair
        • QJSEngine
        • QJSManagedValue
        • QJSPrimitiveValue
        • QJSValue
        • QJSValueIterator
        • QQmlAbstractUrlInterceptor
        • QQmlApplicationEngine
        • QQmlComponent
        • QQmlContext
        • QQmlDebuggingEnabler
        • QQmlEngine
        • QQmlError
        • QQmlExpression
        • QQmlExtensionInterface
        • QQmlExtensionPlugin
        • QQmlFile
        • QQmlFileSelector
        • QQmlImageProviderBase
        • QQmlIncubationController
        • QQmlIncubator
        • QQmlListReference
        • QQmlNetworkAccessManagerFactory
        • QQmlParserStatus
        • QQmlProperty
        • QQmlPropertyMap
        • QQmlPropertyValueSource
        • QQmlScriptString
        • QQmlTypesExtensionInterface
        • QPyQmlParserStatus
        • QPyQmlPropertyValueSource
        • QmlAnonymous
        • QmlAttached
        • QmlElement
        • QmlExtended
        • QmlForeign
        • QmlNamedElement
        • QmlSingleton
        • QmlUncreatable
        • qmlRegisterSingletonInstance
        • qmlRegisterSingletonType
        • qmlRegisterType
        • qmlRegisterUncreatableType
      • PySide6.QtQuick
        • Attribute
        • AttributeSet
        • ColoredPoint2D
        • Point2D
        • QQuickAsyncImageProvider
        • QQuickFramebufferObject
        • QQuickGraphicsConfiguration
        • QQuickGraphicsDevice
        • QQuickImageProvider
        • QQuickImageResponse
        • QQuickItem
        • QQuickItemGrabResult
        • QQuickPaintedItem
        • QQuickRenderControl
        • QQuickRenderTarget
        • QQuickTextDocument
        • QQuickTextureFactory
        • QQuickTransform
        • QQuickView
        • QQuickWindow
        • QSGBasicGeometryNode
        • QSGClipNode
        • QSGDynamicTexture
        • QSGFlatColorMaterial
        • QSGGeometry
        • QSGGeometryNode
        • QSGMaterial
        • QSGMaterialShader
        • QSGMaterialType
        • QSGNode
        • QSGOpacityNode
        • QSGOpaqueTextureMaterial
        • QSGRectangleNode
        • QSGRenderNode
        • QSGRendererInterface
        • QSGSimpleRectNode
        • QSGSimpleTextureNode
        • QSGTexture
        • QSGTextureMaterial
        • QSGTextureProvider
        • QSGTransformNode
        • QSGVertexColorMaterial
        • RenderState
        • RenderState
        • Renderer
        • TexturedPoint2D
        • UpdatePaintNodeData
      • PySide6.QtQuick3D
        • Attribute
        • InstanceTableEntry
        • QQuick3D
        • QQuick3DGeometry
        • QQuick3DInstancing
        • QQuick3DObject
        • QQuick3DTextureData
      • PySide6.QtQuickControls2
        • QQuickStyle
      • PySide6.QtQuickWidgets
        • QQuickWidget
      • PySide6.QtRemoteObjects
        • QAbstractItemModelReplica
        • QRemoteObjectAbstractPersistedStore
        • QRemoteObjectDynamicReplica
        • QRemoteObjectHost
        • QRemoteObjectHostBase
        • QRemoteObjectNode
        • QRemoteObjectPendingCall
        • QRemoteObjectPendingCallWatcher
        • QRemoteObjectRegistry
        • QRemoteObjectRegistryHost
        • QRemoteObjectReplica
        • QRemoteObjectSettingsStore
        • QRemoteObjectSourceLocationInfo
      • PySide6.QtScxml
        • AssignmentInfo
        • EvaluatorInfo
        • ForeachInfo
        • ForeachLoopBody
        • InvokeInfo
        • Loader
        • ParameterInfo
        • QScxmlCompiler
        • QScxmlCppDataModel
        • QScxmlDataModel
        • QScxmlDynamicScxmlServiceFactory
        • QScxmlError
        • QScxmlEvent
        • QScxmlExecutableContent
        • QScxmlInvokableService
        • QScxmlInvokableServiceFactory
        • QScxmlNullDataModel
        • QScxmlStateMachine
        • QScxmlStaticScxmlServiceFactory
        • QScxmlTableData
      • PySide6.QtSensors
        • QAccelerometer
        • QAccelerometerFilter
        • QAccelerometerReading
        • QAmbientLightFilter
        • QAmbientLightReading
        • QAmbientLightSensor
        • QAmbientTemperatureFilter
        • QAmbientTemperatureReading
        • QAmbientTemperatureSensor
        • QCompass
        • QCompassFilter
        • QCompassReading
        • QGyroscope
        • QGyroscopeFilter
        • QGyroscopeReading
        • QHumidityFilter
        • QHumidityReading
        • QHumiditySensor
        • QIRProximityFilter
        • QIRProximityReading
        • QIRProximitySensor
        • QLidFilter
        • QLidReading
        • QLidSensor
        • QLightFilter
        • QLightReading
        • QLightSensor
        • QMagnetometer
        • QMagnetometerFilter
        • QMagnetometerReading
        • QOrientationFilter
        • QOrientationReading
        • QOrientationSensor
        • QPressureFilter
        • QPressureReading
        • QPressureSensor
        • QProximityFilter
        • QProximityReading
        • QProximitySensor
        • QRotationFilter
        • QRotationReading
        • QRotationSensor
        • QSensor
        • QSensorBackend
        • QSensorBackendFactory
        • QSensorChangesInterface
        • QSensorFilter
        • QSensorManager
        • QSensorPluginInterface
        • QSensorReading
        • QTapFilter
        • QTapReading
        • QTapSensor
        • QTiltFilter
        • QTiltReading
        • QTiltSensor
        • qoutputrange
      • PySide6.QtSerialPort
        • QSerialPort
        • QSerialPortInfo
      • PySide6.QtSpatialAudio
        • QAmbientSound
        • QAudioEngine
        • QAudioListener
        • QAudioRoom
        • QSpatialSound
      • PySide6.QtSql
        • QSql
        • QSqlDatabase
        • QSqlDriver
        • QSqlDriverCreatorBase
        • QSqlError
        • QSqlField
        • QSqlIndex
        • QSqlQuery
        • QSqlQueryModel
        • QSqlRecord
        • QSqlRelation
        • QSqlRelationalTableModel
        • QSqlResult
        • QSqlTableModel
      • PySide6.QtStateMachine
        • QAbstractState
        • QAbstractTransition
        • QEventTransition
        • QFinalState
        • QHistoryState
        • QKeyEventTransition
        • QMouseEventTransition
        • QSignalTransition
        • QState
        • QStateMachine
        • SignalEvent
        • WrappedEvent
      • PySide6.QtSvg
        • QSvgGenerator
        • QSvgRenderer
      • PySide6.QtSvgWidgets
        • QGraphicsSvgItem
        • QSvgWidget
      • PySide6.QtTest
        • QAbstractItemModelTester
        • QSignalSpy
        • QTest
      • PySide6.QtTextToSpeech
        • QTextToSpeech
        • QTextToSpeechEngine
        • QVoice
      • PySide6.QtUiTools
        • QUiLoader
        • loadUiType
      • PySide6.QtWebChannel
        • QWebChannel
        • QWebChannelAbstractTransport
      • PySide6.QtWebEngineCore
        • FilterRequest
        • QWebEngineCertificateError
        • QWebEngineContextMenuRequest
        • QWebEngineCookieStore
        • QWebEngineDownloadRequest
        • QWebEngineFindTextResult
        • QWebEngineFullScreenRequest
        • QWebEngineHistory
        • QWebEngineHistoryItem
        • QWebEngineHistoryModel
        • QWebEngineHttpRequest
        • QWebEngineLoadingInfo
        • QWebEngineNewWindowRequest
        • QWebEngineNotification
        • QWebEnginePage
        • QWebEngineProfile
        • QWebEngineQuotaRequest
        • QWebEngineRegisterProtocolHandlerRequest
        • QWebEngineScript
        • QWebEngineScriptCollection
        • QWebEngineSettings
        • QWebEngineUrlRequestInfo
        • QWebEngineUrlRequestInterceptor
        • QWebEngineUrlRequestJob
        • QWebEngineUrlScheme
        • QWebEngineUrlSchemeHandler
      • PySide6.QtWebEngineQuick
        • QQuickWebEngineProfile
        • QtWebEngineQuick
      • PySide6.QtWebEngineWidgets
        • QWebEngineView
      • PySide6.QtWebSockets
        • QMaskGenerator
        • QWebSocket
        • QWebSocketCorsAuthenticator
        • QWebSocketHandshakeOptions
        • QWebSocketProtocol
        • QWebSocketServer
      • PySide6.QtWidgets
        • ExtraSelection
        • QAbstractButton
        • QAbstractGraphicsShapeItem
        • QAbstractItemDelegate
        • QAbstractItemView
        • QAbstractScrollArea
        • QAbstractSlider
        • QAbstractSpinBox
        • QAccessibleWidget
        • QApplication
        • QBoxLayout
        • QButtonGroup
        • QCalendarWidget
        • QCheckBox
        • QColorDialog
        • QColormap
        • QColumnView
        • QComboBox
        • QCommandLinkButton
        • QCommonStyle
        • QCompleter
        • QDataWidgetMapper
        • QDateEdit
        • QDateTimeEdit
        • QDial
        • QDialog
        • QDialogButtonBox
        • QDockWidget
        • QDoubleSpinBox
        • QErrorMessage
        • QFileDialog
        • QFileIconProvider
        • QFileSystemModel
        • QFocusFrame
        • QFontComboBox
        • QFontDialog
        • QFormLayout
        • QFrame
        • QGesture
        • QGestureEvent
        • QGestureRecognizer
        • QGraphicsAnchor
        • QGraphicsAnchorLayout
        • QGraphicsBlurEffect
        • QGraphicsColorizeEffect
        • QGraphicsDropShadowEffect
        • QGraphicsEffect
        • QGraphicsEllipseItem
        • QGraphicsGridLayout
        • QGraphicsItem
        • QGraphicsItemAnimation
        • QGraphicsItemGroup
        • QGraphicsLayout
        • QGraphicsLayoutItem
        • QGraphicsLineItem
        • QGraphicsLinearLayout
        • QGraphicsObject
        • QGraphicsOpacityEffect
        • QGraphicsPathItem
        • QGraphicsPixmapItem
        • QGraphicsPolygonItem
        • QGraphicsProxyWidget
        • QGraphicsRectItem
        • QGraphicsRotation
        • QGraphicsScale
        • QGraphicsScene
        • QGraphicsSceneContextMenuEvent
        • QGraphicsSceneDragDropEvent
        • QGraphicsSceneEvent
        • QGraphicsSceneHelpEvent
        • QGraphicsSceneHoverEvent
        • QGraphicsSceneMouseEvent
        • QGraphicsSceneMoveEvent
        • QGraphicsSceneResizeEvent
        • QGraphicsSceneWheelEvent
        • QGraphicsSimpleTextItem
        • QGraphicsTextItem
        • QGraphicsTransform
        • QGraphicsView
        • QGraphicsWidget
        • QGridLayout
        • QGroupBox
        • QHBoxLayout
        • QHeaderView
        • QInputDialog
        • QItemDelegate
        • QItemEditorCreatorBase
        • QItemEditorFactory
        • QKeySequenceEdit
        • QLCDNumber
        • QLabel
        • QLayout
        • QLayoutItem
        • QLineEdit
        • QListView
        • QListWidget
        • QListWidgetItem
        • QMainWindow
        • QMdiArea
        • QMdiSubWindow
        • QMenu
        • QMenuBar
        • QMessageBox
        • QPanGesture
        • QPinchGesture
        • QPlainTextDocumentLayout
        • QPlainTextEdit
        • QProgressBar
        • QProgressDialog
        • QProxyStyle
        • QPushButton
        • QRadioButton
        • QRubberBand
        • QScrollArea
        • QScrollBar
        • QScroller
        • QScrollerProperties
        • QSizeGrip
        • QSizePolicy
        • QSlider
        • QSpacerItem
        • QSpinBox
        • QSplashScreen
        • QSplitter
        • QSplitterHandle
        • QStackedLayout
        • QStackedWidget
        • QStatusBar
        • QStyle
        • QStyleFactory
        • QStyleHintReturn
        • QStyleHintReturnMask
        • QStyleHintReturnVariant
        • QStyleOption
        • QStyleOptionButton
        • QStyleOptionComboBox
        • QStyleOptionComplex
        • QStyleOptionDockWidget
        • QStyleOptionFocusRect
        • QStyleOptionFrame
        • QStyleOptionGraphicsItem
        • QStyleOptionGroupBox
        • QStyleOptionHeader
        • QStyleOptionHeaderV2
        • QStyleOptionMenuItem
        • QStyleOptionProgressBar
        • QStyleOptionRubberBand
        • QStyleOptionSizeGrip
        • QStyleOptionSlider
        • QStyleOptionSpinBox
        • QStyleOptionTab
        • QStyleOptionTabBarBase
        • QStyleOptionTabWidgetFrame
        • QStyleOptionTitleBar
        • QStyleOptionToolBar
        • QStyleOptionToolBox
        • QStyleOptionToolButton
        • QStyleOptionViewItem
        • QStylePainter
        • QStyledItemDelegate
        • QSwipeGesture
        • QSystemTrayIcon
        • QTabBar
        • QTabWidget
        • QTableView
        • QTableWidget
        • QTableWidgetItem
        • QTableWidgetSelectionRange
        • QTapAndHoldGesture
        • QTapGesture
        • QTextBrowser
        • QTextEdit
        • QTileRules
        • QTimeEdit
        • QToolBar
        • QToolBox
        • QToolButton
        • QToolTip
        • QTreeView
        • QTreeWidget
        • QTreeWidgetItem
        • QTreeWidgetItemIterator
        • QUndoView
        • QVBoxLayout
        • QWhatsThis
        • QWidget
        • QWidgetAction
        • QWidgetItem
        • QWizard
        • QWizardPage
        • TakeRowResult
      • PySide6.QtXml
        • QDomAttr
        • QDomCDATASection
        • QDomCharacterData
        • QDomComment
        • QDomDocument
        • QDomDocumentFragment
        • QDomDocumentType
        • QDomElement
        • QDomEntity
        • QDomEntityReference
        • QDomImplementation
        • QDomNamedNodeMap
        • QDomNode
        • QDomNodeList
        • QDomNotation
        • QDomProcessingInstruction
        • QDomText
  • Tutorials
    • Qt, QML, Widgets…What Is The Difference?
    • Which IDEs Are Compatible?
    • Binding Generation: What Is Shiboken?
    • File Types
    • Distributing Your Application to Other Systems/Platforms
    • Why Qt for Python?
    • Your First QtWidgets Application
    • Using a Simple Button
    • Signals and Slots
    • Creating a Dialog Application
    • Displaying Data Using a Table Widget
    • Displaying Data Using a Tree Widget
    • Using .ui files from Designer or QtCreator with QUiLoader and pyside6-uic
    • Using .qrc Files (pyside6-rcc)
    • Translating Applications
    • Styling the Widgets Application
    • Your First QtQuick/QML Application
    • Python-QML integration
    • QML Application Tutorial
    • QML, SQL and PySide Integration Tutorial
    • Data Visualization Tool Tutorial
      • Chapter 1 - Reading data from a CSV
      • Chapter 2 - Filtering data
      • Chapter 3 - Create an empty QMainWindow
      • Chapter 4 - Add a QTableView
      • Chapter 5 - Add a chart view
      • Chapter 6 - Plot the data in the ChartView
    • Expenses Tool Tutorial
    • Porting a C++ Application to Python
      • Chapter 1: initDb.h to createDb.py
      • Chapter 2: bookdelegate.cpp to bookdelegate.py
      • Chapter 3: Port bookdwindow.cpp to bookwindow.py
    • How To Debug a C++ Extension of a PySide6 Application?
      • Debugging PySide with Qt Creator (Linux)
      • Debugging PySide with VSCode (Linux + Windows)
  • Qt for Python Examples
    • Simple Qt 3D Example
    • Async examples
    • Async examples
    • Ax Viewer Example
    • Bluetooth Scanner Example
    • Bluetooth Low Energy Heart Rate Server
    • Bluetooth Low Energy Heart Rate Game
    • Line Chart Example
    • Callout Example
    • Light Markers and Points Selection Example
    • Memory Usag Example
    • Donut Chart Breakdown Example
    • Percent Bar Chart Example
    • Pie Chart Example
    • Temperature Records Example
    • Logarithmic Axis Example
    • Chart Themes Example
    • Legend Example
    • Line and Bar Chart Example
    • Area Chart Example
    • QML Polar Chart Example
    • Bar Chart Example
    • Nested Donuts Example
    • Audio Example
    • Dynamic Spline Example
    • Model Data Example
    • Mandelbrot Threads Example
    • Settings Editor Example
    • MIME Type Browser Example
    • examples/corelib/ipc/sharedmemory
    • Surface Example
    • Bars 3D Example
    • Surface Example
    • Surface Example
    • examples/dbus/listnames
    • examples/dbus/pingpong
    • Task Menu Extension (Designer)
    • Networkx viewer Example
    • Scikit Image Example
    • OpenCV Face Detection Example
    • Matplotlib Widget 3D Example
    • Matplotlib Widget Gaussian Example
    • Pandas Simple Example
    • Analog Clock Window Example
    • examples/macextras/macpasteboardmime
    • Player Example
    • Audio Source Example
    • Audio Output Example
    • Camera Example
    • Loopback Example
    • Downloader Example
    • examples/network/threadedfortuneserver
    • examples/network/blockingfortuneclient
    • Google Suggest Example
    • examples/network/fortuneclient
    • examples/network/fortuneserver
    • Reddit Example
    • examples/opcua/opcuaviewer
    • Texture Example
    • Context Info Example
    • Hello GL2 Example
    • Threaded QOpenGLWidget Example
    • PDF Viewer Example
    • PDF Viewer Example
    • Extending QML - Binding Example
    • Extending QML - Methods Example
    • Extending QML - Attached Properties Example
    • Extending QML - Object and List Property Types Example
    • Extending QML - Value Source Example
    • Extending QML - Grouped Properties Example
    • Extending QML - Adding Types Example
    • Extending QML - Inheritance and Coercion Example
    • Extending QML - Extension Objects Example
    • Extending QML - Default Property Example
    • Using Model Example
    • examples/qml/signals/qmltopy2
    • examples/qml/signals/qmltopy1
    • examples/qml/signals/pytoqml2
    • examples/qml/signals/qmltopy4
    • examples/qml/signals/pytoqml1
    • examples/qml/signals/qmltopy3
    • Text Properties Example
    • QAbstractListModel in QML
    • examples/qml/tutorials/extending/chapter2-methods
    • examples/qml/tutorials/extending/chapter4-customPropertyTypes
    • examples/qml/tutorials/extending/chapter5-listproperties
    • examples/qml/tutorials/extending/chapter1-basics
    • examples/qml/tutorials/extending/chapter3-bindings
    • Extending QML - Plugins Example
    • String List Model Example
    • Object List Model Example
    • QQuickRenderControl OpenGL Example
    • OpenGL under QML Squircle
    • Scene Graph Painted Item Example
    • Qt Quick Examples - Window and Screen
    • Custom Geometry Example
    • Introduction Example Qt Quick 3D
    • Qt Quick Controls 2 - Gallery
    • examples/remoteobjects/modelview
    • Sample Bindings Example
    • Using CMake
    • Scriptable Application Example
    • Terminal Example
    • Spatial Audio Panning Example
    • SQL Books Example
    • examples/statemachine/twowaybutton
    • examples/statemachine/factstates
    • examples/statemachine/rogue
    • examples/statemachine/eventtrans
    • examples/statemachine/ping_pong
    • Traffic Light Example
    • examples/texttospeech/hello_speak
    • examples/uitools/uiloader
    • WebChannel Standalone Example
    • Nano Browser Example
    • Simple Browser Example
    • Web Browser Example
    • WebEngine Notifications Example
    • examples/webenginewidgets/markdowneditor
    • examples/widgets/linguist
    • Syntax Highlighter Example
    • TextObject Example
    • examples/widgets/richtext/orderform
    • TextEdit Example
    • examples/widgets/imageviewer
    • Digital Clock Example
    • Character Map Example
    • Tetrix
    • Widgets Gallery Example
    • Screenshot Example
    • examples/widgets/desktop/systray
    • Address Book Example
    • JSON Model Example
    • Star Delegate Example
    • Editable Tree Model Example
    • Dir View Example
    • examples/widgets/itemviews/fetchmore
    • SpinBox Delegate Example
    • examples/widgets/itemviews/basicfiltermodel
    • examples/widgets/draganddrop/draggabletext
    • Drop Site Example
    • States Example
    • Animated Tiles Example
    • Easing Example
    • Application Chooser Example
    • examples/widgets/dialogs/extension
    • examples/widgets/dialogs/trivialwizard
    • examples/widgets/dialogs/findfiles
    • Classwizard Example
    • examples/widgets/dialogs/standarddialogs
    • License Wizard Example
    • Tab Dialog Example
    • Flow Layout Example
    • Basic Layouts Example
    • Dynamic Layouts Example
    • Border Layout Example
    • examples/widgets/gettext
    • QRegularExpression Example
    • examples/widgets/effects/lighting
    • Blur Picker Effect Example
    • Dock Widget Example
    • examples/widgets/mainwindows/mdi
    • examples/widgets/mainwindows/application
    • Code Editor Example
    • examples/widgets/thread_signals
    • examples/widgets/graphicsview/dragdroprobot
    • examples/widgets/graphicsview/collidingmice
    • examples/widgets/graphicsview/anchorlayout
    • examples/widgets/graphicsview/diagramscene
    • examples/widgets/graphicsview/elasticnodes
    • Plot Example
    • Basic Drawing Example
    • Painter Example
    • Concentric Circles Examples
    • Model View Tutorial Examples
    • Cannon Example
    • Address Book Example
    • DOM Bookmarks Example
  • Videos
  • Deployment
    • Qt for Python & fbs
    • Qt for Python & PyInstaller
    • Qt for Python & cx_Freeze
    • Qt for Python & Briefcase
    • Qt for Python & py2exe
    • Qt for Python & Nuitka
  • Considerations
  • Developer Notes
    • Add a new module
    • Add a new example or port one
    • Add a new tool or a Qt tool wrapper
    • Test a wheel
    • Build on the command line
    • The Set of Enum Features
    • The Transition To The Limited Python API (PEP384)
    • The signature C extension
    • Why do we have a __feature__?
    • The snake_case feature
    • The true_property feature
    • The __feature__ import
  • Module Index
Back to top

Widgets Gallery Example#

Qt’s support for widget styles and themes enables your application to fit in with the native desktop environment.

The widgets examples show how some of the widgets available in Qt might appear when configured to use the a particular style. Each style is only available on the respective platfom, and provides native look and feel by integrating to the platform theme. Thus, the final appearance varies depending on the active theme.

Widgets Gallery Screenshot
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

"""PySide6 port of the widgets/gallery example from Qt v5.15"""

import sys

from PySide6.QtCore import QCoreApplication, Qt
from PySide6.QtWidgets import QApplication
from widgetgallery import WidgetGallery


if __name__ == '__main__':
    app = QApplication()
    gallery = WidgetGallery()
    gallery.show()
    sys.exit(app.exec())
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import sys

from PySide6.QtWidgets import *
from PySide6.QtGui import (QCursor, QDesktopServices, QGuiApplication, QIcon,
                           QKeySequence, QShortcut, QStandardItem,
                           QStandardItemModel)
from PySide6.QtCore import (QDateTime, QDir, QLibraryInfo,
                            QSysInfo, QTimer, Qt, qVersion, Slot)


POEM = """Twinkle, twinkle, little star,
How I wonder what you are.
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you arenot"""

DIR_OPEN_ICON = ":/qt-project.org/styles/commonstyle/images/diropen-128.png"

COMPUTER_ICON = ":/qt-project.org/styles/commonstyle/images/computer-32.png"

SYSTEMINFO = """<html><head/><body>
<h3>Python</h3><p>{}</p>
<h3>Qt Build</h3><p>{}</p>
<h3>Operating System</h3><p>{}</p>
<h3>Screens</h3>
{}
</body></html>"""


def class_name(o):
    return o.metaObject().className()


def help_url(page):
    """Build a Qt help URL from the page name"""
    major_version = qVersion().split('.')[0]
    return f"https://doc.qt.io/qt-{major_version}/{page}.html"


def launch_help(widget):
    """Launch a widget's help page"""
    url = help_url(class_name(widget).lower())
    QDesktopServices.openUrl(url)


def launch_module_help():
    QDesktopServices.openUrl(help_url("qtwidgets-index"))


def init_widget(w, name):
    """Init a widget for the gallery, give it a tooltip showing the
       class name"""
    w.setObjectName(name)
    w.setToolTip(class_name(w))


def style_names():
    """Return a list of styles, default platform style first"""
    default_style_name = QApplication.style().objectName().lower()
    result = []
    for style in QStyleFactory.keys():
        if style.lower() == default_style_name:
            result.insert(0, style)
        else:
            result.append(style)
    return result


def embed_into_hbox_layout(w, margin=5):
    """Embed a widget into a layout to give it a frame"""
    result = QWidget()
    layout = QHBoxLayout(result)
    layout.setContentsMargins(margin, margin, margin, margin)
    layout.addWidget(w)
    return result


def format_geometry(rect):
    """Format a geometry as a X11 geometry specification"""
    w = rect.width()
    h = rect.height()
    x = rect.x()
    y = rect.y()
    return f"{w}x{h}{x:+d}{y:+d}"


def screen_info(widget):
    """Format information on the screens"""
    policy = QGuiApplication.highDpiScaleFactorRoundingPolicy()
    policy_string = str(policy).split('.')[-1]
    result = f"<p>High DPI scale factor rounding policy: {policy_string}</p><ol>"
    for screen in QGuiApplication.screens():
        current = screen == widget.screen()
        result += "<li>"
        if current:
            result += "<i>"
        name = screen.name()
        geometry = format_geometry(screen.geometry())
        dpi = int(screen.logicalDotsPerInchX())
        dpr = screen.devicePixelRatio()
        result += f'"{name}" {geometry} {dpi}DPI, DPR={dpr}'
        if current:
            result += "</i>"
        result += "</li>"
    result += "</ol>"
    return result


class WidgetGallery(QDialog):
    """Dialog displaying a gallery of Qt Widgets"""

    def __init__(self):
        super().__init__()

        self.setWindowIcon(QIcon(':/qt-project.org/logos/pysidelogo.png'))
        self._progress_bar = self.create_progress_bar()

        self._style_combobox = QComboBox()
        init_widget(self._style_combobox, "styleComboBox")
        self._style_combobox.addItems(style_names())

        style_label = QLabel("Style:")
        init_widget(style_label, "style_label")
        style_label.setBuddy(self._style_combobox)

        help_label = QLabel("Press F1 over a widget to see Documentation")
        init_widget(help_label, "help_label")

        disable_widgets_checkbox = QCheckBox("Disable widgets")
        init_widget(disable_widgets_checkbox, "disable_widgets_checkbox")

        buttons_groupbox = self.create_buttons_groupbox()
        itemview_tabwidget = self.create_itemview_tabwidget()
        simple_input_widgets_groupbox = self.create_simple_inputwidgets_groupbox()
        text_toolbox = self.create_text_toolbox()

        self._style_combobox.textActivated.connect(self.change_style)
        disable_widgets_checkbox.toggled.connect(buttons_groupbox.setDisabled)
        disable_widgets_checkbox.toggled.connect(text_toolbox.setDisabled)
        disable_widgets_checkbox.toggled.connect(itemview_tabwidget.setDisabled)
        disable_widgets_checkbox.toggled.connect(simple_input_widgets_groupbox.setDisabled)

        help_shortcut = QShortcut(self)
        help_shortcut.setKey(QKeySequence.HelpContents)
        help_shortcut.activated.connect(self.help_on_current_widget)

        top_layout = QHBoxLayout()
        top_layout.addWidget(style_label)
        top_layout.addWidget(self._style_combobox)
        top_layout.addStretch(1)
        top_layout.addWidget(help_label)
        top_layout.addStretch(1)
        top_layout.addWidget(disable_widgets_checkbox)

        dialog_buttonbox = QDialogButtonBox(QDialogButtonBox.Help |
                                            QDialogButtonBox.Close)
        init_widget(dialog_buttonbox, "dialogButtonBox")
        dialog_buttonbox.helpRequested.connect(launch_module_help)
        dialog_buttonbox.rejected.connect(self.reject)

        main_layout = QGridLayout(self)
        main_layout.addLayout(top_layout, 0, 0, 1, 2)
        main_layout.addWidget(buttons_groupbox, 1, 0)
        main_layout.addWidget(simple_input_widgets_groupbox, 1, 1)
        main_layout.addWidget(itemview_tabwidget, 2, 0)
        main_layout.addWidget(text_toolbox, 2, 1)
        main_layout.addWidget(self._progress_bar, 3, 0, 1, 2)
        main_layout.addWidget(dialog_buttonbox, 4, 0, 1, 2)

        qv = qVersion()
        self.setWindowTitle(f"Widget Gallery Qt {qv}")

    def setVisible(self, visible):
        super(WidgetGallery, self).setVisible(visible)
        if visible:
            self.windowHandle().screenChanged.connect(self.update_systeminfo)
            self.update_systeminfo()

    @Slot(str)
    def change_style(self, style_name):
        QApplication.setStyle(QStyleFactory.create(style_name))

    @Slot()
    def advance_progressbar(self):
        cur_val = self._progress_bar.value()
        max_val = self._progress_bar.maximum()
        self._progress_bar.setValue(cur_val + (max_val - cur_val) / 100)

    def create_buttons_groupbox(self):
        result = QGroupBox("Buttons")
        init_widget(result, "buttons_groupbox")

        default_pushbutton = QPushButton("Default Push Button")
        init_widget(default_pushbutton, "default_pushbutton")
        default_pushbutton.setDefault(True)

        toggle_pushbutton = QPushButton("Toggle Push Button")
        init_widget(toggle_pushbutton, "toggle_pushbutton")
        toggle_pushbutton.setCheckable(True)
        toggle_pushbutton.setChecked(True)

        flat_pushbutton = QPushButton("Flat Push Button")
        init_widget(flat_pushbutton, "flat_pushbutton")
        flat_pushbutton.setFlat(True)

        toolbutton = QToolButton()
        init_widget(toolbutton, "toolButton")
        toolbutton.setText("Tool Button")

        menu_toolbutton = QToolButton()
        init_widget(menu_toolbutton, "menuButton")
        menu_toolbutton.setText("Menu Button")
        tool_menu = QMenu(menu_toolbutton)
        menu_toolbutton.setPopupMode(QToolButton.InstantPopup)
        tool_menu.addAction("Option")
        tool_menu.addSeparator()
        action = tool_menu.addAction("Checkable Option")
        action.setCheckable(True)
        menu_toolbutton.setMenu(tool_menu)
        tool_layout = QHBoxLayout()
        tool_layout.addWidget(toolbutton)
        tool_layout.addWidget(menu_toolbutton)

        commandlinkbutton = QCommandLinkButton("Command Link Button")
        init_widget(commandlinkbutton, "commandLinkButton")
        commandlinkbutton.setDescription("Description")

        button_layout = QVBoxLayout()
        button_layout.addWidget(default_pushbutton)
        button_layout.addWidget(toggle_pushbutton)
        button_layout.addWidget(flat_pushbutton)
        button_layout.addLayout(tool_layout)
        button_layout.addWidget(commandlinkbutton)
        button_layout.addStretch(1)

        radiobutton_1 = QRadioButton("Radio button 1")
        init_widget(radiobutton_1, "radioButton1")
        radiobutton_2 = QRadioButton("Radio button 2")
        init_widget(radiobutton_2, "radioButton2")
        radiobutton_3 = QRadioButton("Radio button 3")
        init_widget(radiobutton_3, "radioButton3")
        radiobutton_1.setChecked(True)

        checkbox = QCheckBox("Tri-state check box")
        init_widget(checkbox, "checkBox")
        checkbox.setTristate(True)
        checkbox.setCheckState(Qt.PartiallyChecked)

        checkable_layout = QVBoxLayout()
        checkable_layout.addWidget(radiobutton_1)
        checkable_layout.addWidget(radiobutton_2)
        checkable_layout.addWidget(radiobutton_3)
        checkable_layout.addWidget(checkbox)
        checkable_layout.addStretch(1)

        main_layout = QHBoxLayout(result)
        main_layout.addLayout(button_layout)
        main_layout.addLayout(checkable_layout)
        main_layout.addStretch()
        return result

    def create_text_toolbox(self):
        result = QToolBox()
        init_widget(result, "toolBox")

        # Create centered/italic HTML rich text
        rich_text = "<html><head/><body><i>"
        for line in POEM.split('\n'):
            rich_text += f"<center>{line}</center>"
        rich_text += "</i></body></html>"

        text_edit = QTextEdit(rich_text)
        init_widget(text_edit, "textEdit")
        plain_textedit = QPlainTextEdit(POEM)
        init_widget(plain_textedit, "plainTextEdit")

        self._systeminfo_textbrowser = QTextBrowser()
        init_widget(self._systeminfo_textbrowser, "systemInfoTextBrowser")

        result.addItem(embed_into_hbox_layout(text_edit), "Text Edit")
        result.addItem(embed_into_hbox_layout(plain_textedit),
                       "Plain Text Edit")
        result.addItem(embed_into_hbox_layout(self._systeminfo_textbrowser),
                       "Text Browser")
        return result

    def create_itemview_tabwidget(self):
        result = QTabWidget()
        init_widget(result, "bottomLeftTabWidget")
        result.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Ignored)

        tree_view = QTreeView()
        init_widget(tree_view, "treeView")
        filesystem_model = QFileSystemModel(tree_view)
        filesystem_model.setRootPath(QDir.rootPath())
        tree_view.setModel(filesystem_model)

        table_widget = QTableWidget()
        init_widget(table_widget, "tableWidget")
        table_widget.setRowCount(10)
        table_widget.setColumnCount(10)

        list_model = QStandardItemModel(0, 1, result)

        list_model.appendRow(QStandardItem(QIcon(DIR_OPEN_ICON), "Directory"))
        list_model.appendRow(QStandardItem(QIcon(COMPUTER_ICON), "Computer"))

        list_view = QListView()
        init_widget(list_view, "listView")
        list_view.setModel(list_model)

        icon_mode_listview = QListView()
        init_widget(icon_mode_listview, "iconModeListView")

        icon_mode_listview.setViewMode(QListView.IconMode)
        icon_mode_listview.setModel(list_model)

        result.addTab(embed_into_hbox_layout(tree_view), "Tree View")
        result.addTab(embed_into_hbox_layout(table_widget), "Table")
        result.addTab(embed_into_hbox_layout(list_view), "List")
        result.addTab(embed_into_hbox_layout(icon_mode_listview),
                      "Icon Mode List")
        return result

    def create_simple_inputwidgets_groupbox(self):
        result = QGroupBox("Simple Input Widgets")
        init_widget(result, "bottomRightGroupBox")
        result.setCheckable(True)
        result.setChecked(True)

        lineedit = QLineEdit("s3cRe7")
        init_widget(lineedit, "lineEdit")
        lineedit.setClearButtonEnabled(True)
        lineedit.setEchoMode(QLineEdit.Password)

        spin_box = QSpinBox()
        init_widget(spin_box, "spinBox")
        spin_box.setValue(50)

        date_timeedit = QDateTimeEdit()
        init_widget(date_timeedit, "dateTimeEdit")
        date_timeedit.setDateTime(QDateTime.currentDateTime())

        slider = QSlider()
        init_widget(slider, "slider")
        slider.setOrientation(Qt.Horizontal)
        slider.setValue(40)

        scrollbar = QScrollBar()
        init_widget(scrollbar, "scrollBar")
        scrollbar.setOrientation(Qt.Horizontal)
        scrollbar.setValue(60)

        dial = QDial()
        init_widget(dial, "dial")
        dial.setValue(30)
        dial.setNotchesVisible(True)

        layout = QGridLayout(result)
        layout.addWidget(lineedit, 0, 0, 1, 2)
        layout.addWidget(spin_box, 1, 0, 1, 2)
        layout.addWidget(date_timeedit, 2, 0, 1, 2)
        layout.addWidget(slider, 3, 0)
        layout.addWidget(scrollbar, 4, 0)
        layout.addWidget(dial, 3, 1, 2, 1)
        layout.setRowStretch(5, 1)
        return result

    def create_progress_bar(self):
        result = QProgressBar()
        init_widget(result, "progressBar")
        result.setRange(0, 10000)
        result.setValue(0)

        timer = QTimer(self)
        timer.timeout.connect(self.advance_progressbar)
        timer.start(1000)
        return result

    @Slot()
    def update_systeminfo(self):
        """Display system information"""
        system_info = SYSTEMINFO.format(sys.version,
                                        QLibraryInfo.build(),
                                        QSysInfo.prettyProductName(),
                                        screen_info(self))
        self._systeminfo_textbrowser.setHtml(system_info)

    @Slot()
    def help_on_current_widget(self):
        """Display help on widget under mouse"""
        w = QApplication.widgetAt(QCursor.pos(self.screen()))
        while w:  # Skip over internal widgets
            name = w.objectName()
            if name and not name.startswith("qt_"):
                launch_help(w)
                break
            w = w.parentWidget()
Next
Screenshot Example
Previous
Tetrix
Copyright © 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 (https://www.gnu.org/licenses/fdl.html) as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.
Made with Sphinx and @pradyunsg's Furo