Python Bindings for Qt (3.17.2)

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 and available for all platforms supported by Qt, 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 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.

The bindings are implemented as a number of Python modules

PyQt also includes the pyuic and pylupdate utilities which correspond to the Qt uic and lupdate utilities. pyuic converts the GUI designs created with Qt 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.


Other PyQt Goodies

Using Qt Designer

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 uic which generates C++ code from that XML.

PyQt includes pyuic which generates Python code from the same XML. The Python code is self contained and can be executed immediately.

It is sometimes useful to be able to include some specific Python code in the output generated by pyuic. For example, if you are using custom widgets, pyuic has no way of knowing the name of the Python module containing the widget and so cannot generate the required import statement. To help get around this, pyuic will extract any lines entered in the Comment field of Qt Designer's Form Settings dialog that begin with Python: and copies them to the generated output.

Here's a simple example showing the contents of the Comment field.

This comment will be ignored by pyuic.
Python:
Python:# Import our custom widget.
Python:from foo import bar

Here's the corresponding output from pyuic.

from qt import *

# Import our custom widget.
from foo import bar

Thanks to Christian Bird, pyuic will extract Python code entered using Qt Designer to implement slots. In Qt 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.

Make sure that the ui.h file is in the same directory as the .ui file when using pyuic. The .ui file implies the name of the .ui.h file so there is no need to specify it on the command line.

Here's an example of a simple slot.

void DebMainWindowFrm::browsePushButtonClicked()
{
if self.debugging:
    TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
}

Here is the resulting code when pyuic is run.

class DebMainWindowFrm(TQMainWindow):
    ...stuff...
    def browsePushButtonClicked(self):
        if self.debugging:
            TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")

Note that indenting is as normal and that self and all other parameters passed to the slot are available.

If you use this, you will need to turn off all of the fancy options for the C++ editor in Designer as it tries to force C++ syntax and that's naturally annoying when trying to code in Python.


Using Qt Linguist

Qt includes the lupdate program which parses C++ source files converting calls to the QT_TR_NOOP() and QT_TRANSLATE_NOOP() macros to .ts language source files. The lrelease program is then used to generate .qm binary language files that are distributed with your application.

Thanks to Detlev Offenbach, PyQt includes the pylupdate program. This generates the same .ts language source files from your PyQt source files.


Deploying Commercial PyQt Applications

When deploying commercial PyQt applications it is necessary to discourage users from accessing the underlying PyQt 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.

One solution to this problem is the VendorID package. This allows you to build Python extension modules that can only be imported by a digitally signed custom interpreter. The package enables you to create such an interpreter with your application embedded within it. The result is an interpreter that can only run your application, and PyQt modules that can only be imported by that interpreter. You can use the package to similarly restrict access to any extension module.

In order to build PyQt with support for the VendorID package, pass the -i command line flag to configure.py.


pyqtconfig and Build System Support

The SIP build system (ie. the sipconfig module) is described in the SIP documentation. PyQt includes the pyqtconfig module that can be used by configuration scripts of other bindings that are built on top of PyQt.

The pyqtconfig module contains the following classes:

Configuration(sipconfig.Configuration)

This class encapsulates additional configuration values, specific to PyQt, that can be accessed as instance variables.

The following configuration values are provided (in addition to those provided by the sipconfig.Configuration class):

pyqt_bin_dir

The name of the directory containing the pyuic and pylupdate executables.

pyqt_mod_dir

The name of the directory containing the PyQt modules.

pyqt_modules

A string containing the names of the PyQt modules that were installed.

pyqt_qt_sip_flags

A string of the SIP flags used to generate the code for the qt module and which should be added to those needed by any module that imports the qt module.

pyqt_qtaxcontainer_sip_flags

A string of the SIP flags used to generate the code for the qtaxcontainer module and which should be added to those needed by any module that imports the qtaxcontainer module.

pyqt_qtcanvas_sip_flags

A string of the SIP flags used to generate the code for the qtcanvas module and which should be added to those needed by any module that imports the qtcanvas module.

pyqt_qtext_sip_flags

A string of the SIP flags used to generate the code for the qtext module and which should be added to those needed by any module that imports the qtext module.

pyqt_qtgl_sip_flags

A string of the SIP flags used to generate the code for the qtgl module and which should be added to those needed by any module that imports the qtgl module.

pyqt_qtnetwork_sip_flags

A string of the SIP flags used to generate the code for the qtnetwork module and which should be added to those needed by any module that imports the qtnetwork module.

pyqt_qtsql_sip_flags

A string of the SIP flags used to generate the code for the qtsql module and which should be added to those needed by any module that imports the qtsql module.

pyqt_qttable_sip_flags

A string of the SIP flags used to generate the code for the qttable module and which should be added to those needed by any module that imports the qttable module.

pyqt_qtui_sip_flags

A string of the SIP flags used to generate the code for the qtui module and which should be added to those needed by any module that imports the qtui module.

pyqt_qtxml_sip_flags

A string of the SIP flags used to generate the code for the qtxml module and which should be added to those needed by any module that imports the qtxml module.

pyqt_sip_dir

The name of the base directory where the .sip files for each of the PyQt modules is installed. A sub-directory exists with the same name as the module.

pyqt_version

The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as 0x030a00).

pyqt_version_str

The PyQt version as a string. For development snapshots it will start with snapshot-.

QtModuleMakefile(sipconfig.SIPModuleMakefile)

The Makefile class for modules that import the qt module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtAxContainerModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtaxcontainer module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtCanvasModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtcanvas module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtExtModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtext module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtGLModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtgl module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtNetworkModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtnetwork module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtTableModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qttable module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtSQLModuleMakefile(QtTableModuleMakefile)

The Makefile class for modules that import the qtsql module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtUIModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtui module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().

QtXMLModuleMakefile(QtModuleMakefile)

The Makefile class for modules that import the qtxml module.

finalise(self)

This is a reimplementation of sipconfig.Makefile.finalise().


Things to be Aware Of

super and Wrapped Classes

Internally PyQt 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 that super is currently implemented means that the lazy lookup is bypassed resulting in AttributeError exceptions unless the attribute has been previously referenced.

Note that this restriction applies to any class wrapped by SIP and not just PyQt.


Python Strings, Qt Strings and Unicode

Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode support is implemented using the TQString class. It is important to understand that TQStrings, 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 TQString 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 TQStrings by using the TQString constructor as demonstrated in the following code fragment.

qs1 = TQString('Converted Python string object')
qs2 = TQString(u'Converted Python Unicode object')

In order to convert a TQString to a Python string object use the Python str() function. Applying str() to a null TQString and an empty TQString both result in an empty Python string object.

In order to convert a TQString to a Python Unicode object use the Python unicode() function. Applying unicode() to a null TQString and an empty TQString both result in an empty Python Unicode object.


Access to Protected Member Functions

When an instance of a C++ class is not created from Python it is not possible to access the protected member functions, or emit the signals, of that instance. Attempts to do so will raise a Python exception. Also, any Python methods corresponding to the instance's virtual member functions will never be called.


None and NULL

Throughout the bindings, the None value can be specified wherever NULL is acceptable to the underlying C++ code.

Equally, NULL is converted to None whenever it is returned by the underlying C++ code.


Support for C++ void * Data Types

PyQt represents void * values as objects of type sip.voidptr. Such values are often used to pass the addresses of external objects between different Python modules. To make this easier, a Python integer (or anything that Python can convert to an integer) can be used whenever a sip.voidptr is expected.

A sip.voidptr may be converted to a Python integer by using the int() builtin function.

A sip.voidptr may be converted to a Python string by using its asstring() method. The asstring() method takes an integer argument which is the length of the data in bytes.


Support for Threads

PyQt implements the full set of Qt'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 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 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 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.

The above comments actually apply to any SIP generated module, not just PyQt.


Garbage Collection

C++ does not garbage collect unreferenced class instances, whereas Python does. In the following C++ fragment both colours exist even though the first can no longer be referenced from within the program:

c = new TQColor();
c = new TQColor();

In the corresponding Python fragment, the first colour is destroyed when the second is assigned to c:

c = TQColor()
c = TQColor()

In Python, each colour must be assigned to different names. Typically this is done within class definitions, so the code fragment would be something like:

