qt Module Reference

Qt Constants

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

Qt (Qt v2+)

Qt is fully implemented.

QAccel

QAccel is fully implemented.

QAction (Qt v2.2+)

QAction is fully implemented.

QActionGroup (Qt v2.2+)

QActionGroup is fully implemented.

QApplication

QApplication(int& argc, char **argv);

This takes one parameter which is a list of argument strings. Arguments used by Qt are removed from the list.

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

Not implemented.

QApplication(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.

QBitmap

QBitmap is fully implemented.

QBrush

QBrush is fully implemented.

QButton

QButton is fully implemented.

QButtonGroup

QButtonGroup is fully implemented.

QByteArray

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

QByteArray &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.

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

Not implemented.

QCDEStyle (Qt v2+)

QCDEStyle is fully implemented.

QCheckBox

QCheckBox 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).

QColor

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

This takes no parameters and returns the h, s and v 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, QWidget *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.

QColorGroup

QColorGroup is fully implemented.

QComboBox

QComboBox is fully implemented.

QCommonStyle (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 QTabBar *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)

QCString (Qt v2+)

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

QCString &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.

QCursor

QCursor is fully implemented.

QDataStream

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

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

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

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

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

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

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

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

QDate

int weekNumber(int *yearNum = 0);

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

QDateTime

QDateTime is fully implemented.

QTime

QTime is fully implemented.

QDateEdit (Qt v3+)

QDateEdit is fully implemented.

QTimeEdit (Qt v3+)

QTimeEdit is fully implemented.

QDateTimeEdit (Qt v3+)

QDateTimeEdit is fully implemented.

QDesktopWidget (Qt v3+)

QDesktopWidget is fully implemented.

QDial (Qt v2.2+)

QDial is fully implemented.

QDialog

int exec();

This has been renamed to exec_loop in Python.

QDir

QDir is fully implemented.

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 instances is used instead.

QDockArea (Qt v3+)

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

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

QDockWindow (Qt v3+)

QDockWindow is fully implemented.

QColorDrag (Qt v2.1+)

QColorDrag is fully implemented.

QDragObject

QDragObject is fully implemented.

QImageDrag

QImageDrag is fully implemented.

QStoredDrag

QStoredDrag is fully implemented.

QTextDrag

QTextDrag is fully implemented.

QUriDrag (Qt v2+)

QUriDrag is fully implemented.

QUrlDrag (Qt v1.x)

QUrlDrag is fully implemented.

QDropSite

QDropSite is fully implemented.

QErrorMessage (Qt v3+)

QErrorMessage is fully implemented.

QEvent

QEvent is fully implemented.

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

QChildEvent

QChildEvent is fully implemented.

QCloseEvent

QCloseEvent is fully implemented.

QContextMenuEvent (Qt v3+)

QContextMenuEvent is fully implemented.

QCustomEvent

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

QDragEnterEvent

QDragEnterEvent is fully implemented.

QDragLeaveEvent

QDragLeaveEvent is fully implemented.

QDragMoveEvent

QDragMoveEvent is fully implemented.

QDropEvent

QDropEvent is fully implemented.

QFocusEvent

QFocusEvent is fully implemented.

QHideEvent

QHideEvent is fully implemented.

QIMComposeEvent (Qt v3.1+)

QIMComposeEvent is fully implemented.

QIMEvent (Qt v3+)

QIMEvent is fully implemented.

QKeyEvent

QKeyEvent is fully implemented.

QMouseEvent

QMouseEvent is fully implemented.

QMoveEvent

QMoveEvent is fully implemented.

QPaintEvent

QPaintEvent is fully implemented.

QResizeEvent

QResizeEvent is fully implemented.

QShowEvent

QShowEvent is fully implemented.

QTabletEvent (Qt v3+)

QTabletEvent is fully implemented.

QTimerEvent

QTimerEvent is fully implemented.

QWheelEvent (Qt v2+)

QWheelEvent is fully implemented.

QEventLoop (Qt v3.1+)

virtual int exec();

This has been renamed to exec_loop in Python.

QFile

bool open(int m, FILE *f);

Not implemented.

int readBlock(char *data, uint len);

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

int readLine(char *data, uint 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+)

int writeBlock(const char *data, uint len);

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

QFileDialog

QFileDialog is fully implemented.

QFileIconProvider

QFileIconProvider is fully implemented.

QFilePreview

QFilePreview is fully implemented.

QFileInfo

QFileInfo is fully implemented.

QFont

QFont is fully implemented.

QFontDatabase (Qt v2.1+)

QFontDatabase is fully implemented.

QFontDialog (Qt v2+)

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

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

