about: add PyQt6 compatibility for getting the PyQt version
[git-cola.git] / qtpy / QtQuickControls2.py
blob743aa5d41c478fca8138dd9e18fe78feef50cbe9
1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtQuickControls2 classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
18 if PYQT5:
19 raise QtBindingMissingModuleError(name='QtQuickControls2')
20 elif PYQT6:
21 raise QtBindingMissingModuleError(name='QtQuickControls2')
22 elif PYSIDE2:
23 from PySide2.QtQuickControls2 import *
24 elif PYSIDE6:
25 from PySide6.QtQuickControls2 import *