self.c1 = TQColor()
self.c2 = TQColor()

Sometimes a Qt 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 TQObject (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 corresponding child objects.

So, in the following Python fragment, the first TQLabel is not destroyed when the second is assigned to l because the parent TQWidget still has a reference to it.

p = TQWidget()
l = TQLabel('First label',p)
l = TQLabel('Second label',p)

C++ Variables

Access to C++ variables is supported. They are accessed as Python instance variables. For example:

tab = TQTab()
tab.label = "First Tab"
tab.r = TQRect(10,10,75,30)

Global variables and static class variables are effectively read-only. They can be assigned to, but the underlying C++ variable will not be changed. This may change in the future.

Access to protected C++ class variables is not supported. This may change in the future.


Multiple Inheritance

It is not possible to define a new Python class that sub-classes from more than one Qt class.


i18n Support

Qt implements i18n support through the Qt Linguist application, the QTranslator class, and the TQApplication::translate(), TQObject::tr() and TQObject::trUtf8() methods. Usually the tr() method is used to obtain the correct translation of a message. The translation process uses a message context to allow the same message to be translated differently. tr() is actually generated by moc and uses the hardcoded class name as the context. On the other hand, TQApplication::translate() allows to context to be explicitly stated.

Unfortunately, because of the way Qt implents tr() (and trUtf8()) it is not possible for PyQt to exactly reproduce its behavour. The PyQt implementation of tr() (and 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 words, the context of a translation may change depending on an instance's class hierarchy.

class A(TQObject):
    def __init__(self):
        TQObject.__init__(self)

    def hello(self):
        return self.tr("Hello")

class B(A):
    def __init__(self):
        A.__init__(self)

a = A()
a.hello()

b = B()
b.hello()

In the above the message is translated by a.hello() using a context of A, and by b.hello() using a context of B. In the equivalent C++ version the context would be A in both cases.

The PyQt behaviour is unsatisfactory and may be changed in the future. It is recommended that TQApplication.translate() be used in preference to tr() (and trUtf8()). This is guaranteed to work with current and future versions of PyQt and makes it much easier to share message files between Python and C++ code. Below is the alternative implementation of A that uses TQApplication.translate().

class A(TQObject):
    def __init__(self):
        TQObject.__init__(self)

    def hello(self):
        return qApp.translate("A","Hello")

Note that the code generated by pyuic uses TQApplication.translate().


Signal and Slot Support

A signal may be either a Qt signal (specified using TQT_SIGNAL()) or a Python signal (specified using PYQT_SIGNAL()).

A slot can be either a Python callable object, a Qt signal (specified using TQT_SIGNAL()), a Python signal (specified using PYQT_SIGNAL()), or a Qt slot (specified using TQT_SLOT()).

You connect signals to slots (and other signals) as you would from C++. For example:

TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyFunction)
TQObject.connect(a,TQT_SIGNAL("QtSig()"),pyClass.pyMethod)
TQObject.connect(a,TQT_SIGNAL("QtSig()"),PYQT_SIGNAL("PySig"))
TQObject.connect(a,TQT_SIGNAL("QtSig()"),TQT_SLOT("QtSlot()"))
TQObject.connect(a,PYQT_SIGNAL("PySig"),pyFunction)
TQObject.connect(a,PYQT_SIGNAL("PySig"),pyClass.pyMethod)
TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_SIGNAL("QtSig()"))
TQObject.connect(a,PYQT_SIGNAL("PySig"),TQT_SLOT("QtSlot()"))

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 connections achieve the same effect.

sbar = TQScrollBar()
lcd = TQLCDNumber()

TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd.display)
TQObject.connect(sbar,TQT_SIGNAL("valueChanged(int)"),lcd,TQT_SLOT("display(int)"))

The difference is that the second connection is made at the C++ level and is more efficient.

Disconnecting signals works in exactly the same way.

Any instance of a class that is derived from the TQObject 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 tuple which are the arguments to the signal. For example:

a.emit(TQT_SIGNAL("clicked()"),())
a.emit(PYQT_SIGNAL("pySig"),("Hello","World"))

Note that when a slot is a Python callable object its reference count is not increased. This means that a class instance can be deleted without having to explicitly disconnect any signals connected to its methods. However, it also means that using lambda expressions as slots will not work unless you keep a separate reference to the expression to prevent it from being immediately garbage collected.

Qt allows a signal to be connected to a slot that requires fewer arguments than the signal passes. The extra arguments are quietly discarded. Python slots can be used in the same way.


Static Member Functions

Static member functions are implemented as Python class functions. For example the C++ static member function TQObject::connect() is called from Python as TQObject.connect() or self.connect() if called from a sub-class of TQObject.


Enumerated Types

Enumerated types are implemented as a set of simple variables corresponding to the separate enumerated values.

When using an enumerated value the name of the class (or a sub-class) in which the enumerated type was defined in must be included. For example:

Qt.SolidPattern
TQWidget.TabFocus
TQFrame.TabFocus

Module Reference Documentation

The following sections should be used in conjunction with the normal class documentation - only the differences specific to the Python bindings are documented here.

In these sections, Not yet implemented implies that the feature can be easily implemented if needed. Not implemented implies that the feature will not be implemented, either because it cannot be or because it is not appropriate.

If a class is described as being fully implemented then all non-private member functions and all public class variables have been implemented.

If an operator has been implemented then it is stated explicitly.

Classes that are not mentioned have not yet been implemented.


qt Module Reference

Qt Constants

All constant values defined by Qt have equivalent constants defined to Python.


Qt (Qt v2+)

Qt is fully implemented.


TQAccel

TQAccel is fully implemented.


TQAction (Qt v2.2+)

TQAction is fully implemented.


TQActionGroup (Qt v2.2+)

TQActionGroup is fully implemented.


TQApplication

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.

TQApplication(int &argc, char **argv, bool GUIenabled);

This takes two parameters, the first of which is a list of argument strings. Arguments used by Qt are removed from the list.

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. (Qt v2.2+)

int exec();

This has been renamed to exec_loop in Python.


QAssistantClient (Qt v3.1+)

QAssistantClient is fully implemented.


TQBitmap

TQBitmap is fully implemented.


TQBrush

TQBrush is fully implemented, including the Python == and != operators.


TQButton

TQButton is fully implemented.


TQButtonGroup

TQButtonGroup is fully implemented.


TQByteArray

A Python string can be used whenever a TQByteArray can be used. A TQByteArray can be converted to a Python string using the Python str() function.

TQByteArray &assign(const char *data, uint size);

Not implemented.

char &at(uint i);

Not yet implemented.

int contains(const char &d);

Not yet implemented.

bool fill(const char &d, int size = -1);

Not yet implemented.

int find(const char &d, uint i = 0);

Not yet implemented.

void resetRawData(const char *data, uintsize);

Not implemented.

TQByteArray &setRawData(const char *data, uintsize);

Not implemented.


TQCDEStyle (Qt v2+)

TQCDEStyle is fully implemented.


TQCheckBox

TQCheckBox is fully implemented.


QClipboard

void *data const(const char *format);

Not yet implemented (Qt v1.x).

void setData(const char *format, void *);

Not yet implemented (Qt v1.x).


TQColor

The Python == and != operators are supported.

void getHsv(int *h, int *s, int *v);

This takes no parameters and returns the h, s and v values as a tuple.

void getRgb(int *r, int *g, int *b);

This takes no parameters and returns the r, g and b values as a tuple.

void hsv(int *h, int *s, int *v);

This takes no parameters and returns the h, s and v values as a tuple.

void rgb(int *r, int *g, int *b);

This takes no parameters and returns the r, g and b values as a tuple.


QColorDialog (Qt v2+)

static QRgb getRgba(QRgb initial, bool *ok, TQWidget *parent = 0, const char *name = 0);

This takes the initial, parent and name parameters and returns a tuple containing the QRgb result and the ok value.


TQColorGroup

TQColorGroup is fully implemented.


TQComboBox

TQComboBox is fully implemented.


TQCommonStyle (Qt v2+)

virtual void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and y values. (Qt v2)

virtual void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the hframe, vframe and overlap values. (Qt v2)