static QFont getFont(bool *ok, QWidget *parent = 0, const char *name = 0);

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

QFontInfo

QFontInfo is fully implemented.

QFontMetrics

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

The tabarray parameter is a Python list of integers.

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

The tabarray parameter is a Python list of integers.

QFrame

QFrame is fully implemented.

QGManager (Qt v1.x)

QGManager is fully implemented.

QChain (Qt v1.x)

QChain is implemented as an opaque class.

QGrid (Qt v2+)

QGrid is fully implemented.

QGridView (Qt v3+)

QGridView is fully implemented.

QGroupBox

QGroupBox is fully implemented.

QHBox (Qt v2+)

QHBox is fully implemented.

QHButtonGroup (Qt v2+)

QHButtonGroup is fully implemented.

QHeader

QHeader is fully implemented.

QHGroupBox (Qt v2+)

QHGroupBox is fully implemented.

QIconSet

QIconSet is fully implemented.

QIconFactory (Qt v3.1+)

QIconFactory is fully implemented.

QIconView (Qt v2.1+)

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

Not yet implemented.

QIconViewItem (Qt v2.1+)

QIconViewItem is fully implemented.

QIconDrag (Qt v2.1+)

QIconDrag is fully implemented.

QIconDragItem (Qt v2.1+)

QIconDragItem is fully implemented.

QImage

QImage(const char *xpm[]);

This takes a list of strings as its parameter.

QImage(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.

QImage 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.

QImageTextKeyLang

QImageTextKeyLang is fully implemented.

QInputDialog (Qt v2.1+)

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

The ok is not passed and the returned value is a tuple of the QString 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);

The ok is not passed and the returned value is a tuple of the QString 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);

The ok is not passed and the returned value is a tuple of the QString 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);

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

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

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

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

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

QInterlaceStyle (Qt v2.3.1+)

