PyQt6-Qt Core Components

6.0.1 · active · verified Fri Apr 17

The `pyqt6-qt` package is a crucial runtime dependency for `PyQt6`, providing the necessary compiled Qt binaries and libraries. It is not intended for direct import or use by application developers but is automatically installed and utilized by the `PyQt6` package to enable GUI functionality. The current version is 6.0.1, reflecting its close tie to the PyQt6 release cycle.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates a basic PyQt6 application. While `pyqt6-qt` is not directly imported, it is a mandatory runtime dependency that provides the underlying Qt shared libraries, making the `PyQt6` imports and functionality possible. You typically install `PyQt6` which then pulls in `pyqt6-qt`.

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

# Note: pyqt6-qt provides the underlying Qt libraries,
# enabling the functionality imported from PyQt6.

def main():
    app = QApplication(sys.argv)
    
    window = QWidget()
    window.setWindowTitle('PyQt6-Qt Enabled App')
    window.setGeometry(100, 100, 280, 80)
    
    hello_label = QLabel('Hello, PyQt6!', parent=window)
    hello_label.move(60, 15)
    
    window.show()
    sys.exit(app.exec())

if __name__ == '__main__':
    main()

view raw JSON →