PySide6 Essentials

6.11.0 · active · verified Sat Apr 11

PySide6 Essentials (version 6.11.0) provides the core Python bindings for the Qt 6 cross-platform application and UI framework. Developed by The Qt Company, it offers essential Qt modules like QtCore, QtGui, and QtWidgets under an LGPLv3 or GPLv2/GPLv3 license. It is released frequently, generally following the Qt framework's release cadence, with minor updates and bug fixes.

Warnings

Install

Imports

Quickstart

A minimal PySide6 application demonstrating how to create a basic window with a label. It initializes QApplication, creates a QWidget as the main window, adds a QLabel, sets a layout, and starts the event loop.

import sys
from PySide6.QtWidgets import QApplication, QLabel, QWidget, QVBoxLayout

def main():
    app = QApplication(sys.argv)
    window = QWidget()
    window.setWindowTitle("PySide6 Essentials App")

    layout = QVBoxLayout()
    label = QLabel("Hello from PySide6 Essentials!")
    layout.addWidget(label)
    window.setLayout(layout)

    window.show()
    sys.exit(app.exec())

if __name__ == "__main__":
    main()

view raw JSON →