{"repo":"spyder-ide/qtpy","free":true,"listed":false,"github":"https://github.com/spyder-ide/qtpy","clone":"git clone https://github.com/spyder-ide/qtpy.git","description":"Provides an uniform layer to support PyQt5, PySide2, PyQt6, PySide6 with a single codebase","language":"Python","stars":1101,"topics":["python","qtpy","spyder","qt-gui","pyqt","pyside","pyside2","pyside6","pyqt6","closember"],"license":"MIT","category":"dev-tools","readme_excerpt":"QtPy: Abstraction layer for PyQt5/PySide2/PyQt6/PySide6 Copyright © 2009– The Spyder Development Team Description QtPy provides a uniform interface to support PyQt5, PySide2, PyQt6, and PySide6 through a single codebase. It abstracts the differences between bindings and versions, allowing software to remain portable and easier to maintain. Import from qtpy instead of PySide/PyQt: Installation or Requirements The installation requires one of the supported packages (PyQt5, PyQt6, PySide2, PySide6) as QtPy does not install any binding by itself. If multiple of these libraries are found, PyQt5 is used by default. To set a specific binding, see Bindings. Features Supports multiple Qt bindings (PyQt5/6, PySide2/6) without requiring conditional imports or logic branching. Detects and loads the available Qt binding automatically based on what is installed or already imported. Normalizes the module structure to follow the Qt5 layout ( QtGui / QtWidgets ). Simplifies the process of porting applications between Qt5 and Qt6 by handling API incompatibilities internally. Enables incremental updates to project modules rather than requiring a full-scale rewrite when changing Qt providers. Bindings To set a specific binding, set the QT API environment variable to one of the following values: Value Binding ----------- --------- pyside6 PySide6 pyside2 PySide2 pyqt6 PyQt6 pyqt5 PyQt5 For example, to use PyQt6: Module Aliases QtPy provides aliases following the Qt5 module layout: PyQt5/6 Alias -","default_branch":null,"files":null,"tree":[],"storefront":"/r/spyder-ide","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spyder-ide/qtpy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}