PyQt5 Qt5 Runtime Libraries

5.15.18 · active · verified Fri Apr 10

The `pyqt5-qt5` package bundles a critical subset of the Qt installation required by PyQt5, enabling PyQt5 applications to run without a separate, system-wide Qt installation. It functions primarily as an internal dependency and is typically installed automatically by `pip` when the `PyQt5` package is installed. This package is licensed under the LGPL v3. As of its latest release, the current version is 5.15.18.

Warnings

Install

Quickstart

The `pyqt5-qt5` package is not directly imported or used by end-user code. Instead, it provides the underlying Qt binaries for `PyQt5`. The quickstart below demonstrates a basic 'Hello World' application using `PyQt5`, which relies on `pyqt5-qt5` for its runtime environment.

import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel
from PyQt5.QtGui import QIcon

if __name__ == '__main__':
    app = QApplication(sys.argv)
    
    window = QWidget()
    window.setWindowTitle('PyQt5 Hello World')
    window.setGeometry(100, 100, 400, 200)

    label = QLabel('Hello from PyQt5!', window)
    label.move(150, 80)
    
    window.show()
    sys.exit(app.exec_())

view raw JSON →