this is a german Web-Mirror of PYTHON.ORG powered by Domainunion AG

Differences between revisions 80 and 81
Revision 80 as of 2014-01-31 00:36:23
Size: 4835
Editor: PaulBoddie
Comment: Fixed links, referred to archived PyQt Wiki pages.
Revision 81 as of 2014-01-31 17:03:01
Size: 4785
Comment: Added description for PyQt5.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
PyQt is Python bindings developed by Riverbank Computing Limited for the Qt cross-platform GUI/XML/SQL C++ framework. Qt itself is developed by Digia Plc (formerly Nokia and Trolltech). PyQt provides bindings for Qt 4 and Qt 5. PyQt is distributed under a choice of licences: GPL version 2, GPL version 3, or a commercial license. There are also official bindings from Nokia called [[https://www.pyside.org/|PySide]] available under LGPL. However, !PySide is only available for Qt 4.x.
Line 3: Line 4:
PyQt is Python bindings developed by Riverbank Computing Limited for the Qt cross-platform GUI/XML/SQL C++ framework. Qt itself is developed by 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 distributed under a choice of licences: GPL version 2, GPL version 3, or a commercial license. There are also official bindings from Nokia called [[https://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 [[https://qt-project.org/doc/qt-4.8/|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.

Many of the features are described on the (currently archived) [[https://web.archive.org/web/20121016061536/https://www.diotavelli.net/PyQtWiki/PyQt4|About PyQt4]] page on the !PyQt Wiki.
The latest iteration of PyQt is v5.2. It fully supports Qt 5.2.0 which adds support for !QtBluetooth, !QtPositioning, !QtMacExtras, !QtWinExtras and !QtX11Extras.
Line 11: Line 9:
Line 17: Line 14:
  * 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 https://www.qtrac.eu/pyqtbook.html. Mark recommends, incidentally, '''[[https://www.gui-bloopers.com/|GUI Bloopers]]''', as appropriate supplementary reading for PyQt programmers.   * 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 https://www.qtrac.eu/pyqtbook.html. Mark recommends, incidentally, '''[[https://www.gui-bloopers.com/|GUI Bloopers]]''', as appropriate supplementary reading for PyQt programmers.
Line 19: Line 17:
  * '''The PyQt4 tutorial''' available at https://zetcode.com/tutorials/pyqt4/ is often recommended to new users.   * '''The PyQt4 tutorial''' available at https://zetcode.com/tutorials/pyqt4/ is often recommended to new users.
Line 23: Line 21:
 * 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]]
 * 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 27: Line 26:
Line 33: Line 31:
The https://www.riverbankcomputing.com/mailman/listinfo/pyqt is low in volume and high in quality. The [[https://www.riverbankcomputing.co.uk/software/pyqt/roadmap|Roadmap]] is always valuable to read.
Line 34: Line 33:
The
[[https://www.riverbankcomputing.com/mailman/listinfo/pyqt||mailing list]]
is low in volume and high in quality. The
[[https://www.riverbankcomputing.co.uk/software/pyqt/roadmap|Roadmap]]
is always valuable to read.

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

About PyQt

PyQt is Python bindings developed by Riverbank Computing Limited for the Qt cross-platform GUI/XML/SQL C++ framework. Qt itself is developed by Digia Plc (formerly Nokia and Trolltech). PyQt provides bindings for Qt 4 and Qt 5. PyQt is distributed under a choice of licences: GPL version 2, GPL version 3, or a commercial license. There are also official bindings from Nokia called PySide available under LGPL. However, PySide is only available for Qt 4.x.

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.2. It fully supports Qt 5.2.0 which adds support for QtBluetooth, QtPositioning, QtMacExtras, QtWinExtras and QtX11Extras.

PyQt documentation

Current documentation is available for PyQt4 and PyQt5.

The archived PyQt Wiki contains more actively-updated information and examples:

  • A collection of links to books can be found on the 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 https://www.qtrac.eu/pyqtbook.html. Mark recommends, incidentally, GUI Bloopers, as appropriate supplementary reading for PyQt programmers.

  • A list of tutorials can also be found on the Tutorials page.

On this Wiki, you can find the following tutorials:

PyQt applications

A list of applications that use PyQt as their UI layer can be found on the Some Existing Applications page of the PyQt Wiki. 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.

The https://www.riverbankcomputing.com/mailman/listinfo/pyqt is low in volume and high in quality. The Roadmap is always valuable to read.

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 https://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.

PyQt is available for Windows, UNIX/Linux, Mac OS X and the Sharp Zaurus.


CategoryPyGUI

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

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