qt: Qt bindingsΒΆ

Common wrapper over Python Qt bindings:

If a Qt binding is already loaded, it will use it, otherwise the different Qt bindings are tried in this order: PyQt5, PyQt4, PySide, PySide2.

The name of the loaded Qt binding is stored in the BINDING variable.

This module provides a flat namespace over Qt bindings by importing all symbols from QtCore and QtGui packages and if available from QtOpenGL and QtSvg packages. For PyQt5, it also imports all symbols from QtWidgets and QtPrintSupport packages.

Example of using silx.gui.qt module:

>>> from silx.gui import qt
>>> app = qt.QApplication([])
>>> widget = qt.QWidget()

For an alternative solution providing a structured namespace, see qtpy which provides the namespace of PyQt5 over PyQt4 and PySide.