From 8a055d66f43592c257cece2eb8cc021808062917 Mon Sep 17 00:00:00 2001
From: Timothy Pearson This document describes a set of Python bindings for the Qt widget set.
+> This document describes a set of Python bindings for the TQt widget set.
Contact the author at PyQt is a set of Python bindings for the Qt toolkit and available for all
-platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded
+>PyTQt is a set of Python bindings for the TQt toolkit and available for all
+platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
-against Qt versions 1.43 to 3.3.7, Qt Non-commercial, Qtopia 1.5.0, and Python
-versions 1.5 to 2.5. Qt/Embedded v3 is not supported. Qt v4 is supported
-by PyQt v4. PyQt is available under the GPL license for use with the GPL version of Qt, a
-a commercial license for use with the commercial version of Qt, a
-non-commercial license for use with the non-commercial version of Qt v2, and an
-educational license for use with the educational version of Qt. PyQt is built using SIP (a tool for generating Python extension modules for
+>PyTQt is built using SIP (a tool for generating Python extension modules for
C++ class libraries). SIP v4.6 or later must be installed in order to build
-and run this version of PyQt. PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later.<Introduction
The bindings are implemented as a number of Python modules
qtaxcontainer contains a sub-set of the classes implemented -in Qt's QAxContainer module, part of Qt's ActiveQt framework.
qtcanvas contains the classes implemented in Qt's Canvas +> contains the classes implemented in TQt's Canvas module.
qtnetwork contains the classes implemented in Qt's Network +> contains the classes implemented in TQt's Network module.
qtsql contains the classes implemented in Qt's SQL module.
contains the classes implemented in TQt's SQL module.qttable contains the classes implemented in Qt's Table +> contains the classes implemented in TQt's Table module.
qtext contains useful third-party classes that are not part -of Qt. At the moment it contains bindings for QScintilla, the port to Qt of +of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of the Scintilla programmer's editor class.
PyQt also includes the PyTQt also includes the pyuic and pylupdate utilities which correspond to the Qt +> utilities which correspond to the TQt uicpyuic converts the GUI designs created with Qt Designer to +> converts the GUI designs created with TQt Designer to executable Python code. pylupdate scans Python code, extracts all strings that are candidates for internationalisation, and creates -an XML file for use by Qt Linguist.
Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt. -It generates an XML description of a GUI design. Qt includes +>TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt. +It generates an XML description of a GUI design. TQt includes uic which generates C++ code from that XML.
PyQt includes PyTQt includes pyuic which generates Python code from the @@ -236,7 +236,7 @@ custom widgets, pyuic has no way of knowing the name of the -Python module containing the widget and so cannot generate the required +Python module containing the widget and so cannot generate the retquired importComment field of Qt Designer's +> field of TQt Designer's Form Settingspyuic will extract Python code -entered using Qt Designer to implement slots. In Qt Designer, when you need to +entered using TQt Designer to implement slots. In TQt Designer, when you need to edit a slot and the source editor appears, enter Python code between the curly braces. Don't worry about the correct starting indent level, each line is prepended with a correct indentation.
void DebMainWindowFrm::browsePushButtonClicked() { if self.debugging: - QMessageBox.critical(self, "Event", "browse pushbutton was clicked!") + TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!") }class DebMainWindowFrm(QMainWindow): +>class DebMainWindowFrm(TQMainWindow): ...stuff... def browsePushButtonClicked(self): if self.debugging: - QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
Qt includes the TQt includes the lupdate program which parses C++ source @@ -411,7 +411,7 @@ CLASS="LITERAL" > binary language files that are distributed with your application.
Thanks to Detlev Offenbach, PyQt includes the Thanks to Detlev Offenbach, PyTQt includes the pylupdate @@ -419,7 +419,7 @@ program. This generates the same .ts language source files -from your PyQt source files.
When deploying commercial PyQt applications it is necessary to discourage users -from accessing the underlying PyQt modules for themselves. A user that used +>When deploying commercial PyTQt applications it is necessary to discourage users +from accessing the underlying PyTQt modules for themselves. A user that used the modules shipped with your application to develop new applications would -themselves be considered a developer and would need their own commercial Qt and -PyQt licenses.
.sip files for each -of the PyQt modules is installed. A sub-directory exists with the same name as +of the PyTQt modules is installed. A sub-directory exists with the same name as the module.
The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as +>The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as 0x030a00
The PyQt version as a string. For development snapshots it will start with +>The PyTQt version as a string. For development snapshots it will start with snapshot-
super and Wrapped Classes
Internally PyQt implements a lazy technique for attribute lookup where +>Internally PyTQt implements a lazy technique for attribute lookup where attributes are only placed in type and instance dictionaries when they are first referenced. This technique is needed to reduce the time taken to import -large modules such as PyQt.
In most circumstances this technique is transparent to an application. The exception is when super is used with a PyQt class. The way +> is used with a PyTQt class. The way that super
Note that this restriction applies to any class wrapped by SIP and not just -PyQt.
Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode +>Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode support is implemented using the QStringTQString class. It is important to understand that QStringTQStrings, Python string objects and Python Unicode objects are all different but conversions between them are automatic in many cases and easy to achieve manually when needed.
Whenever PyQt expects a Whenever PyTQt expects a QStringTQString as a function argument, a Python string object or a Python Unicode object can be provided instead, and -PyQt will do the necessary conversion automatically.
You may also manually convert Python string and Unicode objects to QStringTQStrings by using the QStringTQString constructor as demonstrated in the following code fragment.
qs1 = QString('Converted Python string object') -qs2 = QString(u'Converted Python Unicode object')qs1 = TQString('Converted Python string object') +qs2 = TQString(u'Converted Python Unicode object') |
In order to convert a QStringTQString to a Python string object use the Python str() to a null QStringTQString and an empty QStringTQString both result in an empty Python string object.
In order to convert a QStringTQString to a Python Unicode object use the Python unicode() to a null QStringTQString and an empty QStringTQString both result in an empty Python Unicode object.
PyQt represents PyTQt represents void * values as objects of type @@ -1416,11 +1416,11 @@ NAME="AEN517" >Support for Threads
PyQt implements the full set of Qt's thread classes. Python, of course, also +>PyTQt implements the full set of TQt's thread classes. Python, of course, also has its own thread extension modules. If you are using SIP v4 (or later) and -Python v2.3.5 (or later) then PyQt does not impose any additional restrictions. -(Read the relevant part of the Qt documentation to understand the restrictions -imposed by the Qt API.)
If you are using earlier versions of either SIP or Python then it is possible to use either of the APIs so long as you follow some simple rules.
If you use the Qt API then the very first If you use the TQt API then the very first import of one of -the PyQt modules must be done from the main thread.
If you use the Python API then all calls to PyQt (including any +>If you use the Python API then all calls to PyTQt (including any imports) must be done from one thread only. Therefore, if -you want to make calls to PyQt from several threads then you must use the Qt +you want to make calls to PyTQt from several threads then you must use the TQt API.
If you want to use both APIs in the same application then all calls to PyQt -must be done from threads created using the Qt API.
If you want to use both APIs in the same application then all calls to PyTQt +must be done from threads created using the TQt API.The above comments actually apply to any SIP generated module, not just PyQt.
The above comments actually apply to any SIP generated module, not just PyTQt.c = new QColor(); -c = new QColor();c = new TQColor(); +c = new TQColor();
c = QColor() -c = QColor()c = TQColor() +c = TQColor()
self.c1 = QColor() -self.c2 = QColor()self.c1 = TQColor() +self.c2 = TQColor()
Sometimes a Qt class instance will maintain a pointer to another instance and +>Sometimes a TQt class instance will maintain a pointer to another instance and will eventually call the destructor of that second instance. The most common example is that a QObjectTQObject (and any of its sub-classes) keeps pointers to its children and will automatically call their destructors. In these cases, the corresponding Python object will also keep a reference to the @@ -1527,7 +1527,7 @@ corresponding child objects.
So, in the following Python fragment, the first QLabelTQLabel is not destroyed when the second is assigned to because the parent QWidgetTQWidget still has a reference to it.
p = QWidget() -l = QLabel('First label',p) -l = QLabel('Second label',p)p = TQWidget() +l = TQLabel('First label',p) +l = TQLabel('Second label',p) |
tab = QTab() +>tab = TQTab() tab.label = "First Tab" -tab.r = QRect(10,10,75,30)
It is not possible to define a new Python class that sub-classes from more than -one Qt class.
Qt implements i18n support through the Qt Linguist application, the +>TQt implements i18n support through the TQt Linguist application, the QTranslatorTQTranslator class, and the QApplication::translate()TQApplication::translate(), QObject::tr()TQObject::tr() and QObject::trUtf8()TQObject::trUtf8() methods. Usually the and uses the hardcoded class name as the context. On the other hand, QApplication::translate()TQApplication::translate() allows to context to be explicitly stated.
Unfortunately, because of the way Qt implents Unfortunately, because of the way TQt implents tr() (and trUtf8()) it is not possible for PyQt to exactly reproduce -its behavour. The PyQt implementation of ) it is not possible for PyTQt to exactly reproduce +its behavour. The PyTQt implementation of tr() (and @@ -1658,7 +1658,7 @@ CLASS="LITERAL" >trUtf8()) uses the class name of the instance as the context. The key difference, and the source of potential problems, is that the -context is determined dynamically in PyQt, but is hardcoded in Qt. In other +context is determined dynamically in PyTQt, but is hardcoded in TQt. In other words, the context of a translation may change depending on an instance's class hierarchy.
class A(QObject): +>class A(TQObject): def __init__(self): - QObject.__init__(self) + TQObject.__init__(self) def hello(self): return self.tr("Hello") @@ -1709,10 +1709,10 @@ CLASS="LITERAL" >A in both cases.
When a slot is a Python method that corresponds to a Qt slot then a signal can -be connected to either the Python method or the Qt slot. The following +>When a slot is a Python method that corresponds to a TQt slot then a signal can +be connected to either the Python method or the TQt slot. The following connections achieve the same effect.
Any instance of a class that is derived from the QObjectTQObject class can emit a signal using the emit method. This takes -two arguments. The first is the Python or Qt signal, the second is a Python +two arguments. The first is the Python or TQt signal, the second is a Python tuple which are the arguments to the signal. For example:
All constant values defined by Qt have equivalent constants defined to Python. All constant values defined by TQt have equivalent constants defined to Python.Qt (Qt v2+)TQt (TQt v2+) QtTQt is fully implemented. QAccelTQAccel QAccelTQAccel is fully implemented. QAction (Qt v2.2+)TQAction (TQt v2.2+) QActionTQAction is fully implemented. QActionGroup (Qt v2.2+)TQActionGroup (TQt v2.2+) QActionGroupTQActionGroup is fully implemented. QApplicationTQApplication QCDEStyle (Qt v2+)TQCDEStyle (TQt v2+)QApplication TQApplication(int &argc, char **argv);This takes one parameter which is a list of argument strings. Arguments -used by Qt are removed from the list.
This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list.
This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list. (Qt v2.2+) QAssistantClient (Qt v3.1+)TQAssistantClient (TQt v3.1+) QAssistantClientTQAssistantClient is fully implemented. QBitmapTQBitmap QBitmapTQBitmap is fully implemented. QBrushTQBrush QBrushTQBrush is fully implemented, including the Python QButtonTQButton QButtonTQButton is fully implemented. QButtonGroupTQButtonGroup QButtonGroupTQButtonGroup is fully implemented. QByteArrayTQByteArray A Python string can be used whenever a QByteArrayTQByteArray can be
used. A QByteArrayTQByteArray can be converted to a Python string
using the Python QByteArray &setRawData TQByteArray &setRawData(const char *data, uintsize);QCDEStyleTQCDEStyle is fully implemented. QCheckBoxTQCheckBox QCheckBoxTQCheckBox is fully implemented. QClipboardTQClipboard Not yet implemented (Qt v1.x). Not yet implemented (TQt v1.x).Not yet implemented (Qt v1.x). Not yet implemented (TQt v1.x).QColorTQColor The Python QColorDialog (Qt v2+)TQColorDialog (TQt v2+) static TQRgb getRgba(TQRgb initial, bool *ok, TQWidget *parent = 0, const char *name = 0); parameters and returns a tuple containing the QRgbTQRgb result and the okQColorGroupTQColorGroup QColorGroupTQColorGroup is fully implemented. QComboBoxTQComboBox QComboBoxTQComboBox is fully implemented. QCommonStyle (Qt v2+)TQCommonStyle (TQt v2+) y values. (Qt v2) values. (TQt v2)
(const TQTabBar *t, int &hframe, int &vframe, int &overlap); overlap values. (Qt v2) values. (TQt v2)QCString (Qt v2+)TQCString (TQt v2+) QCursorTQCursorA Python string can be used whenever a QCStringTQCString can be used.
A QCStringTQCString can be converted to a Python string using the
Python QCursorTQCursor is fully implemented. QDataStreamTQDataStream QDateTQDateQDataStream &readBytes TQDataStream &readBytes(const char *&s, uint &l);This takes no parameters. The QDataStreamTQDataStream result and the data read are returned as a tuple. QDataStream &readRawBytes TQDataStream &readRawBytes(const char *s, uint l);QDataStream &writeBytes TQDataStream &writeBytes(const char *s, uint len);QDataStream &writeRawBytes TQDataStream &writeRawBytes(const char *s, uint len);The Python @@ -3018,7 +3018,7 @@ CLASS="FUNCDEF" > This takes no parameters and returns the week number and the year number as a -tuple. (Qt v3.1+) QDateTimeTQDateTime QDateTimeTQDateTime is fully implemented, including the Python QTimeTQTime QTimeTQTime is fully implemented, including the Python QDateEdit (Qt v3+)TQDateEdit (TQt v3+) QDateEditTQDateEdit is fully implemented. QTimeEdit (Qt v3+)TQTimeEdit (TQt v3+) QTimeEditTQTimeEdit is fully implemented. QDateTimeEdit (Qt v3+)TQDateTimeEdit (TQt v3+) QDateTimeEditTQDateTimeEdit is fully implemented. QDesktopWidget (Qt v3+)TQDesktopWidget (TQt v3+) QDesktopWidgetTQDesktopWidget is fully implemented. QDial (Qt v2.2+)TQDial (TQt v2.2+) QDialTQDial is fully implemented. QDialogTQDialog QObject.deleteLater()TQObject.deleteLater() or other techniques. QDirTQDir QDirTQDir is fully implemented, including the Python QFileInfoListTQFileInfoList This class isn't implemented. Whenever a QFileInfoListTQFileInfoList is the return type of a function or the type of an argument, a Python list of QFileInfoTQFileInfo instances is used instead. QDockArea (Qt v3+)TQDockArea (TQt v3+) bool hasDockWindow const (QDockWindow *w, int *index = 0);(TQDockWindow *w, int *index = 0); w parameter and returns the index of the -QDockWIndow or -1 if the QDockArea does not contain the QDockWindow. QDockWindow (Qt v3+)TQDockWindow (TQt v3+) QDockWindowTQDockWindow is fully implemented. QColorDrag (Qt v2.1+)TQColorDrag (TQt v2.1+) QColorDragTQColorDrag is fully implemented. QDragObjectTQDragObject QDragObjectTQDragObject is fully implemented. QImageDragTQImageDrag QImageDragTQImageDrag is fully implemented. QStoredDragTQStoredDrag QStoredDragTQStoredDrag is fully implemented. QTextDragTQTextDrag QTextDragTQTextDrag is fully implemented. QUriDrag (Qt v2+)TQUriDrag (TQt v2+) QUriDragTQUriDrag is fully implemented. QUrlDrag (Qt v1.x)TQUrlDrag (TQt v1.x) QUrlDragTQUrlDrag is fully implemented. QDropSiteTQDropSite QDropSiteTQDropSite is fully implemented. QErrorMessage (Qt v3+)TQErrorMessage (TQt v3+) QErrorMessageTQErrorMessage is fully implemented. QEventTQEvent QChildEventTQChildEventQEventTQEvent is fully implemented. Instances of QEventTQEvents are automatically converted to the correct sub-class. QChildEventTQChildEvent is fully implemented. QCloseEventTQCloseEvent QCloseEventTQCloseEvent is fully implemented. QIconDragEvent (Qt v3.3+)TQIconDragEvent (TQt v3.3+) QIconDragEventTQIconDragEvent is fully implemented. QContextMenuEvent (Qt v3+)TQContextMenuEvent (TQt v3+) QContextMenuEventTQContextMenuEvent is fully implemented. QCustomEventTQCustomEvent QDragEnterEventTQDragEnterEventQCustomEventTQCustomEvent is fully implemented. Any Python object can be passed as the event data and its reference count is increased. QDragEnterEventTQDragEnterEvent is fully implemented. QDragLeaveEventTQDragLeaveEvent QDragLeaveEventTQDragLeaveEvent is fully implemented. QDragMoveEventTQDragMoveEvent QDragMoveEventTQDragMoveEvent is fully implemented. QDropEventTQDropEvent QDropEventTQDropEvent is fully implemented. QFocusEventTQFocusEvent QFocusEventTQFocusEvent is fully implemented. QHideEventTQHideEvent QHideEventTQHideEvent is fully implemented. QIMComposeEvent (Qt v3.1+)TQIMComposeEvent (TQt v3.1+) QIMComposeEventTQIMComposeEvent is fully implemented. QIMEvent (Qt v3+)TQIMEvent (TQt v3+) QIMEventTQIMEvent is fully implemented. QKeyEventTQKeyEvent QKeyEventTQKeyEvent is fully implemented. QMouseEventTQMouseEvent QMouseEventTQMouseEvent is fully implemented. QMoveEventTQMoveEvent QMoveEventTQMoveEvent is fully implemented. QPaintEventTQPaintEvent QPaintEventTQPaintEvent is fully implemented. QResizeEventTQResizeEvent QResizeEventTQResizeEvent is fully implemented. QShowEventTQShowEvent QShowEventTQShowEvent is fully implemented. QTabletEvent (Qt v3+)TQTabletEvent (TQt v3+) QTabletEventTQTabletEvent is fully implemented. QTimerEventTQTimerEvent QTimerEventTQTimerEvent is fully implemented. QWheelEvent (Qt v2+)TQWheelEvent (TQt v2+) QWheelEventTQWheelEvent is fully implemented. QEventLoop (Qt v3.1+)TQEventLoop (TQt v3.1+) QFileTQFile Not yet implemented. (Qt v2+) Not yet implemented. (TQt v2+)Not yet implemented. (Qt v2+) Not yet implemented. (TQt v2+)QFileDialogTQFileDialog QFileDialogTQFileDialog is fully implemented. QFileIconProviderTQFileIconProvider QFileIconProviderTQFileIconProvider is fully implemented. QFilePreviewTQFilePreview QFilePreviewTQFilePreview is fully implemented. However it cannot be -used from Python in the same way as it is used from C++ because PyQt does not +used from Python in the same way as it is used from C++ because PyTQt does not support multiple inheritance involving more than one wrapped class. A trick that seems to work is to use composition rather than inheritance as in the following code fragment. class FilePreview(QFilePreview): +>class FilePreview(TQFilePreview): pass -class Preview(QLabel): +class Preview(TQLabel): def __init__(self, parent=None): - QLabel.__init__(self, parent) + TQLabel.__init__(self, parent) self.preview = FilePreview() self.preview.previewUrl = self.previewUrl |
Note that QFilePreview cannot be instantiated directly because it is abstract. +>Note that TQFilePreview cannot be instantiated directly because it is abstract. Thanks to Hans-Peter Jansen for this trick.
QFileInfoTQFileInfo is fully implemented.
QFontTQFont is fully implemented, including the Python QFontDatabase (Qt v2.1+)TQFontDatabase (TQt v2.1+)
QFontDatabaseTQFontDatabase is fully implemented.
static QFont getFont
(bool *ok, const QFont &def, QWidget *parent = 0, const char *name = 0);static TQFont getFont(bool *ok, const TQFont &def, TQWidget *parent = 0, const char *name = 0);
parameters and returns a tuple containing the
QFontTQFont result and the okstatic QFont getFont
(bool *ok, QWidget *parent = 0, const char *name = 0);
static TQFont getFont(bool *ok, TQWidget *parent = 0, const char *name = 0);
parameters and returns a tuple containing the QFontTQFont result and the QFontInfoTQFontInfo
QFontInfoTQFontInfo is fully implemented.
QRect boundingRect
(int x, int y, int w, int h, int flags, const QString &str, int len = -1, int tabstops = 0, int *tabarray = 0);TQRect boundingRect(int x, int y, int w, int h, int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);
QSize size
(int flags, const QString &str, int len = -1, int tabstops = 0, int *tabarray = 0);
TQSize size(int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);
QFrameTQFrame
QFrameTQFrame is fully implemented.
QGManagerTQGManager is fully implemented.
QChainTQChain is implemented as an opaque class.
QGridTQGrid is fully implemented.
QGridViewTQGridView is fully implemented.
QGroupBoxTQGroupBox is fully implemented.
QHBoxTQHBox is fully implemented.
QHButtonGroupTQHButtonGroup is fully implemented.
QHeaderTQHeader is fully implemented.
QHGroupBoxTQHGroupBox is fully implemented.
QIconSetTQIconSet is fully implemented.
QIconFactoryTQIconFactory is fully implemented.
QIconViewItem *makeRowLayout
(QIconViewItem *begin, int &y);TQIconViewItem *makeRowLayout(TQIconViewItem *begin, int &y);
QIconViewItem (Qt v2.1+)TQIconViewItem (TQt v2.1+)
QIconViewItemTQIconViewItem is fully implemented.
QIconDragTQIconDrag is fully implemented.
QIconDragItemTQIconDragItem is fully implemented.
The Python QImage
TQImage(const char *xpm[]);
QImage
(uchar *data, int w, int h, int depth, QRgb *colorTable, int numColors, Endian bitOrder);TQImage(uchar *data, int w, int h, int depth, TQRgb *colorTable, int numColors, Endian bitOrder);
The colorTable parameter is a list of QRgb instances or -None. (Qt v2.1+)
parameter is a list of TQRgb instances or +None. (TQt v2.1+)QRgb *colorTable
TQRgb *colorTable();
QImage convertDepthWithPalette
(int, QRgb *p, int pc, int cf = 0);TQImage convertDepthWithPalette(int, TQRgb *p, int pc, int cf = 0);
QImageIOTQImageIO
QImageTextKeyLangTQImageTextKeyLang is fully implemented.
static QString getText
(const QString &caption, const QString &label, const QString &text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);static TQString getText(const TQString &caption, const TQString &label, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of the QStringTQString result and the ok flag. -(Qt v2.1 - v2.3.1)
static QString getText
(const QString &caption, const QString &label, QLineEdit::EchoModeecho, const QString &text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
static TQString getText(const TQString &caption, const TQString &label, TQLineEdit::EchoModeecho, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of the QStringTQString result and the ok flag. -(Qt v2.2 - v2.3.1)
static QString getText
(const QString &caption, const QString &label, QLineEdit::EchoModeecho = QLineEdit::Normal, const QString &text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
static TQString getText(const TQString &caption, const TQString &label, TQLineEdit::EchoModeecho = TQLineEdit::Normal, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of the QStringTQString result and the ok flag. -(Qt v3+)
static int getInteger
(const QString &caption, const QString &label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
(const TQString &caption, const TQString &label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
static double getDouble
(const QString &caption, const QString &label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
(const TQString &caption, const TQString &label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
static QString getItem
(const QString &caption, const QString &label, const QStringList &list, int current = 0, bool editable = TRUE, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
static TQString getItem(const TQString &caption, const TQString &label, const TQStringList &list, int current = 0, bool editable = TRUE, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of the QStringTQString result and the okQInterlaceStyle (Qt v2.3.1+)TQInterlaceStyle (TQt v2.3.1+)
void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
QIODeviceTQIODevice
QIODeviceTQIODevice is fully implemented.
QKeySequenceTQKeySequence is fully implemented including the operators !=, QString()TQString() and int(). A QStringTQString instance or a Python integer may be used whenever a QKeySequenceTQKeySequence can be used.
QLabelTQLabel is fully implemented.
QLayoutTQLayout is fully implemented.
QBoxLayoutTQBoxLayout is fully implemented.
QGLayoutIteratorTQGLayoutIterator is fully implemented.
bool findWidget
(QWidget *w, int *row, int *col);(TQWidget *w, int *row, int *col);
col. (Qt v2+)
. (TQt v2+)QHBoxLayoutTQHBoxLayout is fully implemented.
QLayoutItemTQLayoutItem is fully implemented.
QLayoutItem *next
TQLayoutItem *next();This is a wrapper around the QLayoutIteratorTQLayoutIterator QSpacerItem (Qt v2+)TQSpacerItem (TQt v2+)
QSpacerItemTQSpacerItem is fully implemented.
QVBoxLayoutTQVBoxLayout is fully implemented.
QWidgetItemTQWidgetItem is fully implemented.
QLCDNumberTQLCDNumber is fully implemented.
QLibraryTQLibrary is fully implemented.
int characterAt
(int xpos, QChar *chr);(int xpos, TQChar *chr);
chr value as a tuple. (Qt v3+)
value as a tuple. (TQt v3+)This has been renamed delChar in Python. (Qt v2+)
in Python. (TQt v2+)end values as a tuple. -(Qt v3+)
Types based on the QListTQList template are automatically converted to and from Python lists of the type.
QListBoxItemTQListBoxItem is fully implemented.
QListBoxPixmapTQListBoxPixmap is fully implemented.
QListBoxTextTQListBoxText is fully implemented.
QListViewTQListView is fully implemented.
Note that to remove a child QListViewItemTQListViewItem you must first call QListViewItemTQListViewItem
QListViewItemTQListViewItem is fully implemented.
Note that to remove a child QListViewItemTQListViewItem you must first call QCheckListItemTQCheckListItem
QCheckListItemTQCheckListItem is fully implemented.
QListViewItemIteratorTQListViewItemIterator is fully implemented.
QTextStream &operator<<
(QTextStream &, const QMainWindow &);TQTextStream &operator<<(TQTextStream &, const TQMainWindow &);
This operator is fully implemented. (Qt v3+)
This operator is fully implemented. (TQt v3+)QTextStream &operator>>
(QTextStream &, QMainWindow &);
TQTextStream &operator>>(TQTextStream &, TQMainWindow &);
This operator is fully implemented. (Qt v3+)
This operator is fully implemented. (TQt v3+)bool getLocation
(QToolBar *tb, ToolBarDock &dock, int &index, bool &nl, int &extraOffset);
(TQToolBar *tb, ToolBarDock &dock, int &index, bool &nl, int &extraOffset);
and extraOffset values. (Qt v2.1.0+)
values. (TQt v2.1.0+)QList<QToolBar> toolBars
TQList<TQToolBar> toolBars(ToolBarDock dock);
This returns a list of QToolBar instances. (Qt v2.1.0+)
TQToolBar instances. (TQt v2.1.0+)Types based on the QMemArrayTQMemArray template are automatically converted to and from Python lists of the type.
QMenuBarTQMenuBar is fully implemented.
QMenuItem *findItem
(int id, QMenuData **parent);TQMenuItem *findItem(int id, TQMenuData **parent);
QCustomMenuItem (Qt v2.1+)TQCustomMenuItem (TQt v2.1+)
QCustomMenuItemTQCustomMenuItem is fully implemented.
QMenuItem is an internal Qt class.
TQMenuItem is an internal TQt class.QMessageBoxTQMessageBox is fully implemented.
const QClassInfo *classInfo const
const TQClassInfo *classInfo const(bool super = FALSE);QMetaPropertyTQMetaProperty is fully implemented.
QMimeSourceTQMimeSource is fully implemented.
QMimeSourceFactoryTQMimeSourceFactory is fully implemented.
QWindowsMimeTQWindowsMime is fully implemented.
void scrollBarMetrics
(const QScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
buttonDim values. -(Qt v2)
void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
buttonDim values. -(Qt v2)
void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);
(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
overlap values. (Qt v2)
values. (TQt v2)QMovie
(QDataSource *src, int bufsize = 1024);TQMovie(TQDataSource *src, int bufsize = 1024);
data and not -passed as a parameter. (Qt v2.2.0+)
This has been renamed delChar in Python. (Qt v1.x, Qt v2.x)
in Python. (TQt v1.x, TQt v2.x)col values. (Qt v1.x, Qt v2.x)
values. (TQt v1.x, TQt v2.x)QMutex (Qt v2.2+)TQMutex (TQt v2.2+)
QMutexTQMutex is fully implemented.
QMutexLockerTQMutexLocker is fully implemented.
QNetworkOperationTQNetworkOperation is fully implemented.
QNetworkProtocolTQNetworkProtocol is fully implemented.
QNetworkProtocolFactoryBaseTQNetworkProtocolFactoryBase is fully implemented.
bool disconnect
(const QObject *receiver, const char *member = 0);(const TQObject *receiver, const char *member = 0);
bool disconnect
(const char *signal = 0, const QObject *receiver = 0, const char *member = 0);
(const char *signal = 0, const TQObject *receiver = 0, const char *member = 0);
static bool disconnect
(const QObject *sender, const char *signal, const QObject *receiver, const char *member);
(const TQObject *sender, const char *signal, const TQObject *receiver, const char *member);
At the moment PyQt does not support the full behaviour of the corresponding Qt +>At the moment PyTQt does not support the full behaviour of the corresponding TQt method. In particular, specifying None (ie. 0 in C++) for the QObjectCleanupHandler (Qt v3+)TQObjectCleanupHandler (TQt v3+)
QObjectCleanupHandlerTQObjectCleanupHandler is fully implemented.
This class isn't implemented. Whenever a QObjectListTQObjectList is the return type of a function or the type of an argument, a Python list of QObjectTQObject instances is used instead.
QPaintDeviceMetricsTQPaintDeviceMetrics is fully implemented.
virtual bool cmd
(int, QPainter *, QPDevCmdParam *);(int, TQPainter *, TQPDevCmdParam *);
QPainterTQPainter
QRect boundingRect
TQRect boundingRect(int x, int y, int w, int h, int flags, const char *str, int len = -1, char **intern = 0);QRect boundingRect
(const QRect&, int flags, const char *str, int len = -1, char **intern = 0);TQRect boundingRect(const TQRect&, int flags, const char *str, int len = -1, char **intern = 0);
void drawText
(int x, int y, int w, int h, int flags, const char *str, int len = -1, QRect *br = 0, char **intern = 0);
(int x, int y, int w, int h, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);
void drawText
(const QRect&, int flags, const char *str, int len = -1, QRect *br = 0, char **intern = 0);
(const TQRect&, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);
QPaletteTQPalette
QPaletteTQPalette is fully implemented, including the Python
QPixmapTQPixmapQPixmap
TQPixmap(const char *xpm[]);
QPixmapCacheTQPixmapCache is fully implemented.
Types based on the QPairTQPair template are automatically converted to and from Python tuples of two elements.
QPenTQPen is fully implemented, including the Python
QPictureTQPicture (const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim); buttonDim values.
-(Qt v2) The Python
@@ -6652,7 +6652,7 @@ NAME="AEN2485"
>void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);QCOORD &rx
TQCOORD &rx();QCOORD &ry
TQCOORD &ry();
QPointArray
(int nPoints, const QCOORD *points);TQPointArray(int nPoints, const TQCOORD *points);
bool putPoints
(int index, int nPoints, const QCOORD *points);
(int index, int nPoints, const TQCOORD *points);
bool setPoints
(int nPoints, const QCOORD *points);
(int nPoints, const TQCOORD *points);
QPopupMenuTQPopupMenu
int exec
(const QPoint &pos, int indexAtPoint = 0);(const TQPoint &pos, int indexAtPoint = 0);
QPrintDialog (X11)TQPrintDialog (X11)
QPrintDialogTQPrintDialog is fully implemented.
QPrinterTQPrinter is fully implemented.
QProcessTQProcess is fully implemented.
QProgressBarTQProgressBar is fully implemented.
QProgressDialogTQProgressDialog is fully implemented. value.
Types based on the QPtrListTQPtrList template are automatically converted to and from Python lists of the type.
QPushButtonTQPushButtonQPushButtonTQPushButton is fully implemented.
QRadioButtonTQRadioButton is fully implemented.
QRangeControlTQRangeControl is fully implemented.
The Python
@@ -7036,12 +7036,12 @@ NAME="AEN2649"
>QCOORD &rBottom
TQCOORD &rBottom();
Not implemented. (Qt v2+)
Not implemented. (TQt v2+)QCOORD &rLeft
TQCOORD &rLeft();
Not implemented. (Qt v2+)
Not implemented. (TQt v2+)QCOORD &rRight
TQCOORD &rRight();
Not implemented. (Qt v2+)
Not implemented. (TQt v2+)QCOORD &rTop
TQCOORD &rTop();
Not implemented. (Qt v2+)
Not implemented. (TQt v2+)The Python len value. (Qt v1.x)
value. (TQt v1.x)int match
(const QString &str, int index = 0, int *len = 0);
(const TQString &str, int index = 0, int *len = 0);
len value. (Qt v2+)
value. (TQt v2+)The Python
@@ -7232,7 +7232,7 @@ NAME="AEN2719"
>QArray<QRect> rects
TQArray<TQRect> rects();
void setRects
(QRect *rects, int num);(TQRect *rects, int num);
Not yet implemented. (Qt v2.2+)
Not yet implemented. (TQt v2.2+)QScrollBarTQScrollBar is fully implemented.
y -values. (Qt v2+)
QSemaphoreTQSemaphore is fully implemented. The +=-= operators have also been implemented, but require +> operators have also been implemented, but retquire Python v2.0 or later.
QSemiModalTQSemiModal is fully implemented.
QSessionManagerTQSessionManager is fully implemented.
bool readBoolEntry
(const QString &key, bool def = 0, bool *ok = 0);(const TQString &key, bool def = 0, bool *ok = 0);
double readDoubleEntry
(const QString &key, double def = 0, bool *ok = 0);
(const TQString &key, double def = 0, bool *ok = 0);
QString readEntry
(const QString &key, const QString &def = QString::null, bool *ok = 0);
TQString readEntry(const TQString &key, const TQString &def = TQString::null, bool *ok = 0);
is not passed and the returned value is a tuple of
the QStringTQString result and the okQStringList readListEntry
(const QString &key, bool *ok = 0);
TQStringList readListEntry(const TQString &key, bool *ok = 0);
is not passed and the returned value is a tuple of
the QStringListTQStringList result and the okQStringList readListEntry
(const QString &key, const QChar &separator, bool *ok = 0);
TQStringList readListEntry(const TQString &key, const TQChar &separator, bool *ok = 0);
is not passed and the returned value is a tuple of
the QStringListTQStringList result and the okint readNumEntry
(const QString &key, int def = 0, bool *ok = 0);
(const TQString &key, int def = 0, bool *ok = 0);
bool writeEntry
(const QString &key, bool value);
(const TQString &key, bool value);
QSGIStyle (Qt v2.2+)TQSGIStyle (TQt v2.2+)
void scrollBarMetrics
(const QScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
buttonDim values. -(Qt v2)
QSignalMapperTQSignalMapper is fully implemented.
QSimpleRichTextTQSimpleRichText is fully implemented.
The Python
@@ -7687,7 +7687,7 @@ NAME="AEN2913"
>QCOORD &rheight
TQCOORD &rheight();
QCOORD &rwidth
TQCOORD &rwidth();QSizeGrip (Qt v2+)TQSizeGrip (TQt v2+)QSizeGripTQSizeGrip is fully implemented.
QSizePolicyTQSizePolicy is fully implemented.
QSliderTQSlider is fully implemented.
QSocketNotifierTQSocketNotifier is fully implemented.
QSoundTQSound is fully implemented.
QSplashScreenTQSplashScreen is fully implemented.
QStatusBarTQStatusBar is fully implemented.
A Python string object (or Unicode object) can be used whenever a
QStringTQString can be used. A QStringTQString can be
converted to a Python string object using the Python QCharRef at
TQCharRef at(uint i);
Not yet implemented. (Qt v2+)
Not yet implemented. (TQt v2+)QChar constref const
TQChar constref const(uint i);
Not yet implemented. (Qt v2+)
Not yet implemented. (TQt v2+)QChar &ref
TQChar &ref(uint i);
Not yet implemented. (Qt v2+)
Not yet implemented. (TQt v2+)QString &setUnicodeCodes
TQString &setUnicodeCodes(const ushort *unicode_as_shorts, uint len);
Not yet implemented. (Qt v2.1+)
Not yet implemented. (TQt v2.1+)QString &sprintf
TQString &sprintf(const char *format, ...);
The Python Iterator append
(const QString &x);
(const TQString &x);
Iterator prepend
(const QString &x);
(const TQString &x);
QStrListTQStrList
This class isn't implemented. Whenever a QStrListTQStrList is the return type of a function or the type of an argument, a Python list of strings is used instead.
QStyle (Qt v2+)TQStyle (TQt v2+)virtual void scrollBarMetrics
(const QScrollBar *b, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
(const TQScrollBar *b, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
buttonDim values. -(Qt v2)
virtual void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);
(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
overlap values. (Qt v2)
values. (TQt v2)QStyleOptionTQStyleOption is fully implemented.
QStyleSheetTQStyleSheet is fully implemented.
QStyleSheetItemTQStyleSheetItem is fully implemented.
QSyntaxHighlighterTQSyntaxHighlighter is fully implemented.
QTabTQTab is fully implemented.
QList<QTab> tabList
TQList<TQTab> tabList();This returns a list of QTabTQTab instances.
QTabDialogTQTabDialog is fully implemented.
QTabWidgetTQTabWidget is fully implemented.
QTextBrowserTQTextBrowser is fully implemented.
virtual QCString fromUnicode
(const QString &uc, int &lenInOut);virtual TQCString fromUnicode(const TQString &uc, int &lenInOut);
The returned value is a tuple of the QCStringTQCString result and the updated QTextDecoder (Qt v2+)TQTextDecoder (TQt v2+)
QTextDecoderTQTextDecoder is fully implemented.
virtual QCString fromUnicode = 0
(const QString &uc, int &lenInOut);virtual TQCString fromUnicode = 0(const TQString &uc, int &lenInOut);
The returned value is a tuple of the QCStringTQCString result and the
updated QTextEdit (Qt v3+)TQTextEdit (TQt v3+) (const TQPoint &pos, int *para = 0);int charAt
(const QPoint &pos, int *para = 0);
virtual bool find
(const QString &expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);
(const TQString &expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);
QTextStreamTQTextStream
QTextStream
TQTextStream(FILE *fp, int mode);QTextStream &readRawBytes
TQTextStream &readRawBytes(char *buf, uint len);QTextStream &writeRawBytes
TQTextStream &writeRawBytes(const char *buf, uint len);QTextIStream
TQTextIStream(FILE *fp, int mode);QTextOStream
TQTextOStream(FILE *fp, int mode);QTextViewTQTextView is fully implemented.
QThreadTQThread is fully implemented.
QTimerTQTimer is fully implemented.
QToolBarTQToolBar is fully implemented.
QToolBoxTQToolBox is fully implemented.
QToolButtonTQToolButton is fully implemented.
QToolTipTQToolTip is fully implemented.
QToolTipGroupTQToolTipGroup is fully implemented.
QTranslatorTQTranslator is fully implemented.
QTranslatorMessageTQTranslatorMessage is fully implemented.
QUrlTQUrl is fully implemented, including the QString()TQString(), ==QUrlInfo (Qt v2.1+)TQUrlInfo (TQt v2.1+)
QUrlInfoTQUrlInfo is fully implemented.
QUuidTQUuid is fully implemented.
virtual State validate
(QString& input, int& pos);(TQString& input, int& pos);
QDoubleValidatorTQDoubleValidator
State validate
(QString& input, int& pos);(TQString& input, int& pos);
QIntValidatorTQIntValidator
State validate
(QString& input, int& pos);(TQString& input, int& pos);
QRegExpValidator (Qt v3+)TQRegExpValidator (TQt v3+)
virtual State validate
(QString& input, int& pos);(TQString& input, int& pos);
QValueList<type> (Qt v2+)TQValueList<type> (TQt v2+)
Types based on the QValueListTQValueList template are automatically converted to and from Python lists of the type.
QVariant
TQVariant(const char *val);QVariant
(const QBitArray &val);TQVariant(const TQBitArray &val);
Not yet implemented. (Qt v3+)
Not yet implemented. (TQt v3+)QVariant
(const QValueList<QVariant> &val);
TQVariant(const TQValueList<TQVariant> &val);
QVariant
(const QMap<QString,QVariant> &val);
TQVariant(const TQMap<TQString,TQVariant> &val);
QBitArray &asBitArray
TQBitArray &asBitArray();
Not yet implemented. (Qt v3+)
Not yet implemented. (TQt v3+)QValueList<QVariant> &asList
TQValueList<TQVariant> &asList();
QMap<QString,QVariant> &asMap
TQMap<TQString,TQVariant> &asMap();QValueListConstIterator<QVariant>listBegin const
TQValueListConstIterator<TQVariant>listBegin const();QValueListConstIterator<QVariant>listEnd const
TQValueListConstIterator<TQVariant>listEnd const();QMapConstIterator<QString,QVariant>mapBegin const
TQMapConstIterator<TQString,TQVariant>mapBegin const();QMapConstIterator<QString,QVariant>mapEnd const
TQMapConstIterator<TQString,TQVariant>mapEnd const();QMapConstIterator<QString,QVariant>mapFind const
(const QString &key);TQMapConstIterator<TQString,TQVariant>mapFind const(const TQString &key);
QValueListConstIterator<QString>stringListBegin const
TQValueListConstIterator<TQString>stringListBegin const();
QValueListConstIterator<QString>stringListEnd const
TQValueListConstIterator<TQString>stringListEnd const();const QBitArray toBitArray const
const TQBitArray toBitArray const();Not yet implemented. (Qt v3+)
Not yet implemented. (TQt v3+)const QValueList<QVariant>toList const
const TQValueList<TQVariant>toList const();
const QMap<QString,QVariant>toMap const
const TQMap<TQString,TQVariant>toMap const();QVBox (Qt v2+)TQVBox (TQt v2+)QVBoxTQVBox is fully implemented.
QVButtonGroupTQVButtonGroup is fully implemented.
QVGroupBoxTQVGroupBox is fully implemented.
QWaitConditionTQWaitCondition is fully implemented.
QWhatsThisTQWhatsThis is fully implemented.
QWExtra *extraData
TQWExtra *extraData();QFocusData *focusData
TQFocusData *focusData();This class isn't implemented. Whenever a QWidgetListTQWidgetList is the return type of a function or the type of an argument, a Python list of instances is used instead.
QWidgetStackTQWidgetStackQWidgetStackTQWidgetStack is fully implemented.
QWindow is fully implemented (Qt v1.x).
TQWindow is fully implemented (TQt v1.x).void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
buttonDim values. -(Qt v2)
void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);
(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
overlap values. (Qt v2)
values. (TQt v2)QWindowsXPStyleTQWindowsXPStyle is fully implemented.
QWizardTQWizard is fully implemented.
The Python QWMatrix invert const
TQWMatrix invert const(bool *invertible = 0);
This takes no parameters and returns a tuple of the QWMatrixTQWMatrix result and the ty -values. (Qt v1.x)
ty -values. (Qt v2+)
QWorkspaceTQWorkspace is fully implemented.
QAxObject
TQAxObject(IUnknown *iface = 0);long queryInterface
(const QUuid &uuid, void **iface);(const TQUuid &uuid, void **iface);
unsigned long registerWeakActiveObject
(const QString &guid);
(const TQString &guid);
This is a utility method provided by PyQt to make it easier to use
+>This is a utility method provided by PyTQt to make it easier to use
Mark Hammond's win32com COM function is called to
register the QAxBaseTQAxBase instance as a weak object with the
QAxObject (Windows, Qt v3+)TQAxObject (Windows, TQt v3+) TQAxObject(IUnknown *iface, TQObject *parent = 0, const char *name = 0);QAxObject
(IUnknown *iface, QObject *parent = 0, const char *name = 0);
QAxWidget (Windows, Qt v3+)TQAxWidget (Windows, TQt v3+)
QAxWidget
(IUnknown *iface, QWidget *parent = 0, const char *name = 0);TQAxWidget(IUnknown *iface, TQWidget *parent = 0, const char *name = 0);
QCanvas (Qt v2.2+)TQCanvas (TQt v2.2+)
QCanvasTQCanvas is fully implemented.
QCanvasEllipseTQCanvasEllipse is fully implemented.
QCanvasItemTQCanvasItem is fully implemented.
This class isn't implemented. Whenever a QCanvasItemListTQCanvasItemList is the return type of a function or the type of an argument, a Python list of QCanvasItemTQCanvasItem instances is used instead.
QCanvasLineTQCanvasLine is fully implemented.
QCanvasPixmapTQCanvasPixmap is fully implemented.
QPixmapArray
(QList<QPixmap> pixmaps, QList<QPoint> hotspots);TQPixmapArray(TQList<TQPixmap> pixmaps, TQList<TQPoint> hotspots);
The pixmaps argument is a Python list of QPixmap instances, +> argument is a Python list of TQPixmap instances, and the hotspots argument is a Python list of QPoint -instances. (Qt v2.2.0 - Qt v2.3.1)
argument is a Python list of TQPoint +instances. (TQt v2.2.0 - TQt v2.3.1)QPixmapArray
(QValueList<QPixmap> pixmaps, QPointArray hotspots = QPointArray());
TQPixmapArray(TQValueList<TQPixmap> pixmaps, TQPointArray hotspots = TQPointArray());
The pixmaps argument is a Python list of QPixmap instances. -(Qt v3+)
argument is a Python list of TQPixmap instances. +(TQt v3+)QCanvasPolygonTQCanvasPolygon is fully implemented.
QCanvasPolygonalItemTQCanvasPolygonalItem is fully implemented.
QCanvasRectangleTQCanvasRectangle is fully implemented.
QCanvasSplineTQCanvasSpline is fully implemented.
QCanvasSpriteTQCanvasSprite is fully implemented.
QCanvasTextTQCanvasText is fully implemented.
QCanvasViewTQCanvasView is fully implemented.
QextScintillaLexerBatch (QScintilla v1.6+)QextScintillaLexerBatch (TQScintilla v1.6+)
QextScintillaLexerCSS (QScintilla v1.6+)QextScintillaLexerCSS (TQScintilla v1.6+)
QextScintillaLexerDiff (QScintilla v1.6+)QextScintillaLexerDiff (TQScintilla v1.6+)
QextScintillaLexerHTML (QScintilla v1.1+)QextScintillaLexerHTML (TQScintilla v1.1+)
QextScintillaLexerLua (QScintilla v1.5+)QextScintillaLexerLua (TQScintilla v1.5+)
QextScintillaLexerMakefile (QScintilla v1.6+)QextScintillaLexerMakefile (TQScintilla v1.6+)
QextScintillaLexerPOV (QScintilla v1.6+)QextScintillaLexerPOV (TQScintilla v1.6+)
QextScintillaLexerProperties (QScintilla v1.6+)QextScintillaLexerProperties (TQScintilla v1.6+)
QextScintillaLexerRuby (QScintilla v1.5+)QextScintillaLexerRuby (TQScintilla v1.5+)
QextScintillaLexerSQL (QScintilla v1.1+)QextScintillaLexerSQL (TQScintilla v1.1+)
QextScintillaLexerTeX (QScintilla v1.6+)QextScintillaLexerTeX (TQScintilla v1.6+)
QGLTQGL
QGLTQGL is fully implemented.
QGLContextTQGLContext is fully implemented.
QGLFormatTQGLFormat is fully implemented.
QGLWidgetTQGLWidget is fully implemented.
void setEntries
(int count, const QRgb *colors, int base = 0);(int count, const TQRgb *colors, int base = 0);
QDns (Qt v2.2+)TQDns (TQt v2.2+)
QDnsTQDns is fully implemented.
QHostAddress
TQHostAddress(Q_UINT8 *ip6Addr);QHostAddress
TQHostAddress(const Q_IPV6ADDR &ip6Addr);QHttpHeaderTQHttpHeader is fully implemented.
QHttpRequestHeaderTQHttpRequestHeader is fully implemented.
QHttpResponseHeaderTQHttpResponseHeader is fully implemented.
QLocalFsTQLocalFs is fully implemented.
QServerSocketTQServerSocket is fully implemented.
QApplication
TQApplication(int& argc, char **argv, Type type);This takes two parameters, the first of which is a list of argument strings. -Arguments used by Qt are removed from the list.
virtual QString exec const
virtual TQString exec const();
QString exec const
TQString exec const();QCopEnvelopeTQCopEnvelope is fully implemented.
QDawgTQDawg is fully implemented.
QPEMenuBarTQPEMenuBar is fully implemented.
QPEToolBarTQPEToolBar is fully implemented.
QDataTableTQDataTable is fully implemented.
QDataViewTQDataView is fully implemented.
QEditorFactoryTQEditorFactory is fully implemented.
QSqlTQSql is fully implemented.
virtual int del
(const QString &filter, bool invalidate = TRUE);(const TQString &filter, bool invalidate = TRUE);
bool exec
(const QString &query);
(const TQString &query);
QSqlDatabase (Qt v3+)TQSqlDatabase (TQt v3+)
QSqlQuery exec
(const QString &query = QString::null);TQSqlQuery exec(const TQString &query = TQString::null);
QSqlDriver (Qt v3+)TQSqlDriver (TQt v3+)
QSqlDriverTQSqlDriver is fully implemented.
QSqlEditorFactoryTQSqlEditorFactory is fully implemented.
QSqlErrorTQSqlError is fully implemented.
QSqlFieldTQSqlField is fully implemented.
QSqlFieldInfoTQSqlFieldInfo is fully implemented.
QSqlFormTQSqlForm is fully implemented.
QSqlIndexTQSqlIndex is fully implemented.
QSqlPropertyMap is fully implemented. However, because PyQt +>TQSqlPropertyMap is fully implemented. However, because PyTQt does not allow new properties to be defined, it is not possible to implement custom editor widgets in Python and add them to a property map. This will simple be ignored.
This problem may be addressed in a future release of PyQt.
This problem may be addressed in a future release of PyTQt.QMap<QString,QVariant> boundValues const
TQMap<TQString,TQVariant> boundValues const();Not yet implemented. (Qt v3.2.0+)
Not yet implemented. (TQt v3.2.0+)virtual bool exec
(const QString &query);
(const TQString &query);
This has been renamed execQuery in Python. (Qt v3.1+)
in Python. (TQt v3.1+)QSqlRecordTQSqlRecord is fully implemented.
QSqlRecordInfoTQSqlRecordInfo is implemented as a Python list of QSqlFieldInfoTQSqlFieldInfo instances.
QSqlResultTQSqlResult is fully implemented.
bool exec
(const QString &query);(const TQString &query);
QTable (Qt v2.2+)TQTable (TQt v2.2+)
QTableTQTable is fully implemented.
QTableItemTQTableItem is fully implemented.
QCheckTableItemTQCheckTableItem is fully implemented.
QComboTableItemTQComboTableItem is fully implemented.
QTableSelectionTQTableSelection is fully implemented.
QWidgetFactoryTQWidgetFactory is fully implemented.
QDomImplementationTQDomImplementation is fully implemented.
QDomNodeTQDomNode is fully implemented, including the Python QDomNodeList (Qt v2.2+)TQDomNodeList (TQt v2.2+)
QDomNodeListTQDomNodeList is fully implemented.
bool setContent
(const QCString &buffer, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);(const TQCString &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QByteArray &buffer, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQByteArray &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QString &text, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQString &text, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QIODevice *dev, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQIODevice *dev, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QCString &buffer, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQCString &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QByteArray &buffer, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQByteArray &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QString &text, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQString &text, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(const QIODevice *dev, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQIODevice *dev, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
errorColumn values. (Qt v3+)
values. (TQt v3+)bool setContent
(QXmlInputSource *source, QXmlReader *reader, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(TQXmlInputSource *source, TQXmlReader *reader, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
Not yet implemented. (Qt v3.2.0+)
Not yet implemented. (TQt v3.2.0+)QDomDocumentFragmentTQDomDocumentFragment is fully implemented.
QDomDocumentTypeTQDomDocumentType is fully implemented.
QDomNamedNodeMapTQDomNamedNodeMap is fully implemented.
QDomCharacterDataTQDomCharacterData is fully implemented.
QDomAttrTQDomAttr is fully implemented.
QDomElementTQDomElement is fully implemented.
QDomTextTQDomText is fully implemented.
QDomCommentTQDomComment is fully implemented.
QDomCDATASectionTQDomCDATASection is fully implemented.
QDomNotationTQDomNotation is fully implemented.
QDomEntityTQDomEntity is fully implemented.
QDomEntityReferenceTQDomEntityReference is fully implemented.
QDomProcessingInstructionTQDomProcessingInstruction is fully implemented.