<HTML ><HEAD ><TITLE >Python Bindings for Qt (3.5)</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.61 "><LINK REL="NEXT" TITLE="Other PyQt Goodies" HREF="x112.html"></HEAD ><BODY CLASS="ARTICLE" ><DIV CLASS="ARTICLE" ><DIV CLASS="TITLEPAGE" ><H1 CLASS="TITLE" ><A NAME="AEN2" >Python Bindings for Qt (3.5)</A ></H1 ><H3 CLASS="AUTHOR" ><A NAME="AEN4" >Phil Thompson</A ></H3 ><DIV ><DIV CLASS="ABSTRACT" ><A NAME="AEN7" ></A ><P ></P ><P > This document describes a set of Python bindings for the Qt widget set. Contact the author at <TT CLASS="EMAIL" ><<A HREF="mailto:phil@riverbankcomputing.co.uk" >phil@riverbankcomputing.co.uk</A >></TT >. </P ><P ></P ></DIV ></DIV ><HR></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN10" >Introduction</A ></H1 ><P >PyQt is a set of Python bindings for the Qt toolkit and available for all platforms supported by Qt, including Windows, Linux, UNIX and embedded systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested against Qt versions 1.43 to 3.1.1, Qt Non-commercial, Qtopia 1.5.0, and Python versions 1.5 to 2.2.2.</P ><P >PyQt is available under the GPL license for use with the GPL version of Qt, and a commercial license for use with the commercial version of Qt.</P ><P >The bindings are implemented as a number of Python modules</P ><P ></P ><UL ><LI ><P ><TT CLASS="LITERAL" >qt</TT > is the main module and contains the core classes and most user interface widgets.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtcanvas</TT > contains the classes implemented in Qt's Canvas module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtgl</TT > contains the classes implemented in Qt's OpenGL module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtnetwork</TT > contains the classes implemented in Qt's Network module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtpe</TT > contains the classes implemented in Qtopia (originally called the Qt Palmtop Environment). It is only supported with Qt/Embedded.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtsql</TT > contains the classes implemented in Qt's SQL module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qttable</TT > contains the classes implemented in Qt's Table module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtxml</TT > contains the classes implemented in Qt's XML module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" >qtext</TT > contains useful third-party classes that are not part of Qt. At the moment it contains bindings for QScintilla, the port to Qt of the Scintilla programmer's editor class.</P ></LI ></UL ><P >PyQt also includes the <TT CLASS="LITERAL" >pyuic</TT > and <TT CLASS="LITERAL" >pylupdate</TT > utilities which correspond to the Qt <TT CLASS="LITERAL" >uic</TT > and <TT CLASS="LITERAL" >lupdate</TT > utilities. <TT CLASS="LITERAL" >pyuic</TT > converts the GUI designs created with Qt Designer to executable Python code. <TT CLASS="LITERAL" >pylupdate</TT > scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by Qt Linguist.</P ><DIV CLASS="SECT2" ><H2 CLASS="SECT2" ><A NAME="AEN50" >Changes</A ></H2 ><P >The changes visible to the Python programmer in this release are as follows.</P ><P ></P ><UL ><LI ><P >SIP 3.5 is required. Starting with SIP 3.1 the run-time support library is implemented as a Python module and so is installed in a different place to earlier versions. You should manually remove any versions of the SIP run-time support library and header files earlier than 3.1.</P ></LI ><LI ><P >eric is not longer packaged with PyQt and is available separately.</P ></LI ><LI ><P >The <TT CLASS="LITERAL" >qtext</TT > module has been added including the <TT CLASS="LITERAL" >QextScintilla</TT >, <TT CLASS="LITERAL" >QextScintillaBase</TT >, <TT CLASS="LITERAL" >QextScintillaLexer</TT >, <TT CLASS="LITERAL" >QextScintillaLexerCPP</TT >, <TT CLASS="LITERAL" >QextScintillaLexerCSharp</TT >, <TT CLASS="LITERAL" >QextScintillaLexerIDL</TT >, <TT CLASS="LITERAL" >QextScintillaLexerJava</TT >, <TT CLASS="LITERAL" >QextScintillaLexerJavascript</TT > and <TT CLASS="LITERAL" >QextScintillaLexerPython</TT > classes.</P ></LI ><LI ><P >The Qt v3.1.x classes <TT CLASS="LITERAL" >QAssistantClient</TT >, <TT CLASS="LITERAL" >QEventLoop</TT >, <TT CLASS="LITERAL" >QIconFactory</TT >, <TT CLASS="LITERAL" >QIMComposeEvent</TT >, <TT CLASS="LITERAL" >QMutexLocker</TT > and <TT CLASS="LITERAL" >QSyntaxHighlighter</TT > have been added.</P ></LI ><LI ><P >The Qt v3.1.x functions <TT CLASS="LITERAL" >qCompress()</TT > and <TT CLASS="LITERAL" >qUncompress()</TT > have been added.</P ></LI ><LI ><P >The missing <TT CLASS="LITERAL" >QGLColorMap</TT > class was added.</P ></LI ><LI ><P >The missing <TT CLASS="LITERAL" >QDockWindow.drawFrame()</TT >, <TT CLASS="LITERAL" >QGLWidget.reparent()</TT > and <TT CLASS="LITERAL" >QMainWindow.lineUpDockWindows()</TT > methods were added.</P ></LI ><LI ><P >The existing classes in the <TT CLASS="LITERAL" >qtpe</TT > module have been updated to Qtopia v1.5.0.</P ></LI ><LI ><P >The Qtopia v1.5.0 classes <TT CLASS="LITERAL" >AppLnk</TT >, <TT CLASS="LITERAL" >AppLnkSet</TT >, <TT CLASS="LITERAL" >Config</TT >, <TT CLASS="LITERAL" >DateFormat</TT >, <TT CLASS="LITERAL" >DocLnk</TT >, <TT CLASS="LITERAL" >DocLnkSet</TT >, <TT CLASS="LITERAL" >FileManager</TT >, <TT CLASS="LITERAL" >FileSelector</TT >, <TT CLASS="LITERAL" >FileSelectorItem</TT >, <TT CLASS="LITERAL" >FontDatabase</TT >, <TT CLASS="LITERAL" >Global</TT >, <TT CLASS="LITERAL" >MenuButton</TT >, <TT CLASS="LITERAL" >QDawg</TT >, <TT CLASS="LITERAL" >QList<AppLnk></TT >, <TT CLASS="LITERAL" >QList<DocLnk></TT > and <TT CLASS="LITERAL" >Resource</TT > have been added to the <TT CLASS="LITERAL" >qtpe</TT > module.</P ></LI ></UL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" > </TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x112.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" > </TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Other PyQt Goodies</TD ></TR ></TABLE ></DIV ></BODY ></HTML >