TQCString (Qt v2+)

A Python string can be used whenever a TQCString can be used. A TQCString can be converted to a Python string using the Python str() function.

TQCString &sprintf(const char *format, ...);

Not implemented.

short toShort(bool *ok = 0);

This returns a tuple of the short result and the ok value.

ushort toUShort(bool *ok = 0);

This returns a tuple of the ushort result and the ok value.

int toInt(bool *ok = 0);

This returns a tuple of the int result and the ok value.

uint toUInt(bool *ok = 0);

This returns a tuple of the uint result and the ok value.

long toLong(bool *ok = 0);

This returns a tuple of the long result and the ok value.

ulong toULong(bool *ok = 0);

This returns a tuple of the ulong result and the ok value.

float toFloat(bool *ok = 0);

This returns a tuple of the float result and the ok value.

double toDouble(bool *ok = 0);

This returns a tuple of the double result and the ok value.


TQCursor

TQCursor is fully implemented.


TQDataStream

TQDataStream &readBytes(const char *&s, uint &l);

This takes no parameters. The TQDataStream result and the data read are returned as a tuple.

TQDataStream &readRawBytes(const char *s, uint l);

This takes only the l parameter. The TQDataStream result and the data read are returned as a tuple.

TQDataStream &writeBytes(const char *s, uint len);

len is derived from s and not passed as a parameter.

TQDataStream &writeRawBytes(const char *s, uint len);

len is derived from s and not passed as a parameter.


TQDate

The Python ==, !=, <, <=, >, >= and __nonzero__ operators are supported.

int weekNumber(int *yearNum = 0);

This takes no parameters and returns the week number and the year number as a tuple. (Qt v3.1+)


TQDateTime

TQDateTime is fully implemented, including the Python ==, !=, <, <=, >, >= and __nonzero__ operators.


TQTime

TQTime is fully implemented, including the Python ==, !=, <, <=, >, >= and __nonzero__ operators.


QDateEdit (Qt v3+)

QDateEdit is fully implemented.


QTimeEdit (Qt v3+)

QTimeEdit is fully implemented.


QDateTimeEdit (Qt v3+)

QDateTimeEdit is fully implemented.


TQDesktopWidget (Qt v3+)

TQDesktopWidget is fully implemented.


TQDial (Qt v2.2+)

TQDial is fully implemented.


TQDialog

int exec();

This has been renamed to exec_loop in Python.

This method also causes ownership of the underlying C++ dialog to be transfered to Python. This means that the C++ dialog will be deleted when the Python wrapper is garbage collected. Although this is a little inconsistent, it ensures that the dialog is deleted without having to explicity code it using TQObject.deleteLater() or other techniques.


TQDir

TQDir is fully implemented, including the Python len, [] (for reading slices and individual elements), ==, != and in operators


QFileInfoList

This class isn't implemented. Whenever a QFileInfoList is the return type of a function or the type of an argument, a Python list of TQFileInfo instances is used instead.


TQDockArea (Qt v3+)

bool hasDockWindow const(TQDockWindow *w, int *index = 0);

This takes the w parameter and returns the index of the QDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.


TQDockWindow (Qt v3+)

TQDockWindow is fully implemented.


TQColorDrag (Qt v2.1+)

TQColorDrag is fully implemented.


TQDragObject

TQDragObject is fully implemented.


TQImageDrag

TQImageDrag is fully implemented.


TQStoredDrag

TQStoredDrag is fully implemented.


TQTextDrag

TQTextDrag is fully implemented.


TQUriDrag (Qt v2+)

TQUriDrag is fully implemented.


QUrlDrag (Qt v1.x)

QUrlDrag is fully implemented.


TQDropSite

TQDropSite is fully implemented.


TQErrorMessage (Qt v3+)

TQErrorMessage is fully implemented.


TQEvent

TQEvent is fully implemented.

Instances of TQEvents are automatically converted to the correct sub-class.


TQChildEvent

TQChildEvent is fully implemented.


TQCloseEvent

TQCloseEvent is fully implemented.


TQIconDragEvent (Qt v3.3+)

TQIconDragEvent is fully implemented.


TQContextMenuEvent (Qt v3+)

TQContextMenuEvent is fully implemented.


TQCustomEvent

TQCustomEvent is fully implemented. Any Python object can be passed as the event data and its reference count is increased.


TQDragEnterEvent

TQDragEnterEvent is fully implemented.


TQDragLeaveEvent

TQDragLeaveEvent is fully implemented.


TQDragMoveEvent

TQDragMoveEvent is fully implemented.


TQDropEvent

TQDropEvent is fully implemented.


TQFocusEvent

TQFocusEvent is fully implemented.


TQHideEvent

TQHideEvent is fully implemented.


TQIMComposeEvent (Qt v3.1+)

TQIMComposeEvent is fully implemented.


TQIMEvent (Qt v3+)

TQIMEvent is fully implemented.


TQKeyEvent

TQKeyEvent is fully implemented.


TQMouseEvent

TQMouseEvent is fully implemented.


TQMoveEvent

TQMoveEvent is fully implemented.


TQPaintEvent

TQPaintEvent is fully implemented.


TQResizeEvent

TQResizeEvent is fully implemented.


TQShowEvent

TQShowEvent is fully implemented.


TQTabletEvent (Qt v3+)

TQTabletEvent is fully implemented.


TQTimerEvent

TQTimerEvent is fully implemented.


TQWheelEvent (Qt v2+)

TQWheelEvent is fully implemented.


TQEventLoop (Qt v3.1+)

virtual int exec();

This has been renamed to exec_loop in Python.


TQFile

bool open(int m, FILE *f);

Not implemented.

Q_LONG readBlock(char *data, Q_ULONG len);

This takes a single len parameter. The data is returned if there was no error, otherwise None is returned.

Q_LONG readLine(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The data is returned if there was no error, otherwise None is returned.

static void setDecodingFunction(EncoderFn f);

Not yet implemented. (Qt v2+)

static void setEncodingFunction(EncoderFn f);

Not yet implemented. (Qt v2+)

Q_LONG writeBlock(const char *data, Q_ULONG len);

len is derived from data and not passed as a parameter.


TQFileDialog

TQFileDialog is fully implemented.


TQFileIconProvider

TQFileIconProvider is fully implemented.


TQFilePreview

TQFilePreview is fully implemented. However it cannot be used from Python in the same way as it is used from C++ because PyQt 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(TQFilePreview):
    pass

class Preview(TQLabel):
    def __init__(self, parent=None):
        TQLabel.__init__(self, parent)
        self.preview = FilePreview()
        self.preview.previewUrl = self.previewUrl

Note that TQFilePreview cannot be instantiated directly because it is abstract. Thanks to Hans-Peter Jansen for this trick.


TQFileInfo

TQFileInfo is fully implemented.


TQFont

TQFont is fully implemented, including the Python == and != operators.


TQFontDatabase (Qt v2.1+)

TQFontDatabase is fully implemented.


QFontDialog (Qt v2+)

static TQFont getFont(bool *ok, const TQFont &def, TQWidget *parent = 0, const char *name = 0);

This takes the def, parent and name parameters and returns a tuple containing the TQFont result and the ok value.

static TQFont getFont(bool *ok, TQWidget *parent = 0, const char *name = 0);

This takes the parent and name parameters and returns a tuple containing the TQFont result and the ok value.


TQFontInfo

TQFontInfo is fully implemented.


TQFontMetrics

TQRect boundingRect(int x, int y, int w, int h, int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);

The tabarray parameter is a Python list of integers.

TQSize size(int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);

The tabarray parameter is a Python list of integers.


TQFrame

TQFrame is fully implemented.


QGManager (Qt v1.x)

QGManager is fully implemented.


QChain (Qt v1.x)

QChain is implemented as an opaque class.


TQGrid (Qt v2+)

TQGrid is fully implemented.


TQGridView (Qt v3+)

TQGridView is fully implemented.


TQGroupBox

TQGroupBox is fully implemented.


TQHBox (Qt v2+)

TQHBox is fully implemented.


TQHButtonGroup (Qt v2+)

TQHButtonGroup is fully implemented.


TQHeader

TQHeader is fully implemented.


TQHGroupBox (Qt v2+)

TQHGroupBox is fully implemented.


TQIconSet

TQIconSet is fully implemented.


TQIconFactory (Qt v3.1+)

TQIconFactory is fully implemented.


TQIconView (Qt v2.1+)

TQIconViewItem *makeRowLayout(TQIconViewItem *begin, int &y);

Not yet implemented.


TQIconViewItem (Qt v2.1+)

TQIconViewItem is fully implemented.


TQIconDrag (Qt v2.1+)

TQIconDrag is fully implemented.


TQIconDragItem (Qt v2.1+)

TQIconDragItem is fully implemented.


TQImage

The Python == and != operators are supported.

TQImage(const char *xpm[]);

This takes a list of strings as its parameter.

TQImage(uchar *data, int w, int h, int depth, QRgb *colorTable, int numColors, Endian bitOrder);

The colorTable parameter is a list of QRgb instances or None. (Qt v2.1+)

uchar *bits();

The return value is a sip.voidptr object which is only useful if passed to another Python module.

QRgb *colorTable();

The return value is a sip.voidptr object which is only useful if passed to another Python module.

TQImage convertDepthWithPalette(int, QRgb *p, int pc, int cf = 0);

Not implemented.

uchar **jumpTable();

The return value is a sip.voidptr object which is only useful if passed to another Python module.

bool loadFromData(const uchar *buf, uint len, const char *format = 0, ColorMode mode = Auto);

len is derived from buf and not passed as a parameter.

uchar *scanLine(int i);

The return value is a sip.voidptr object which is only useful if passed to another Python module.


TQImageIO

static void defineIOHandler(const char *format, const char *header, const char *flags, image_io_handler read_image, image_io_handler write_image);

Not implemented.


TQImageTextKeyLang

TQImageTextKeyLang is fully implemented.


QInputDialog (Qt v2.1+)

static TQString getText(const TQString &caption, const TQString &label, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);

The ok is not passed and the returned value is a tuple of the TQString result and the ok flag. (Qt v2.1 - v2.3.1)

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);

