PyQt6 Qt6 Core Components

6.11.0 · active · verified Thu Apr 09

This package provides the core Qt6 shared libraries (DLLs/SOs) compiled for Python, which are a fundamental dependency for the PyQt6 bindings. It does not contain any Python API for direct use, but rather the underlying C++ runtime components. It is typically installed automatically as a dependency of the `PyQt6` package. The current version is 6.11.0, and it generally follows the release schedule of the main PyQt6 library and the underlying Qt framework.

Warnings

Install

Quickstart

This quickstart demonstrates a basic PyQt6 application. The `pyqt6-qt6` package provides the necessary underlying Qt6 C++ runtime libraries that `PyQt6` (which handles the Python bindings) uses to function. You do not directly import or interact with `pyqt6-qt6` from your Python code; its presence as a dependency is sufficient for PyQt6 applications to run.

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

# Note: pyqt6-qt6 provides the underlying Qt6 C++ libraries for PyQt6 to use.
# You do not import directly from pyqt6-qt6 in your Python code.

if __name__ == '__main__':
    app = QApplication(sys.argv)

    window = QWidget()
    window.setWindowTitle('PyQt6 with pyqt6-qt6 runtime')

    layout = QVBoxLayout()
    label = QLabel('Hello from PyQt6!')
    layout.addWidget(label)

    window.setLayout(layout)
    window.show()

    sys.exit(app.exec())

view raw JSON →