This wiki is in the process of being archived due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies. Edits are discouraged.
Pages are preserved as they were at the time of archival. For current information, please visit
.
If a change to this archive is absolutely needed, requests can be made via the
mailing list.
About PyQt
PyQt is one of the most popular Python bindings for the Qt cross-platform C++ framework. PyQt was developed by
. Qt itself is developed as part of the
. PyQt provides bindings for Qt 4 and Qt 5. PyQt is distributed under a
: GPL version 3 or a commercial license.
PyQt is available in two editions: PyQt4 which will build against Qt 4.x and 5.x and PyQt5 which will only build against 5.x. Both editions can be built for Python 2 and 3. PyQt contains over 620 classes that cover graphical user interfaces, XML handling, network communication, SQL databases, Web browsing and other technologies available in Qt.
The latest iteration of PyQt is v5.11.3. It fully supports Qt 5.11.2.
PyQt4 runs on Windows, Linux, Mac OS X and various UNIX platforms. PyQt5 also runs on Android and iOS.
PyQt Documentation
Current documentation is available for
and
.
A collection of links to books can be found on the
page.
Michael Herrmann's
quickly shows how to create desktop applications. It includes a foreword by Phil Thompson, the creator of PyQt.
Create GUI Applications with Python & Qt
by Martin Fitzpatrick, covers beginner and advanced PyQt5 topics. Includes chapters on multithreading, Model Views & databases, Qt stylesheets and data visualization.
Beginning PyQt: A Hands-on Approach to GUI Programming
by Joshua Willman, takes a practical approach to building PyQt5 GUI applications and covers a variety of different GUI-related topics.
Tutorials
A comprehensive list of tutorials can also be found on the
page, which includes PyQt5 tutorials from the following sites:
On this Wiki, you can also find the following tutorials, now mostly of historical interest only:
A tutorial presented by Jonathan Gardner at the 2003 Northwest Linux Fest is available at
.
A tutorial presented by Oleksandr Yakovlyev for embedding PyQt in C++/Qt application
Developing with PyQt and PyKDE
contains a list of tutorials and walkthroughs
contains a list of books about Qt, PyQt, KDE and PyKDE
can be made even easier with some extra tools and information
lists some pieces of code to solve some common programming problems
provides in-depth information and detailed examples
contains links to API documentation and articles about developing with PyQt and PyKDE
written with PyQt and PyKDE
Third Party Packages and Modules
for use with PyQt and PyKDE
about PyQt on various video sites
PyQt Applications
A list of applications that use PyQt as their UI layer can be found on the
page. This replaces the list previously found here.
Similarly, the
Third Party Packages and Modules
page provides a list of resources that can be used to help build applications with certain features.
A collection of
is also available to help with specific problems and use cases.
Links to other resources
The
is a high signal-to-noise discussion list for PyQt users and developers.
Phil Thompson was
for
in August 2006, and
for SunWorld Online in 2000.
Earlier Versions
This section describes PyQt version 3 (for Qt 3).
PyQt implements around 300 classes and over 5,750 functions and methods including:
a substantial set of GUI widgets
classes for accessing SQL databases (ODBC,
,
,
)
QScintilla,
rich text editor widget
data aware widgets that are automatically populated from a database
an XML parser
SVG support
classes for embedding ActiveX controls on Windows (only in commercial version)
Earlier versions of PyQt included a graphical debugger called eric, written using PyQt, which can be used to debug PyQt and ordinary Python console applications. It's now available separately as eric4 from
http://eric-ide.python-projects.org/index.html
.
PyQt includes pyuic which generates Python code from GUI designs created with Qt Designer. This makes PyQt very useful as a rapid prototyping tool for applications that will eventually be (partly or completely) implemented in C++ because the user interface designs can be re-used without modification.
———