PyQt/Creating_GUI_Applications_with_PyQt_and_Qt_Designer

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Creating GUI Applications with PyQt and Qt Designer

This presentation was given as a scheduled talk at PyCon UK 2007. The material presented covered the following subjects:

  • Generating code from user interface descriptions with pyuic4

  • Connecting signals and slots using auto-connection

  • Creating custom widgets with PyQt4 for use in Qt Designer

Materials

The following materials are available:

Examples

Three examples are provided:

pypi_information.png

The PyPI Information example shows how a graphical user interface created with Qt Designer can be accessed and used in a PyQt4 application.

[ATTACH]( “Upload new attachment “equationviewer.png””)

The Equation Viewer example uses a more realistic user interface, with menus, actions and toolbar buttons, and shows how these elements can be connected to features written in Python.

logomaker.png

The Logo Maker example contains two custom widgets: the color button is described in the slides, but the logo widget itself can also be used from within Qt Designer.