Differences between revisions 69 and 105 (spanning 36 versions)
Revision 69 as of 2010-09-16 15:56:29
Size: 4619
Editor: DavidBoddie
Comment:
Revision 105 as of 2021-08-18 06:00:52
Size: 5813
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
PyQt is one of the most popular Python bindings for the Qt cross-platform C++ framework. PyQt was developed by [[http://www.riverbankcomputing.com|Riverbank Computing Limited]]. Qt itself is developed as part of the [[http://qt.io|Qt Project]]. PyQt provides bindings for Qt 4 and Qt 5. PyQt is distributed under a [[PyQt/PyQtLicensing|choice of licences]]: GPL version 3 or a commercial license.
Line 3: Line 4:
PyQt is a comprehensive set of Python bindings for the Qt cross-platform GUI/XML/SQL C++ framework from Nokia's Qt Development Frameworks (formerly Trolltech). PyQt provides bindings for Qt 2 and Qt 3. !PyQt4, a separate set of bindings, covers the Qt 4 series of releases. PyQt is dual-licensed under the GPL version 2 and a commercial license. There are also official Nokia bindings called [[http://www.pyside.org/|PySide]] available under LGPL. 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.
Line 5: Line 6:
!PyQt4 is a set of Python bindings for [[http://www.trolltech.com/products/qt|Qt 4]] that exposes much of the functionality of Qt 4 to Python.
It contains over 600 classes that cover graphical user interfaces, XML handling, network communication, SQL databases, Web browsing and other technologies in Qt.
The latest iteration of PyQt is v5.11.3. It fully supports Qt 5.11.2.
Line 8: Line 8:
Many of the features are described on the [[http://www.diotavelli.net/PyQtWiki/PyQt4|About PyQt4]] page on the !PyQt Wiki. !PyQt4 runs on Windows, Linux, Mac OS X and various UNIX platforms. !PyQt5 also runs on Android and iOS.
Line 10: Line 10:
== PyQt documentation == == PyQt Documentation ==
Current documentation is available for [[http://pyqt.sourceforge.net/Docs/PyQt4/|PyQt4]] and [[http://pyqt.sourceforge.net/Docs/PyQt5/|PyQt5]].
Line 12: Line 13:
Current documentation is available at [[http://www.riverbankcomputing.com/static/Docs/PyQt4/pyqt4ref.html]]. A collection of links to books can be found on the [[PyQt/Books|Books]] page.
Line 14: Line 15:
The PyQt Wiki contains more actively-updated information and examples:  * Michael Herrmann's '''[[https://build-system.fman.io/pyqt5-book|PyQt5 book]]''' quickly shows how to create desktop applications. It includes a foreword by Phil Thompson, the creator of PyQt.
 * '''[[https://www.learnpyqt.com/pyqt5-book|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.
 * '''[[https://www.apress.com/gp/book/9781484258569|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.
Line 16: Line 19:
 * A collection of links to books can be found on the [[http://www.diotavelli.net/PyQtWiki/Books|Books]] page.
   * Mark Summerfield's book, '''Rapid GUI Programming with Python and Qt''', is an up-to-date guide to GUI application development with Python 2.5, PyQt4 and Qt 4.2/4.3. More information can be found at http://www.qtrac.eu/pyqtbook.html. Mark recommends, incidentally, '''[[http://www.gui-bloopers.com/|GUI Bloopers]]''', as appropriate supplementary reading for PyQt programmers.
 * A list of tutorials can also be found on the [[http://www.diotavelli.net/PyQtWiki/Tutorials|Tutorials]] page.
   * '''The PyQt4 tutorial''' available at http://zetcode.com/tutorials/pyqt4/ is often recommended to new users.
== Tutorials ==
Line 21: Line 21:
On this Wiki, you can find the following tutorials: A comprehensive list of tutorials can also be found on the [[PyQt/Tutorials|Tutorials]] page, which includes !PyQt5 tutorials from the following sites:
Line 23: Line 23:
 * A tutorial presented by Jonathan Gardner at the 2003 Northwest Linux Fest is available at [[JonathanGardnerPyQtTutorial]].
 * A tutorial presented by Oleksandr Yakovlyev for embedding PyQt in C++/Qt application [[EmbedingPyQtTutorial]]
 * [[https://build-system.fman.io/pyqt5-tutorial|fman build system]]
 * [[https://coderslegacy.com/python/pyqt5-tutorial/|Coders Legacy]]
 * [[https://www.learnpyqt.com|Learn PyQt]]
Line 26: Line 27:
== PyQt applications == On this Wiki, you can also find the following tutorials, now mostly of historical interest only:
Line 28: Line 29:
A list of applications that use !PyQt as their UI layer can be found on the [[http://www.diotavelli.net/PyQtWiki/SomeExistingApplications|SomeExistingApplications]] page of the !PyQt Wiki. This replaces the list previously found here.  * A tutorial presented by Jonathan Gardner at the 2003 Northwest Linux Fest is available at JonathanGardnerPyQtTutorial.
 * A tutorial presented by Oleksandr Yakovlyev for embedding PyQt in C++/Qt application EmbedingPyQtTutorial
Line 30: Line 32:
Similarly, the [[http://www.diotavelli.net/PyQtWiki/Third_Party_Packages_and_Modules|Third_Party_Packages_and_Modules]] page provides a list of resources that can be used to help build applications with certain features. == Developing with PyQt and PyKDE ==
 * [[PyQt/Tutorials|Tutorials]] contains a list of tutorials and walkthroughs
 * [[PyQt/Books|Books]] contains a list of books about Qt, PyQt, KDE and PyKDE
 * [[PyQt/DevelopmentWithPyQt|Development With PyQt]] can be made even easier with some extra tools and information
 * [[PyQt/SampleCode|Sample Code]] lists some pieces of code to solve some common programming problems
 * [[PyQt/Overviews_and_Guides|Overviews and Guides]] provides in-depth information and detailed examples
 * [[PyQt/DocsAndHowtos|Docs And Howtos]] contains links to API documentation and articles about developing with PyQt and PyKDE
 * [[PyQt/SomeExistingApplications|Some Existing Applications]] written with !PyQt and PyKDE
 * [[PyQt/Third_Party_Packages_and_Modules|Third Party Packages and Modules]] for use with !PyQt and PyKDE
 * [[PyQt/GUI_Testing|GUI Testing]]
 * [[PyQt/PyQtVideos|Videos]] about !PyQt on various video sites

== PyQt Applications ==
A list of applications that use !PyQt as their UI layer can be found on the [[PyQt/SomeExistingApplications|Some Existing Applications]] page. This replaces the list previously found here.

Similarly, the [[PyQt/Third_Party_Packages_and_Modules|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 [[PyQt/SampleCode|Sample Code]] is also available to help with specific problems and use cases.
Line 33: Line 52:
The [[https://www.riverbankcomputing.com/mailman/listinfo/pyqt|official mailing list]] is a high signal-to-noise discussion list for !PyQt users and developers.
Line 34: Line 54:
A Wiki dedicated to PyQt and [[PyKDE]] can be found at [[http://www.diotavelli.net/PyQtWiki|The PyQt and PyKDE community Wiki]]. The
[[http://www.riverbankcomputing.com/mailman/listinfo/pyqt||mailing list]]
is low in volume and high in quality. The
[[http://www.riverbankcomputing.co.uk/software/pyqt/roadmap|Roadmap]]
is always valuable to read.

Phil Thompson was [[http://web.archive.org/web/20070208043017/http://dot.kde.org/1155075248/|interviewed about PyQt]] for [[http://dot.kde.org|KDE Dot News]] in August 2006, and
[[http://web.archive.org/web/20010201180600/http://www.sunworld.com/sunworldonline/swol-05-2000/swol-05-regex_2.html|profiled]] for ''!SunWorld Online'' in 2000.
Phil Thompson was [[http://web.archive.org/web/20070208043017/http://dot.kde.org/1155075248/|interviewed about PyQt]] for [[http://dot.kde.org|KDE Dot News]] in August 2006, and [[http://web.archive.org/web/20010201180600/http://www.sunworld.com/sunworldonline/swol-05-2000/swol-05-regex_2.html|profiled]] for ''!SunWorld Online'' in 2000.
Line 44: Line 57:
Line 48: Line 60:
Line 50: Line 63:
Line 51: Line 65:
Line 60: Line 75:
PyQt is available for Windows, UNIX/Linux, Mac OS X and the Sharp Zaurus.

About PyQt

PyQt is one of the most popular Python bindings for the Qt cross-platform C++ framework. PyQt was developed by Riverbank Computing Limited. Qt itself is developed as part of the Qt Project. PyQt provides bindings for Qt 4 and Qt 5. PyQt is distributed under a choice of licences: 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 PyQt4 and PyQt5.

A collection of links to books can be found on the Books page.

  • Michael Herrmann's PyQt5 book 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 Tutorials 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:

Developing with PyQt and PyKDE

PyQt Applications

A list of applications that use PyQt as their UI layer can be found on the Some Existing Applications 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 Sample Code is also available to help with specific problems and use cases.

The official mailing list is a high signal-to-noise discussion list for PyQt users and developers.

Phil Thompson was interviewed about PyQt for KDE Dot News in August 2006, and profiled 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, MySQL, PostgreSQL, Oracle)

  • QScintilla, Scintilla-based 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.


CategoryPyGUI

PyQt (last edited 2021-08-18 06:00:52 by WillmanJoshua)

Unable to edit the page? See the FrontPage for instructions.