The ok is not passed and the returned value is a tuple of the TQString result and the ok flag. (Qt v2.2 - v2.3.1)

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);

The ok is not passed and the returned value is a tuple of the TQString result and the ok flag. (Qt v3+)

static int getInteger(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);

The ok is not passed and the returned value is a tuple of the int result and the ok flag.

static double getDouble(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);

The ok is not passed and the returned value is a tuple of the double result and the ok flag.

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);

The ok is not passed and the returned value is a tuple of the TQString result and the ok flag.


QInterlaceStyle (Qt v2.3.1+)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values.


TQIODevice

TQIODevice is fully implemented.


TQKeySequence (Qt v3+)

TQKeySequence is fully implemented including the operators ==, !=, TQString() and int(). A TQString instance or a Python integer may be used whenever a TQKeySequence can be used.


TQLabel

TQLabel is fully implemented.


TQLayout

TQLayout is fully implemented.


TQBoxLayout

TQBoxLayout is fully implemented.


TQGLayoutIterator (Qt v2+)

TQGLayoutIterator is fully implemented.


TQGridLayout

bool findWidget(TQWidget *w, int *row, int *col);

This takes the w parameter and returns a tuple containing the bool result, row and col. (Qt v2+)


TQHBoxLayout

TQHBoxLayout is fully implemented.


TQLayoutItem (Qt v2+)

TQLayoutItem is fully implemented.


TQLayoutIterator (Qt v2+)

TQLayoutItem *next();

This is a wrapper around the TQLayoutIterator ++ operator.


TQSpacerItem (Qt v2+)

TQSpacerItem is fully implemented.


TQVBoxLayout

TQVBoxLayout is fully implemented.


TQWidgetItem (Qt v2+)

TQWidgetItem is fully implemented.


TQLCDNumber

TQLCDNumber is fully implemented.


TQLibrary (Qt v3+)

TQLibrary is fully implemented.


TQLineEdit

int characterAt(int xpos, TQChar *chr);

This takes only the xpos parameter and returns the int result and the chr value as a tuple. (Qt v3+)

void del();

This has been renamed delChar in Python. (Qt v2+)

bool getSelection(int *start, int *end);

This takes no parameters and returns the bool result and the start and end values as a tuple. (Qt v3+)


QList<type> (Qt v2)

Types based on the QList template are automatically converted to and from Python lists of the type.


TQListBox

bool itemYPos(int index, int *yPos);

This takes the index parameter and returns a tuple containing the bool result and yPos. (Qt v1.x)


TQListBoxItem

TQListBoxItem is fully implemented.


TQListBoxPixmap

TQListBoxPixmap is fully implemented.


TQListBoxText

TQListBoxText is fully implemented.


TQListView

TQListView is fully implemented.

Note that to remove a child TQListViewItem you must first call takeItem() and then del().


TQListViewItem

TQListViewItem is fully implemented.

Note that to remove a child TQListViewItem you must first call takeItem() and then del().


TQCheckListItem

TQCheckListItem is fully implemented.


TQListViewItemIterator (Qt v2+)

TQListViewItemIterator is fully implemented.


TQLocale (Qt v3.3+)

short toShort(bool *ok = 0);

This returns a tuple of the short result and the ok value.

ushort toUShort(bool *ok = 0);

This returns a tuple of the ushort result and the ok value.

int toInt(bool *ok = 0);

This returns a tuple of the int result and the ok value.

uint toUInt(bool *ok = 0);

This returns a tuple of the uint result and the ok value.

Q_LONG toLong(bool *ok = 0);

This returns a tuple of the long result and the ok value.

Q_ULONG toULong(bool *ok = 0);

This returns a tuple of the ulong result and the ok value.

float toFloat(bool *ok = 0);

This returns a tuple of the float result and the ok value.

double toDouble(bool *ok = 0);

This returns a tuple of the double result and the ok value.


TQMainWindow

TQTextStream &operator<<(TQTextStream &, const TQMainWindow &);

This operator is fully implemented. (Qt v3+)

TQTextStream &operator>>(TQTextStream &, TQMainWindow &);

This operator is fully implemented. (Qt v3+)

bool getLocation(TQToolBar *tb, ToolBarDock &dock, int &index, bool &nl, int &extraOffset);

This takes only the tb parameter and returns a tuple of the result, dock, index, nl and extraOffset values. (Qt v2.1.0+)

QList<TQToolBar> toolBars(ToolBarDock dock);

This returns a list of TQToolBar instances. (Qt v2.1.0+)


TQMemArray<type> (Qt v3+)

Types based on the TQMemArray template are automatically converted to and from Python lists of the type.


TQMenuBar

TQMenuBar is fully implemented.


TQMenuData

TQMenuItem *findItem(int id, TQMenuData **parent);

Not implemented.


TQCustomMenuItem (Qt v2.1+)

TQCustomMenuItem is fully implemented.


TQMenuItem

TQMenuItem is an internal Qt class.


TQMessageBox

TQMessageBox is fully implemented.


TQMetaObject

int numClassInfo const(bool super = FALSE);

Not implemented.

const QClassInfo *classInfo const(bool super = FALSE);

Not implemented.


TQMetaProperty

TQMetaProperty is fully implemented.


TQMimeSource (Qt v2+)

TQMimeSource is fully implemented.


TQMimeSourceFactory (Qt v2+)

TQMimeSourceFactory is fully implemented.


TQWindowsMime (Qt v3+)

TQWindowsMime is fully implemented.


TQMotifPlusStyle (Qt v2.2+)

void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and y values. (Qt v2)

