# Welcome to AnyQt’s documentation!

AnyQt is a PyQt4/PyQt5 compatibility layer intended as a stepping stone to full PyQt5 support while still providing support for PyQt4.

The idea is to use use a forward compatible module structure that mimics that of Qt5, even when using Qt4

By default PyQt5 is used if available, but that can be changed by a QT_API env variable (which can take either ‘pyqt4’ or ‘pyqt5’ values), or setting the preferred api using the `AnyQt.setpreferredapi()`. However if any of the Qt apis is already imported (listed in sys.modules) then it is used instead.

Note

The final choice of api is delayed until the first AnyQt.Qt* module is imported

Contents:

- `AnyQt`
  - `availableapi()`
  - `setpreferredapi()`
  - `selectapi()`
  - `USED_API`
  - `AnyQt.QtCore`
  - `AnyQt.QtGui`
  - `AnyQt.QtWidgets`
  - `AnyQt.QtMultimedia`
  - `AnyQt.QtMultimediaWidgets`
  - `AnyQt.QtNetwork`
  - `AnyQt.QtPrintSupport`
  - `AnyQt.Qml`
  - `AnyQt.QtQuick`
  - `AnyQt.QtSql`
  - `AnyQt.QtSvg`
  - `AnyQt.QtSvgWidgets`
  - `AnyQt.QtTest`
  - `AnyQt.QtDBus`
  - `AnyQt.QtDesigner`
  - `AnyQt.QtHelp`
  - `AnyQt.QtMacExtras`
  - `AnyQt.QtOpenGL`
  - `AnyQt.QtWebChannel`
  - `AnyQt.QtWebEngineWidgets`
  - `AnyQt.QtWebKit`
  - `AnyQt.QtWebKitWidgets`
  - `AnyQt.QtWebSockets`
  - `AnyQt.QtWinExtras`
  - `AnyQt.QtX11Extras`
  - `AnyQt.QtXml`
  - `AnyQt.QtXmlPatterns`
  - `AnyQt.sip`

# Indices and tables

- Index

- Module Index

- Search Page