Python Bindings for Qt (v2.4)

Phil Thompson

This document describes a set of Python bindings for the Qt widget set. Contact the author at .


Introduction

PyQt is a set of Python bindings for the Qt toolkit. The bindings are implemented as a single Python module qt. They have been tested against Qt versions 1.42 to 2.3.0 and Python versions 1.5 to 2.1.

PyQt also includes the pyuic PyQt code generator used as a backend for the Qt Designer GUI design tool.

Finally, PyQt also includes a debugger called eric.

Changes

The changes visible to the Python programmer in this release are as follows.

  • The following classes have been added: QCustomEvent and QInterlaceStyle.

  • The following missing methods have been added: QFileDialog.getExistingDirectory(), QLineEdit.readOnly() and QLineEdit.setReadOnly().

  • The following missing enums have been added: QFileDialog.DirectoryOnly and QPalette.Inactive.

  • The following Qt v2.3.0 methods have been added: QApplication.type(), QFontDatabase.isFixedPitch() and QToolBar.styleChange().

  • The missing final argument to QMultiLineEdit.insertAt() was added.

  • Failure to keep a Python object used as a slot alive no longer causes a segmentation fault. This requires Python v2.1.