void scrollBarMetrics(const QTabBar *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.

QIODevice

QIODevice is fully implemented.

QKeySequence (Qt v3+)

QKeySequence is fully implemented including the operators QString() and int(). A QString instance or a Python integer may be used whenever a QKeySequence can be used.

QLabel

QLabel is fully implemented.

QLayout

QLayout is fully implemented.

QBoxLayout

QBoxLayout is fully implemented.

QGLayoutIterator (Qt v2+)

QGLayoutIterator is fully implemented.

QGridLayout

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

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

QHBoxLayout

QHBoxLayout is fully implemented.

QLayoutItem (Qt v2+)

QLayoutItem is fully implemented.

QLayoutIterator (Qt v2+)

QLayoutIterator is fully implemented.

QSpacerItem (Qt v2+)

QSpacerItem is fully implemented.

QVBoxLayout

QVBoxLayout is fully implemented.

QWidgetItem (Qt v2+)

QWidgetItem is fully implemented.

QLCDNumber

QLCDNumber is fully implemented.

QLibrary (Qt v3+)

QLibrary is fully implemented.

QLineEdit

int characterAt(int xpos, QChar *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.

QListBox

bool itemYPos(int index, int *yPos);

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

QListBoxItem

QListBoxItem is fully implemented.

QListBoxPixmap

QListBoxPixmap is fully implemented.

QListBoxText

QListBoxText is fully implemented.

QListView

QListView is fully implemented.

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

QListViewItem

QListViewItem is fully implemented.

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

QCheckListItem

QCheckListItem is fully implemented.

QMainWindow

QTextStream &operator<<<(QTextStream &, const QMainWindow &);

This operator is fully implemented. (Qt v3+)

QTextStream &operator>><(QTextStream &, QMainWindow &);

This operator is fully implemented. (Qt v3+)

bool getLocation(QToolBar *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<QToolBar> toolBars(ToolBarDock dock);

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

QMemArray<type> (Qt v3+)

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

QMenuBar

QMenuBar is fully implemented.

QMenuData

QMenuItem *findItem(int id, QMenuData **parent);

Not implemented.

QCustomMenuItem (Qt v2.1+)

QCustomMenuItem is fully implemented.

QMenuItem

QMenuItem is an internal Qt class.

QMessageBox

QMessageBox is fully implemented.

QMimeSource (Qt v2+)

QMimeSource is fully implemented.

QMimeSourceFactory (Qt v2+)

QMimeSourceFactory is fully implemented.

QWindowsMime (Qt v3+)

QWindowsMime is fully implemented.

QMotifPlusStyle (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 QScrollBar *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)

QMotifStyle (Qt v2+)

void scrollBarMetrics(const QTabBar *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 QTabBar *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)

QMovie

QMovie(QDataSource *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+)

QMultiLineEdit

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 line1, col1, line2 and col2 values.

QMutex (Qt v2.2+)

QMutex is fully implemented.

QMutexLocker (Qt v3.1+)

QMutexLocker is fully implemented.

QNetworkOperation (Qt v2.1+)

QNetworkOperation is fully implemented.

QNetworkProtocol (Qt v2.1+)

QNetworkProtocol is fully implemented.

QNetworkProtocolFactoryBase (Qt v2.1+)

QNetworkProtocolFactoryBase is fully implemented.

QObject

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

Not yet implemented.

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

Not yet implemented.

static bool disconnect(const QObject *sender, const char *signal, const QObject *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.

virtual QMetaObject *metaObject();

Not yet implemented.

QObjectCleanupHandler (Qt v3+)

QObjectCleanupHandler is fully implemented.

QObjectList

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

QPaintDeviceMetrics

QPaintDeviceMetrics is fully implemented.

QPaintDevice

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

Not implemented.

QPainter

QRect 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.

QRect boundingRect(const QRect&, 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, QRect *br = 0, char **intern = 0);

The intern parameter is not supported.

void drawText(const QRect&, int flags, const char *str, int len = -1, QRect *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.

QPalette

QPalette is fully implemented.

QPixmap

QPixmap(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.

QPixmapCache (Qt v3+)

QPixmapCache 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.

QPen

QPen is fully implemented.

QPicture

const char *data();

Not implemented.

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

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

QPlatinumStyle (Qt v2+)

void scrollBarMetrics(const QTabBar *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)

QPoint

QCOORD& rx();

Not implemented.

QCOORD& ry();

Not implemented.

QPointArray

QPointArray(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.

QPopupMenu

int exec();

This has been renamed exec_loop in Python.

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

This has been renamed exec_loop in Python.

QPrintDialog (X11)

QPrintDialog is fully implemented.

QPrinter

QPrinter is fully implemented.

QProcess (Qt v3+)

QProcess is fully implemented.

QProgressBar

QProgressBar is fully implemented.

QProgressDialog

QProgressDialog is fully implemented. value.

QPtrList<type> (Qt v3+)

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

QPushButton

QPushButton is fully implemented.

QRadioButton

QRadioButton is fully implemented.

QRangeControl

QRangeControl is fully implemented.

QRect

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

QRegExp

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 QString &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+)

QRegion

QArray<QRect> rects();

Not implemented.

void setRects(QRect *rects, int num);

Not yet implemented. (Qt v2.2+)

QScrollBar

QScrollBar is fully implemented.

QScrollView

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

QSemaphore (Qt v2.2+)

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

QSemiModal (Qt v1, v2)

QSemiModal is fully implemented.

QSessionManager (Qt v2+)

QSessionManager is fully implemented.

QSettings (Qt v3+)

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

Not implemented.

double readDoubleEntry(const QString &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.

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

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

QStringList readListEntry(const QString &key, bool *ok = 0);

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

QStringList readListEntry(const QString &key, const QChar &separator, bool *ok = 0);

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

int readNumEntry(const QString &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 QString &key, bool value);

Not implemented.

QSGIStyle (Qt v2.2+)

void scrollBarMetrics(const QScrollBar *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)

QSignalMapper

QSignalMapper is fully implemented.

QSimpleRichText (Qt v2+)

QSimpleRichText is fully implemented.

QSize

QCOORD& rheight();

Not implemented.

QCOORD& rwidth();

Not implemented.

QSizeGrip (Qt v2+)

QSizeGrip is fully implemented.

QSizePolicy (Qt v2+)

QSizePolicy is fully implemented.

QSlider

QSlider is fully implemented.

QSocketNotifier

QSocketNotifier is fully implemented.

QSound (Qt v2.2+)

QSound is fully implemented.

QSpinBox

virtual int mapTextToValue(bool *ok);

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

QSplitter

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

QStatusBar

QStatusBar is fully implemented.

QChar (Qt v2+)

uchar &cell const();

Not implemented.

uchar &row const();

Not implemented.

QString

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

QCharRef at(uint i);

Not yet implemented. (Qt v2+)

QChar constref const(uint i);

Not yet implemented. (Qt v2+)

QChar &ref(uint i);

Not yet implemented. (Qt v2+)

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

Not yet implemented. (Qt v2.1+)

QString &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.

QStringList (Qt v2+)

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

Iterator append(const QString &x);

This does not return a value.

Iterator prepend(const QString &x);

This does not return a value.

QStrList

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

QStyle (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 QScrollBar *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 QTabBar *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)

QStyleOption (Qt v3+)

QStyleOption is fully implemented.

QStyleSheet (Qt v2+)

QStyleSheet is fully implemented.

QStyleSheetItem (Qt v2+)

QStyleSheetItem is fully implemented.

QSyntaxHighlighter (Qt v3.1+)

QSyntaxHighlighter is fully implemented.

QTab

QTab is fully implemented.

QTabBar

QList<QTab> tabList();

This returns a list of QTab instances.

QTabDialog

QTabDialog 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.

QTabWidget (Qt v2+)

QTabWidget is fully implemented.

QTextBrowser (Qt v2+)

QTextBrowser is fully implemented.

QTextCodec (Qt v2+)

virtual QCString fromUnicode(const QString &uc, int &lenInOut);

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

QTextDecoder (Qt v2+)

QTextDecoder is fully implemented.

QTextEncoder (Qt v2+)

virtual QCString fromUnicode = 0(const QString &uc, int &lenInOut);

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

QTextEdit (Qt v3+)

int charAt(const QPoint &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 QString &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.

QTextStream

QTextStream(FILE *fp, int mode);

Not implemented.

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

Not yet implemented.

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

Not yet implemented.

QTextIStream (Qt v2+)

QTextIStream(FILE *fp, int mode);

Not implemented.

QTextOStream (Qt v2+)

QTextOStream(FILE *fp, int mode);

Not implemented.

QTextView (Qt v2+)

QTextView is fully implemented.

QThread (Qt v2.2+)

QThread is fully implemented.

QTimer

QTimer is fully implemented.

QToolBar

QToolBar is fully implemented.

QToolButton

QToolButton is fully implemented.

QToolTip

QToolTip is fully implemented.

QToolTipGroup

QToolTipGroup is fully implemented.

QTranslator (Qt v2+)

QTranslator is fully implemented.

QTranslatorMessage (Qt v2.2+)

QTranslatorMessage is fully implemented.

QUrl (Qt v2.1+)

QUrl is fully implemented.

QUrlInfo (Qt v2.1+)

QUrlInfo is fully implemented.

QUrlOperator (Qt v2.1+)

virtual bool isDir(bool *ok);

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

QValidator

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

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

QDoubleValidator

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

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

QIntValidator

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

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

QRegExpValidator (Qt v3+)

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

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

QValueList<type> (Qt v2+)

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

QVariant (Qt v2.1+)

QVariant(const char *val);

Not implemented.

QVariant(const QBitArray &val);

Not yet implemented. (Qt v3+)

QVariant(const QValueList<QVariant> &val);

Not yet implemented.

QVariant(const QMap<QString,QVariant> &val);

Not yet implemented.

QBitArray &asBitArray();

Not yet implemented. (Qt v3+)

bool &asBool();

Not implemented.

double &asDouble();

Not implemented.

int &asInt();

Not implemented.

QValueList<QVariant> &asList();

Not implemented.

QMap<QString,QVariant> &asMap();

Not implemented.

uint &asUInt();

Not implemented.

QValueListConstIterator<QVariant>listBegin const();

Not implemented.

QValueListConstIterator<QVariant>listEnd const();

Not implemented.

QMapConstIterator<QString,QVariant>mapBegin const();

Not implemented.

QMapConstIterator<QString,QVariant>mapEnd const();

Not implemented.

QMapConstIterator<QString,QVariant>mapFind const(const QString &key);

Not implemented.

QValueListConstIterator<QString>stringListBegin const();

Not implemented.

QValueListConstIterator<QString>stringListEnd const();

Not implemented.

const QBitArray toBitArray const();

Not yet implemented. (Qt v3+)

const QValueList<QVariant>toList const();

Not yet implemented.

const QMap<QString,QVariant>toMap const();

Not yet implemented.

QVBox (Qt v2+)

QVBox is fully implemented.

QVButtonGroup (Qt v2+)

QVButtonGroup is fully implemented.

QVGroupBox (Qt v2+)

QVGroupBox is fully implemented.

QWaitCondition (Qt v2.2+)

QWaitCondition is fully implemented.

QWhatsThis

QWhatsThis is fully implemented.

QWidget

QWExtra *extraData();

Not implemented.

QFocusData *focusData();

Not implemented.

void lower();

This has been renamed to lowerW in Python.

void raise();

This has been renamed to raiseW in Python.

QWidgetList

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

QWidgetStack

QWidgetStack is fully implemented.

QWindow

QWindow is fully implemented (Qt v1.x).

QWindowsStyle (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 QTabBar *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 QTabBar *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.

QWizard (Qt v2+)

QWizard is fully implemented.

QWMatrix

QWMatrix invert const(bool *invertible = 0);

This takes no parameters and returns a tuple of the QWMatrix 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+)

QWorkspace (Qt v2.1+)

QWorkspace is fully implemented.