void scrollBarMetrics(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values. (Qt v2)


TQMotifStyle (Qt v2+)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values. (Qt v2)

void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the hframe, vframe and overlap values. (Qt v2)


TQMovie

TQMovie(TQDataSource *src, int bufsize = 1024);

Not implemented.

void pushData(const uchar *data, int length);

length is derived from data and not passed as a parameter. (Qt v2.2.0+)


TQMultiLineEdit

void cursorPosition const(int *line, int *col);

This takes no parameters and returns a tuple of the line and col values. (Qt v1.x, Qt v2.x)

virtual void del();

This has been renamed delChar in Python. (Qt v1.x, Qt v2.x)

void getCursorPosition const(int *line, int *col);

This takes no parameters and returns a tuple of the line and col values. (Qt v1.x, Qt v2.x)

bool getMarkedRegion(int *line1, int *col1, int *line2, int *col2);

This takes no parameters and returns a tuple of the bool result and the line1, col1, line2 and col2 values.


TQMutex (Qt v2.2+)

TQMutex is fully implemented.


TQMutexLocker (Qt v3.1+)

TQMutexLocker is fully implemented.


TQNetworkOperation (Qt v2.1+)

TQNetworkOperation is fully implemented.


TQNetworkProtocol (Qt v2.1+)

TQNetworkProtocol is fully implemented.


TQNetworkProtocolFactoryBase (Qt v2.1+)

TQNetworkProtocolFactoryBase is fully implemented.


TQObject

bool disconnect(const TQObject *receiver, const char *member = 0);

Not yet implemented.

bool disconnect(const char *signal = 0, const TQObject *receiver = 0, const char *member = 0);

Not yet implemented.

static bool disconnect(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 method. In particular, specifying None (ie. 0 in C++) for the signal and receiver parameters is not yet supported.


TQObjectCleanupHandler (Qt v3+)

TQObjectCleanupHandler is fully implemented.


TQObjectList

This class isn't implemented. Whenever a TQObjectList is the return type of a function or the type of an argument, a Python list of TQObject instances is used instead.


TQPaintDeviceMetrics

TQPaintDeviceMetrics is fully implemented.


TQPaintDevice

virtual bool cmd(int, TQPainter *, QPDevCmdParam *);

Not implemented.


TQPainter

TQRect boundingRect(int x, int y, int w, int h, int flags, const char *str, int len = -1, char **intern = 0);

The intern parameter is not supported.

TQRect boundingRect(const TQRect&, int flags, const char *str, int len = -1, char **intern = 0);

The intern parameter is not supported.

void drawText(int x, int y, int w, int h, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);

The intern parameter is not supported.

void drawText(const TQRect&, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);

The intern parameter is not supported.

void setTabArray(int *ta);

This takes a single parameter which is a list of tab stops.

int *tabArray();

This returns a list of tab stops.


TQPalette

TQPalette is fully implemented, including the Python == and != operators.


TQPixmap

TQPixmap(const char *xpm[]);

This takes a list of strings as its parameter.

bool loadFromData(const uchar *buf, uint len, const char *format = 0, ColorMode mode = Auto);

len is derived from buf and not passed as a parameter.

bool loadFromData(const uchar *buf, uint len, const char *format, int conversion_flags);

Not implemented.


TQPixmapCache (Qt v3+)

TQPixmapCache is fully implemented.


QPair<type,type> (Qt v3+)

Types based on the QPair template are automatically converted to and from Python tuples of two elements.


TQPen

TQPen is fully implemented, including the Python == and != operators.


TQPicture

const char *data();

Not implemented.

void setData(const char *data, uint size);

size is derived from data and not passed as a parameter.


TQPlatinumStyle (Qt v2+)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values. (Qt v2)


TQPoint

The Python +, +=, -, -=, unary -, *, *=, /, /=, ==, != and __nonzero__ operators are supported.

QCOORD &rx();

Not implemented.

QCOORD &ry();

Not implemented.


TQPointArray

TQPointArray(int nPoints, const QCOORD *points);

This takes a single parameter which is a list of points.

void point(uint i, int *x, int *y);

This takes the single parameter i and returns the x and y values as a tuple.

bool putPoints(int index, int nPoints, const QCOORD *points);

This takes two parameters, index and a list of points.

bool putPoints(int index, int nPoints, int firstx, int firsty, ...);

Not implemented.

bool setPoints(int nPoints, const QCOORD *points);

This takes a single parameter which is a list of points.

bool setPoints(int nPoints, int firstx, int firsty, ...);

Not implemented.


TQPopupMenu

int exec();

This has been renamed exec_loop in Python.

int exec(const TQPoint &pos, int indexAtPoint = 0);

This has been renamed exec_loop in Python.


TQPrintDialog (X11)

TQPrintDialog is fully implemented.


TQPrinter

TQPrinter is fully implemented.


TQProcess (Qt v3+)

TQProcess is fully implemented.


TQProgressBar

TQProgressBar is fully implemented.


TQProgressDialog

TQProgressDialog is fully implemented. value.


TQPtrList<type> (Qt v3+)

Types based on the TQPtrList template are automatically converted to and from Python lists of the type.


TQPushButton

TQPushButton is fully implemented.


TQRadioButton

TQRadioButton is fully implemented.


TQRangeControl

TQRangeControl is fully implemented.


TQRect

The Python &, &=, |, |=, ==, !=, in and __nonzero__ operators are supported.

void coords(int *x1, int *y1, int *x2, int *y2);

This takes no parameters and returns a tuple containing the four values.

void rect(int *x, int *y, int *w, int *h);

This takes no parameters and returns a tuple containing the four values.

QCOORD &rBottom();

Not implemented. (Qt v2+)

QCOORD &rLeft();

Not implemented. (Qt v2+)

QCOORD &rRight();

Not implemented. (Qt v2+)

QCOORD &rTop();

Not implemented. (Qt v2+)


TQRegExp

The Python == and != operators are supported.

int match(const char *str, int index = 0, int *len = 0);

This takes str and index parameters and returns a tuple of the int result and the len value. (Qt v1.x)

int match(const TQString &str, int index = 0, int *len = 0);

This takes str and index parameters and returns a tuple of the int result and the len value. (Qt v2+)


TQRegion

The Python |, |=, +, +=, &, &=, -, -=, ^, ^=, ==, !=, in and __nonzero__ operators are supported.

QArray<TQRect> rects();

Not implemented.

void setRects(TQRect *rects, int num);

Not yet implemented. (Qt v2.2+)


TQScrollBar

TQScrollBar is fully implemented.


TQScrollView

void contentsToViewport(int x, int y, int &vx, int &vy);

This takes the x and y parameters and returns a tuple containing the vx and vy values. (Qt v2+)

void viewportToContents(int vx, int vy, int &x, int &y);

This takes the vx and vy parameters and returns a tuple containing the x and y values. (Qt v2+)


TQSemaphore (Qt v2.2+)

TQSemaphore is fully implemented. The += and -= operators have also been implemented, but require Python v2.0 or later.


TQSemiModal (Qt v1, v2)

TQSemiModal is fully implemented.


QSessionManager (Qt v2+)

QSessionManager is fully implemented.


TQSettings (Qt v3+)

bool readBoolEntry(const TQString &key, bool def = 0, bool *ok = 0);

The ok is not passed and the returned value is a tuple of the bool result and the ok flag.

double readDoubleEntry(const TQString &key, double def = 0, bool *ok = 0);

The ok is not passed and the returned value is a tuple of the double result and the ok flag.

TQString readEntry(const TQString &key, const TQString &def = TQString::null, bool *ok = 0);

The ok is not passed and the returned value is a tuple of the TQString result and the ok flag.

TQStringList readListEntry(const TQString &key, bool *ok = 0);

The ok is not passed and the returned value is a tuple of the TQStringList result and the ok flag.

TQStringList readListEntry(const TQString &key, const TQChar &separator, bool *ok = 0);

The ok is not passed and the returned value is a tuple of the TQStringList result and the ok flag.

int readNumEntry(const TQString &key, int def = 0, bool *ok = 0);

The ok is not passed and the returned value is a tuple of the int result and the ok flag.

bool writeEntry(const TQString &key, bool value);

Not implemented.


TQSGIStyle (Qt v2.2+)

void scrollBarMetrics(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values. (Qt v2)


TQSignalMapper

TQSignalMapper is fully implemented.


TQSimpleRichText (Qt v2+)

TQSimpleRichText is fully implemented.


TQSize

The Python +, +=, -, -=, *, *=, /, /=, ==, != and __nonzero__ operators are supported.

QCOORD &rheight();

Not implemented.

QCOORD &rwidth();

Not implemented.


TQSizeGrip (Qt v2+)

TQSizeGrip is fully implemented.


TQSizePolicy (Qt v2+)

TQSizePolicy is fully implemented.


TQSlider

TQSlider is fully implemented.


TQSocketNotifier

TQSocketNotifier is fully implemented.


TQSound (Qt v2.2+)

TQSound is fully implemented.


TQSpinBox

virtual int mapTextToValue(bool *ok);

This returns a tuple of the int result and the modified ok value.


TQSplashScreen (Qt v3.2.0+)

TQSplashScreen is fully implemented.


TQSplitter

void getRange(int id, int *min, int *max);

This takes the id parameter and returns the min and max values as a tuple. (Qt v2+)


TQStatusBar

TQStatusBar is fully implemented.


TQChar (Qt v2+)

uchar &cell const();

Not implemented.

uchar &row const();

Not implemented.


TQString

A Python string object (or Unicode object) can be used whenever a TQString can be used. A TQString can be converted to a Python string object using the Python str() function, and to a Python Unicode object using the Python unicode() function.

The Python +=, len, [] (for reading slices and individual characters), in and comparison operators are supported.

TQCharRef at(uint i);

Not yet implemented. (Qt v2+)

TQChar constref const(uint i);

Not yet implemented. (Qt v2+)

TQChar &ref(uint i);

Not yet implemented. (Qt v2+)

TQString &setUnicodeCodes(const ushort *unicode_as_shorts, uint len);

Not yet implemented. (Qt v2.1+)

TQString &sprintf(const char *format, ...);

Not implemented.

short toShort(bool *ok = 0);

This returns a tuple of the short result and the ok value.

ushort toUShort(bool *ok = 0);

This returns a tuple of the ushort result and the ok value.

int toInt(bool *ok = 0);

This returns a tuple of the int result and the ok value.

uint toUInt(bool *ok = 0);

This returns a tuple of the uint result and the ok value.

long toLong(bool *ok = 0);

This returns a tuple of the long result and the ok value.

ulong toULong(bool *ok = 0);

This returns a tuple of the ulong result and the ok value.

float toFloat(bool *ok = 0);

This returns a tuple of the float result and the ok value.

double toDouble(bool *ok = 0);

This returns a tuple of the double result and the ok value.


TQStringList (Qt v2+)

The Python len, [] (for both reading and writing slices and individual elements), del (for deleting slices and individual elements), +, +=, *, *=, ==, != and in operators are supported.

Iterator append(const TQString &x);

This does not return a value.

Iterator prepend(const TQString &x);

This does not return a value.


TQStrList

This class isn't implemented. Whenever a TQStrList is the return type of a function or the type of an argument, a Python list of strings is used instead.


TQStyle (Qt v2+)

virtual void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and y values. (Qt v2)

virtual void scrollBarMetrics(const TQScrollBar *b, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

Thus takes only the b parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values. (Qt v2)

virtual void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the hframe, vframe and overlap values. (Qt v2)


TQStyleOption (Qt v3+)

TQStyleOption is fully implemented.


TQStyleSheet (Qt v2+)

TQStyleSheet is fully implemented.


TQStyleSheetItem (Qt v2+)

TQStyleSheetItem is fully implemented.


TQSyntaxHighlighter (Qt v3.1+)

TQSyntaxHighlighter is fully implemented.


TQTab

TQTab is fully implemented.


TQTabBar

QList<TQTab> tabList();

This returns a list of TQTab instances.


TQTabDialog

TQTabDialog is fully implemented.


QTableView (Qt 1.x, Qt 2.x)

bool colXPos(int col, int *xPos);

This takes the col parameter and returns a tuple containing the bool result and xPos.

bool rowYPos(int row, int *yPos);

This takes the row parameter and returns a tuple containing the bool result and yPos.


TQTabWidget (Qt v2+)

TQTabWidget is fully implemented.


TQTextBrowser (Qt v2+)

TQTextBrowser is fully implemented.


TQTextCodec (Qt v2+)

virtual TQCString fromUnicode(const TQString &uc, int &lenInOut);

The returned value is a tuple of the TQCString result and the updated lenInOut.


TQTextDecoder (Qt v2+)

TQTextDecoder is fully implemented.


TQTextEncoder (Qt v2+)

virtual TQCString fromUnicode = 0(const TQString &uc, int &lenInOut);

The returned value is a tuple of the TQCString result and the updated lenInOut.


TQTextEdit (Qt v3+)

int charAt(const TQPoint &pos, int *para = 0);

This takes only the pos parameter and returns a tuple of the value returned via the para pointer and the int result.

void del();

This has been renamed delChar in Python.

virtual bool find(const TQString &expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);

If the para and index parameters are omitted then the bool result is returned. If both are supplied (as integers) then a tuple of the bool result and the modified values of para and index is returned.

void getCursorPosition(int *para, int *index);

This takes no parameters and returns a tuple of the values returned via the para and index pointers.

void getSelection(int *paraFrom, int *indexFrom, int *paraTo, int *indexTo, int selNum = 0);

This takes only the selNum parameter and returns a tuple of the paraFrom, indexFrom, paraTo and indexTo values.


TQTextStream

TQTextStream(FILE *fp, int mode);

Not implemented.

TQTextStream &readRawBytes(char *buf, uint len);

Not yet implemented.

TQTextStream &writeRawBytes(const char *buf, uint len);

Not yet implemented.


TQTextIStream (Qt v2+)

TQTextIStream(FILE *fp, int mode);

Not implemented.


TQTextOStream (Qt v2+)

TQTextOStream(FILE *fp, int mode);

Not implemented.


TQTextView (Qt v2+)

TQTextView is fully implemented.


TQThread (Qt v2.2+)

TQThread is fully implemented.


TQTimer

TQTimer is fully implemented.


TQToolBar

TQToolBar is fully implemented.


TQToolBox (Qt v3.2.0+)

TQToolBox is fully implemented.


TQToolButton

TQToolButton is fully implemented.


TQToolTip

TQToolTip is fully implemented.


TQToolTipGroup

TQToolTipGroup is fully implemented.


QTranslator (Qt v2+)

QTranslator is fully implemented.


QTranslatorMessage (Qt v2.2+)

QTranslatorMessage is fully implemented.


TQUrl (Qt v2.1+)

TQUrl is fully implemented, including the TQString(), == and != operators.


TQUrlInfo (Qt v2.1+)

TQUrlInfo is fully implemented.


TQUrlOperator (Qt v2.1+)

virtual bool isDir(bool *ok);

This returns a tuple of the bool result and the ok value.


QUuid (Qt v3.0+)

QUuid is fully implemented.


TQValidator

virtual State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the updated pos.


TQDoubleValidator

State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the updated pos.


TQIntValidator

State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the updated pos.


TQRegExpValidator (Qt v3+)

virtual State validate(TQString& input, int& pos);

The returned value is a tuple of the State result and the updated pos.


TQValueList<type> (Qt v2+)

Types based on the TQValueList template are automatically converted to and from Python lists of the type.


TQVariant (Qt v2.1+)

TQVariant(const char *val);

Not implemented.

TQVariant(const TQBitArray &val);

Not yet implemented. (Qt v3+)

TQVariant(const TQValueList<TQVariant> &val);

Not yet implemented.

TQVariant(const TQMap<TQString,TQVariant> &val);

Not yet implemented.

TQBitArray &asBitArray();

Not yet implemented. (Qt v3+)

bool &asBool();

Not implemented.

double &asDouble();

Not implemented.

int &asInt();

Not implemented.

TQValueList<TQVariant> &asList();

Not implemented.

TQMap<TQString,TQVariant> &asMap();

Not implemented.

uint &asUInt();

Not implemented.

TQValueListConstIterator<TQVariant>listBegin const();

Not implemented.

TQValueListConstIterator<TQVariant>listEnd const();

Not implemented.

TQMapConstIterator<TQString,TQVariant>mapBegin const();

Not implemented.

TQMapConstIterator<TQString,TQVariant>mapEnd const();

Not implemented.

TQMapConstIterator<TQString,TQVariant>mapFind const(const TQString &key);

Not implemented.

TQValueListConstIterator<TQString>stringListBegin const();

Not implemented.

TQValueListConstIterator<TQString>stringListEnd const();

Not implemented.

const TQBitArray toBitArray const();

Not yet implemented. (Qt v3+)

const TQValueList<TQVariant>toList const();

Not yet implemented.

const TQMap<TQString,TQVariant>toMap const();

Not yet implemented.


TQVBox (Qt v2+)

TQVBox is fully implemented.


TQVButtonGroup (Qt v2+)

TQVButtonGroup is fully implemented.


TQVGroupBox (Qt v2+)

TQVGroupBox is fully implemented.


TQWaitCondition (Qt v2.2+)

TQWaitCondition is fully implemented.


TQWhatsThis

TQWhatsThis is fully implemented.


TQWidget

QWExtra *extraData();

Not implemented.

TQFocusData *focusData();

Not implemented.

void lower();

This has been renamed to lowerW in Python.

void raise();

This has been renamed to raiseW in Python.


TQWidgetList

This class isn't implemented. Whenever a TQWidgetList is the return type of a function or the type of an argument, a Python list of instances is used instead.


TQWidgetStack

TQWidgetStack is fully implemented.


QWindow

QWindow is fully implemented (Qt v1.x).


TQWindowsStyle (Qt v2+)

void getButtonShift(int &x, int &y);

This takes no parameters and returns a tuple of the x and y values. (Qt v2)

void scrollBarMetrics(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);

This takes only the sb parameter and returns a tuple of the sliderMin, sliderMax, sliderLength and buttonDim values. (Qt v2)

void tabbarMetrics(const TQTabBar *t, int &hframe, int &vframe, int &overlap);

This takes only the t parameter and returns a tuple of the hframe, vframe and overlap values. (Qt v2)


QWindowsXPStyle (Qt v3.0.1+, Windows)

QWindowsXPStyle is fully implemented.


TQWizard (Qt v2+)

TQWizard is fully implemented.


TQWMatrix

The Python ==, != and *= operators are supported.

TQWMatrix invert const(bool *invertible = 0);

This takes no parameters and returns a tuple of the TQWMatrix result and the invertible value.

void map const(int x, int y, int *tx, int *ty);

This takes the x and y parameters and returns a tuple containing the tx and ty values.

void map const(float x, float y, float *tx, float *ty);

This takes the x and y parameters and returns a tuple containing the tx and ty values. (Qt v1.x)

void map const(double x, double y, double *tx, double *ty);

This takes the x and y parameters and returns a tuple containing the tx and ty values. (Qt v2+)


TQWorkspace (Qt v2.1+)

TQWorkspace is fully implemented.


qtaxcontainer Module Reference

QAxBase (Windows, Qt v3+)

QAxObject(IUnknown *iface = 0);

Not implemented.

long queryInterface(const QUuid &uuid, void **iface);

Not implemented.

PropertyBag propertyBag const();

Not implemented.

void setPropertyBag(const PropertyBag &bag);

Not implemented.

unsigned long registerWeakActiveObject(const TQString &guid);

This is a utility method provided by PyQt to make it easier to use Mark Hammond's win32com module to manipulate objects created by the qtaxcontainer module.

The RegisterActiveObject() COM function is called to register the QAxBase instance as a weak object with the guid GUID. The revoke handle is returned.

static void revokeActiveObject(unsigned long rhandle);

This is a wrapper around the RevokeActiveObject() COM function and is called to revoke the object registered using registerWeakActiveObject(). rhandle is the revoke handle returned by registerWeakActiveObject().


QAxObject (Windows, Qt v3+)

QAxObject(IUnknown *iface, TQObject *parent = 0, const char *name = 0);

Not implemented.


QAxWidget (Windows, Qt v3+)

QAxWidget(IUnknown *iface, TQWidget *parent = 0, const char *name = 0);

Not implemented.


qtcanvas Module Reference

TQCanvas (Qt v2.2+)

TQCanvas is fully implemented.


TQCanvasEllipse (Qt v2.2+)

TQCanvasEllipse is fully implemented.


TQCanvasItem (Qt v2.2+)

TQCanvasItem is fully implemented.


TQCanvasItemList (Qt v2.2+)

This class isn't implemented. Whenever a TQCanvasItemList is the return type of a function or the type of an argument, a Python list of TQCanvasItem instances is used instead.


TQCanvasLine (Qt v2.2+)

TQCanvasLine is fully implemented.


TQCanvasPixmap (Qt v2.2+)

TQCanvasPixmap is fully implemented.


TQCanvasPixmapArray (Qt v2.2+)

QPixmapArray(QList<TQPixmap> pixmaps, QList<TQPoint> hotspots);

The pixmaps 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)

QPixmapArray(TQValueList<TQPixmap> pixmaps, TQPointArray hotspots = TQPointArray());

The pixmaps argument is a Python list of TQPixmap instances. (Qt v3+)


TQCanvasPolygon (Qt v2.2+)

TQCanvasPolygon is fully implemented.


TQCanvasPolygonalItem (Qt v2.2+)

TQCanvasPolygonalItem is fully implemented.


TQCanvasRectangle (Qt v2.2+)

TQCanvasRectangle is fully implemented.


TQCanvasSpline (Qt v3.0+)

TQCanvasSpline is fully implemented.


TQCanvasSprite (Qt v2.2+)

TQCanvasSprite is fully implemented.


TQCanvasText (Qt v2.2+)

TQCanvasText is fully implemented.


TQCanvasView (Qt v2.2+)

TQCanvasView is fully implemented.


qtext Module Reference

QextScintilla

void getCursorPosition(int *line, int *index);

This takes no parameters and returns a tuple of the values returned by the line and index pointers.

void getSelection(int *lineFrom, int *indexFrom, int *lineTo, int *indexTo);

This takes no parameters and returns a tuple of the values returned by the lineFrom, indexFrom, lineTo and indexTo pointers.


QextScintillaAPIs

QextScintillaAPIs is fully implemented.


QextScintillaBase

QextScintillaBase is fully implemented.


QextScintillaCommand

QextScintillaCommand is fully implemented.


QextScintillaCommandSet

QextScintillaCommandSet is fully implemented.


QextScintillaDocument

QextScintillaDocument is fully implemented.


QextScintillaLexer

QextScintillaLexer is fully implemented.


QextScintillaLexerBash (QScintilla v1.4+)

QextScintillaLexerBash is fully implemented.


QextScintillaLexerBatch (QScintilla v1.6+)

QextScintillaLexerBatch is fully implemented.


QextScintillaLexerCPP

QextScintillaLexerCPP is fully implemented.


QextScintillaLexerCSharp

QextScintillaLexerCSharp is fully implemented.


QextScintillaLexerCSS (QScintilla v1.6+)

QextScintillaLexerCSS is fully implemented.


QextScintillaLexerDiff (QScintilla v1.6+)

QextScintillaLexerDiff is fully implemented.


QextScintillaLexerHTML (QScintilla v1.1+)

QextScintillaLexerHTML is fully implemented.


QextScintillaLexerIDL

QextScintillaLexerIDL is fully implemented.


QextScintillaLexerJava

QextScintillaLexerJava is fully implemented.


QextScintillaLexerJavaScript

QextScintillaLexerJavaScript is fully implemented.


QextScintillaLexerLua (QScintilla v1.5+)

QextScintillaLexerLua is fully implemented.


QextScintillaLexerMakefile (QScintilla v1.6+)

QextScintillaLexerMakefile is fully implemented.


QextScintillaLexerPerl

QextScintillaLexerPerl is fully implemented.


QextScintillaLexerPOV (QScintilla v1.6+)

QextScintillaLexerPOV is fully implemented.


QextScintillaLexerProperties (QScintilla v1.6+)

QextScintillaLexerProperties is fully implemented.


QextScintillaLexerPython

QextScintillaLexerPython is fully implemented.


QextScintillaLexerRuby (QScintilla v1.5+)

QextScintillaLexerRuby is fully implemented.


QextScintillaLexerSQL (QScintilla v1.1+)

QextScintillaLexerSQL is fully implemented.


QextScintillaLexerTeX (QScintilla v1.6+)

QextScintillaLexerTeX is fully implemented.


QextScintillaMacro

QextScintillaMacro is fully implemented.


QextScintillaPrinter

QextScintillaPrinter is fully implemented.


qtgl Module Reference

TQGL

TQGL is fully implemented.


TQGLContext

TQGLContext is fully implemented.


TQGLFormat

TQGLFormat is fully implemented.


TQGLWidget

TQGLWidget is fully implemented.


TQGLColormap (Qt v3.0+)

void setEntries(int count, const QRgb *colors, int base = 0);

Not yet implemented.


qtnetwork Module Reference

TQDns (Qt v2.2+)

TQDns is fully implemented.


TQFtp (Qt v2.2+)

Q_LONG readBlock(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The data is returned if there was no error, otherwise None is returned.


TQHostAddress (Qt v2.2+)

TQHostAddress(Q_UINT8 *ip6Addr);

Not yet implemented.

TQHostAddress(const Q_IPV6ADDR &ip6Addr);

Not yet implemented.

void setAddress(Q_UINT8 *ip6Addr);

Not yet implemented.

Q_IPV6ADDR toIPv6Address const();

Not yet implemented.


TQHttp (Qt v3+)

Q_LONG readBlock(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The data is returned if there was no error, otherwise None is returned.


TQHttpHeader (Qt v3.1+)

TQHttpHeader is fully implemented.


TQHttpRequestHeader (Qt v3.1+)

TQHttpRequestHeader is fully implemented.


TQHttpResponseHeader (Qt v3.1+)

TQHttpResponseHeader is fully implemented.


TQLocalFs (Qt v2.1+)

TQLocalFs is fully implemented.


TQServerSocket (Qt v2.2+)

TQServerSocket is fully implemented.


TQSocket (Qt v2.2+)

Q_LONG readBlock(char *data, Q_ULONG len);

This takes a single len parameter. The data is returned if there was no error, otherwise Py_None is returned.

Q_LONG readLine(char *data, Q_ULONG maxlen);

This takes a single maxlen parameter. The data is returned if there was no error, otherwise Py_None is returned.

Q_LONG writeBlock(const char *data, Q_ULONG len);

len is derived from data and not passed as a parameter.


TQSocketDevice (Qt v2.2+)

Q_LONG readBlock(char *data, Q_ULONG len);

This takes a single len parameter. The data is returned if there was no error, otherwise None is returned.

Q_LONG writeBlock(const char *data, Q_ULONG len);

len is derived from data and not passed as a parameter.


qtpe Module Reference

QPEApplication

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.

int exec();

This has been renamed to exec_loop in Python.


AppLnk

virtual TQString exec const();

This has been renamed to exec_property in Python.


AppLnkSet

AppLnkSet is fully implemented.


Config

Config is fully implemented.


DateFormat

DateFormat is fully implemented.


DocLnk

TQString exec const();

This has been renamed to exec_property in Python.


DocLnkSet

DocLnkSet is fully implemented.


FileManager

FileManager is fully implemented.


FileSelector

FileSelector is fully implemented.


FileSelectorItem

FileSelectorItem is fully implemented.


FontDatabase

FontDatabase is fully implemented.


Global

static void setBuiltinCommands(Command *);

Not implemented.


MenuButton

MenuButton is fully implemented.


QCopEnvelope

QCopEnvelope is fully implemented.


QDawg

QDawg is fully implemented.


QPEMenuBar

QPEMenuBar is fully implemented.


QPEToolBar

QPEToolBar is fully implemented.


Resource

Resource is fully implemented.


qtsql Module Reference

TQDataBrowser (Qt v3+)

virtual void del();

This has been renamed delOnCursor in Python.


TQDataTable (Qt v3+)

TQDataTable is fully implemented.


TQDataView (Qt v3+)

TQDataView is fully implemented.


TQEditorFactory (Qt v3+)

TQEditorFactory is fully implemented.


TQSql (Qt v3+)

TQSql is fully implemented.


TQSqlCursor (Qt v3+)

virtual int del(bool invalidate = TRUE);

This has been renamed delRecords in Python.

virtual int del(const TQString &filter, bool invalidate = TRUE);

This has been renamed delRecords in Python.

bool exec(const TQString &query);

This has been renamed execQuery in Python.


TQSqlDatabase (Qt v3+)

TQSqlQuery exec(const TQString &query = TQString::null);

This has been renamed execStatement in Python.


TQSqlDriver (Qt v3+)

TQSqlDriver is fully implemented.


TQSqlEditorFactory (Qt v3+)

TQSqlEditorFactory is fully implemented.


TQSqlError (Qt v3+)

TQSqlError is fully implemented.


TQSqlField (Qt v3+)

TQSqlField is fully implemented.


TQSqlFieldInfo (Qt v3+)

TQSqlFieldInfo is fully implemented.


TQSqlForm (Qt v3+)

TQSqlForm is fully implemented.


TQSqlIndex (Qt v3+)

TQSqlIndex is fully implemented.


TQSqlPropertyMap (Qt v3+)

TQSqlPropertyMap is fully implemented. However, because PyQt 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.


TQSqlQuery (Qt v3+)

TQMap<TQString,TQVariant> boundValues const();

Not yet implemented. (Qt v3.2.0+)

virtual bool exec(const TQString &query);

This has been renamed execQuery in Python.

bool exec();

This has been renamed execQuery in Python. (Qt v3.1+)


TQSqlRecord (Qt v3+)

TQSqlRecord is fully implemented.


TQSqlRecordInfo (Qt v3+)

TQSqlRecordInfo is implemented as a Python list of TQSqlFieldInfo instances.


TQSqlResult (Qt v3+)

TQSqlResult is fully implemented.


TQSqlSelectCursor (Qt v3.2.0+)

int del(bool invalidate = TRUE);

This has been renamed delRecords in Python.

bool exec(const TQString &query);

This has been renamed execQuery in Python.


qttable Module Reference

TQTable (Qt v2.2+)

TQTable is fully implemented.


TQTableItem (Qt v2.2+)

TQTableItem is fully implemented.


TQCheckTableItem (Qt v3+)

TQCheckTableItem is fully implemented.


TQComboTableItem (Qt v3+)

TQComboTableItem is fully implemented.


TQTableSelection (Qt v2.2+)

TQTableSelection is fully implemented.


qtui Module Reference

TQWidgetFactory (Qt v3+)

TQWidgetFactory is fully implemented.


qtxml Module Reference

TQDomImplementation (Qt v2.2+)

TQDomImplementation is fully implemented.


TQDomNode (Qt v2.2+)

TQDomNode is fully implemented, including the Python == and != operators.


TQDomNodeList (Qt v2.2+)

TQDomNodeList is fully implemented.


TQDomDocument (Qt v2.2+)

bool setContent(const TQCString &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer and namespaceProcessing parameters and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQByteArray &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer and namespaceProcessing parameters and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQString &text, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the text and namespaceProcessing parameters and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQIODevice *dev, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the dev and namespaceProcessing parameters and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQCString &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer parameter only and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQByteArray &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the buffer parameter only and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQString &text, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the text parameter only and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(const TQIODevice *dev, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

This takes the dev parameter only and returns a tuple containing the bool result and the errorMsg, errorLine and errorColumn values. (Qt v3+)

bool setContent(TQXmlInputSource *source, TQXmlReader *reader, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);

Not yet implemented. (Qt v3.2.0+)


TQDomDocumentFragment (Qt v2.2+)

TQDomDocumentFragment is fully implemented.


TQDomDocumentType (Qt v2.2+)

TQDomDocumentType is fully implemented.


TQDomNamedNodeMap (Qt v2.2+)

TQDomNamedNodeMap is fully implemented.


TQDomCharacterData (Qt v2.2+)

TQDomCharacterData is fully implemented.


TQDomAttr (Qt v2.2+)

TQDomAttr is fully implemented.


TQDomElement (Qt v2.2+)

TQDomElement is fully implemented.


TQDomText (Qt v2.2+)

TQDomText is fully implemented.


TQDomComment (Qt v2.2+)

TQDomComment is fully implemented.


TQDomCDATASection (Qt v2.2+)

TQDomCDATASection is fully implemented.


TQDomNotation (Qt v2.2+)

TQDomNotation is fully implemented.


TQDomEntity (Qt v2.2+)

TQDomEntity is fully implemented.


TQDomEntityReference (Qt v2.2+)

TQDomEntityReference is fully implemented.


TQDomProcessingInstruction (Qt v2.2+)

TQDomProcessingInstruction is fully implemented.