From 479f5f799523bffbcc83dff581a2299c047c6fff Mon Sep 17 00:00:00 2001
From: tpearson Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode
support is implemented using the QStringTQString class. It is
important to understand that QStringTQStrings, Python string objects
and Python Unicode objects are all different but conversions between them are
automatic in many cases and easy to achieve manually when needed.class DebMainWindowFrm(QMainWindow):
+>class DebMainWindowFrm(TQMainWindow):
...stuff...
def browsePushButtonClicked(self):
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
Whenever PyQt expects a QStringTQString as a function argument, a Python string object or a Python Unicode object can be provided instead, and PyQt will do the necessary conversion automatically.
You may also manually convert Python string and Unicode objects to QStringTQStrings by using the QStringTQString constructor as demonstrated in the following code fragment.qs1 = QString('Converted Python string object') -qs2 = QString(u'Converted Python Unicode object')qs1 = TQString('Converted Python string object') +qs2 = TQString(u'Converted Python Unicode object') |
In order to convert a QStringTQString to a Python string object use the Python str() to a null QStringTQString and an empty QStringTQString both result in an empty Python string object.
In order to convert a QStringTQString to a Python Unicode object use the Python unicode() to a null QStringTQString and an empty QStringTQString both result in an empty Python Unicode object.
c = new QColor(); -c = new QColor();c = new TQColor(); +c = new TQColor();
c = QColor() -c = QColor()c = TQColor() +c = TQColor()
self.c1 = QColor() -self.c2 = QColor()self.c1 = TQColor() +self.c2 = TQColor()
So, in the following Python fragment, the first QLabelTQLabel is not destroyed when the second is assigned to because the parent QWidgetTQWidget still has a reference to it.
p = QWidget() -l = QLabel('First label',p) -l = QLabel('Second label',p)p = TQWidget() +l = TQLabel('First label',p) +l = TQLabel('Second label',p) |
tab = QTab() +>tab = TQTab() tab.label = "First Tab" -tab.r = QRect(10,10,75,30)
class A(QObject): +>class A(TQObject): def __init__(self): - QObject.__init__(self) + TQObject.__init__(self) def hello(self): return self.tr("Hello") @@ -1712,7 +1712,7 @@ CLASS="LITERAL" >The PyQt behaviour is unsatisfactory and may be changed in the future. It is recommended that QApplication.translate()TQApplication.translate() be used in preference to that uses QApplication.translate()TQApplication.translate().
class A(QObject): +>class A(TQObject): def __init__(self): - QObject.__init__(self) + TQObject.__init__(self) def hello(self): return qApp.translate("A","Hello")uses QApplication.translate()TQApplication.translate().A signal may be either a Qt signal (specified using SIGNAL()TQT_SIGNAL()) or a Python signal (specified using PYSIGNAL()PYQT_SIGNAL()). A slot can be either a Python callable object, a Qt signal (specified using SIGNAL()TQT_SIGNAL()), a Python signal (specified using PYSIGNAL()PYQT_SIGNAL()), or a Qt slot (specified using SLOT()TQT_SLOT()). You connect signals to slots (and other signals) as you would from C++. For @@ -1802,14 +1802,14 @@ WIDTH="100%" > | QObject.connect(a,SIGNAL("QtSig()"),pyFunction) -QObject.connect(a,SIGNAL("QtSig()"),pyClass.pyMethod) -QObject.connect(a,SIGNAL("QtSig()"),PYSIGNAL("PySig")) -QObject.connect(a,SIGNAL("QtSig()"),SLOT("QtSlot()")) -QObject.connect(a,PYSIGNAL("PySig"),pyFunction) -QObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod) -QObject.connect(a,PYSIGNAL("PySig"),SIGNAL("QtSig()")) -QObject.connect(a,PYSIGNAL("PySig"),SLOT("QtSlot()"))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()")) |
sbar = QScrollBar() -lcd = QLCDNumber() +>sbar = TQScrollBar() +lcd = TQLCDNumber() -QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display) -QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
Any instance of a class that is derived from the QObjectTQObject
class can emit a signal using the QObject::connect()TQObject::connect() is called from Python as
QObject.connect()TQObject.connect() or self.connect() if
called from a sub-class of QObjectTQObject.a.emit(SIGNAL("clicked()"),())
-a.emit(PYSIGNAL("pySig"),("Hello","World"))
a.emit(TQT_SIGNAL("clicked()"),())
+a.emit(PYQT_SIGNAL("pySig"),("Hello","World"))
QActionTQAction is fully implemented.
QActionGroupTQActionGroup is fully implemented.
QApplication
TQApplication(int &argc, char **argv);QApplication
TQApplication(int &argc, char **argv, bool GUIenabled);QApplication
TQApplication(int &argc, char **argv, Type type);QBitmapTQBitmapQBitmapTQBitmap is fully implemented.
QBrushTQBrush is fully implemented, including the Python QButtonTQButton
QButtonTQButton is fully implemented.
QButtonGroupTQButtonGroup is fully implemented.
A Python string can be used whenever a QByteArrayTQByteArray can be
used. A QByteArrayTQByteArray can be converted to a Python string
using the Python QByteArray &assign
TQByteArray &assign(const char *data, uint size);
QByteArray &setRawData
TQByteArray &setRawData(const char *data, uintsize);QCDEStyle (Qt v2+)TQCDEStyle (Qt v2+)QCDEStyleTQCDEStyle is fully implemented.
QCheckBoxTQCheckBox is fully implemented.
The Python static QRgb getRgba
(QRgb initial, bool *ok, QWidget *parent = 0, const char *name = 0);
(QRgb initial, bool *ok, TQWidget *parent = 0, const char *name = 0);
QColorGroupTQColorGroup
QColorGroupTQColorGroup is fully implemented.
QComboBoxTQComboBox is fully implemented.
virtual void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
QCString (Qt v2+)TQCString (Qt v2+)
A Python string can be used whenever a QCStringTQCString can be used.
A QCStringTQCString can be converted to a Python string using the
Python QCString &sprintf
TQCString &sprintf(const char *format, ...);
QCursorTQCursor is fully implemented.
QDataStream &readBytes
TQDataStream &readBytes(const char *&s, uint &l);This takes no parameters. The QDataStreamTQDataStream result and the data read are returned as a tuple.
QDataStream &readRawBytes
TQDataStream &readRawBytes(const char *s, uint l);QDataStream &writeBytes
TQDataStream &writeBytes(const char *s, uint len);QDataStream &writeRawBytes
TQDataStream &writeRawBytes(const char *s, uint len);The Python @@ -3026,12 +3026,12 @@ CLASS="SECT2" CLASS="SECT2" >QDateTimeTQDateTime
QDateTimeTQDateTime is fully implemented, including the Python QTimeTQTime
QTimeTQTime is fully implemented, including the Python QDesktopWidget (Qt v3+)TQDesktopWidget (Qt v3+)
QDesktopWidgetTQDesktopWidget is fully implemented.
QDialTQDial is fully implemented.
QDirTQDir is fully implemented, including the Python QFileInfoTQFileInfo instances is used instead.
bool hasDockWindow const
(QDockWindow *w, int *index = 0);(TQDockWindow *w, int *index = 0);
w parameter and returns the index of the -QDockWIndow or -1 if the QDockArea does not contain the QDockWindow.
QDockWindowTQDockWindow is fully implemented.
QColorDragTQColorDrag is fully implemented.
QDragObjectTQDragObject is fully implemented.
QImageDragTQImageDrag is fully implemented.
QStoredDragTQStoredDrag is fully implemented.
QTextDragTQTextDrag is fully implemented.
QUriDragTQUriDrag is fully implemented.
QDropSiteTQDropSite is fully implemented.
QErrorMessageTQErrorMessage is fully implemented.
QEventTQEvent is fully implemented.
Instances of QEventTQEvents are automatically converted to the correct sub-class.
QChildEventTQChildEvent is fully implemented.
QCloseEventTQCloseEvent is fully implemented.
QIconDragEventTQIconDragEvent is fully implemented.
QContextMenuEventTQContextMenuEvent is fully implemented.
QCustomEventTQCustomEvent is fully implemented. Any Python object can be passed as the event data and its reference count is increased.
QDragEnterEventTQDragEnterEvent is fully implemented.
QDragLeaveEventTQDragLeaveEvent is fully implemented.
QDragMoveEventTQDragMoveEvent is fully implemented.
QDropEventTQDropEvent is fully implemented.
QFocusEventTQFocusEvent is fully implemented.
QHideEventTQHideEvent is fully implemented.
QIMComposeEventTQIMComposeEvent is fully implemented.
QIMEventTQIMEvent is fully implemented.
QKeyEventTQKeyEvent is fully implemented.
QMouseEventTQMouseEvent is fully implemented.
QMoveEventTQMoveEvent is fully implemented.
QPaintEventTQPaintEvent is fully implemented.
QResizeEventTQResizeEvent is fully implemented.
QShowEventTQShowEvent is fully implemented.
QTabletEventTQTabletEvent is fully implemented.
QTimerEventTQTimerEvent is fully implemented.
QWheelEventTQWheelEvent is fully implemented.
QFileDialogTQFileDialog is fully implemented.
QFileIconProviderTQFileIconProvider is fully implemented.
QFilePreviewTQFilePreview is fully implemented. However it cannot be used from Python in the same way as it is used from C++ because PyQt does not support multiple inheritance involving more than one wrapped class. A trick @@ -3962,19 +3962,19 @@ WIDTH="100%" >
class FilePreview(QFilePreview): +>class FilePreview(TQFilePreview): pass -class Preview(QLabel): +class Preview(TQLabel): def __init__(self, parent=None): - QLabel.__init__(self, parent) + TQLabel.__init__(self, parent) self.preview = FilePreview() self.preview.previewUrl = self.previewUrl
Note that QFilePreview cannot be instantiated directly because it is abstract. +>Note that TQFilePreview cannot be instantiated directly because it is abstract. Thanks to Hans-Peter Jansen for this trick.
QFileInfoTQFileInfo is fully implemented.
QFontTQFont is fully implemented, including the Python QFontDatabase (Qt v2.1+)TQFontDatabase (Qt v2.1+)
QFontDatabaseTQFontDatabase is fully implemented.
static QFont getFont
(bool *ok, const QFont &def, QWidget *parent = 0, const char *name = 0);static TQFont getFont(bool *ok, const TQFont &def, TQWidget *parent = 0, const char *name = 0);
parameters and returns a tuple containing the
QFontTQFont result and the okstatic QFont getFont
(bool *ok, QWidget *parent = 0, const char *name = 0);
static TQFont getFont(bool *ok, TQWidget *parent = 0, const char *name = 0);
parameters and returns a tuple containing the QFontTQFont result and the QFontInfoTQFontInfo
QFontInfoTQFontInfo is fully implemented.
QRect boundingRect
(int x, int y, int w, int h, int flags, const QString &str, int len = -1, int tabstops = 0, int *tabarray = 0);TQRect boundingRect(int x, int y, int w, int h, int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);
QSize size
(int flags, const QString &str, int len = -1, int tabstops = 0, int *tabarray = 0);
TQSize size(int flags, const TQString &str, int len = -1, int tabstops = 0, int *tabarray = 0);
QFrameTQFrame
QFrameTQFrame is fully implemented.
QGridTQGrid is fully implemented.
QGridViewTQGridView is fully implemented.
QGroupBoxTQGroupBox is fully implemented.
QHBoxTQHBox is fully implemented.
QHButtonGroupTQHButtonGroup is fully implemented.
QHeaderTQHeader is fully implemented.
QHGroupBoxTQHGroupBox is fully implemented.
QIconSetTQIconSet is fully implemented.
QIconFactoryTQIconFactory is fully implemented.
QIconViewItem *makeRowLayout
(QIconViewItem *begin, int &y);TQIconViewItem *makeRowLayout(TQIconViewItem *begin, int &y);
QIconViewItem (Qt v2.1+)TQIconViewItem (Qt v2.1+)
QIconViewItemTQIconViewItem is fully implemented.
QIconDragTQIconDrag is fully implemented.
QIconDragItemTQIconDragItem is fully implemented.
The Python QImage
TQImage(const char *xpm[]);
QImage
TQImage(uchar *data, int w, int h, int depth, QRgb *colorTable, int numColors, Endian bitOrder);QImage convertDepthWithPalette
TQImage convertDepthWithPalette(int, QRgb *p, int pc, int cf = 0);QImageIOTQImageIOQImageTextKeyLangTQImageTextKeyLang is fully implemented.
static QString getText
(const QString &caption, const QString &label, const QString &text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);static TQString getText(const TQString &caption, const TQString &label, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of
the QStringTQString result and the okstatic QString getText
(const QString &caption, const QString &label, QLineEdit::EchoModeecho, const QString &text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
static TQString getText(const TQString &caption, const TQString &label, TQLineEdit::EchoModeecho, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of
the QStringTQString result and the okstatic QString getText
(const QString &caption, const QString &label, QLineEdit::EchoModeecho = QLineEdit::Normal, const QString &text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
static TQString getText(const TQString &caption, const TQString &label, TQLineEdit::EchoModeecho = TQLineEdit::Normal, const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of
the QStringTQString result and the okstatic int getInteger
(const QString &caption, const QString &label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
(const TQString &caption, const TQString &label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
static double getDouble
(const QString &caption, const QString &label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
(const TQString &caption, const TQString &label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
static QString getItem
(const QString &caption, const QString &label, const QStringList &list, int current = 0, bool editable = TRUE, bool *ok = 0, QWidget *parent = 0, const char *name = 0);
static TQString getItem(const TQString &caption, const TQString &label, const TQStringList &list, int current = 0, bool editable = TRUE, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);
is not passed and the returned value is a tuple of
the QStringTQString result and the okvoid scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
QIODeviceTQIODevice
QIODeviceTQIODevice is fully implemented.
QKeySequenceTQKeySequence is fully implemented including the operators !=, QString()TQString() and int(). A QStringTQString instance or a Python integer may be used whenever a QKeySequenceTQKeySequence can be used.
QLabelTQLabel is fully implemented.
QLayoutTQLayout is fully implemented.
QBoxLayoutTQBoxLayout is fully implemented.
QGLayoutIteratorTQGLayoutIterator is fully implemented.
bool findWidget
(QWidget *w, int *row, int *col);(TQWidget *w, int *row, int *col);
QHBoxLayoutTQHBoxLayout
QHBoxLayoutTQHBoxLayout is fully implemented.
QLayoutItemTQLayoutItem is fully implemented.
QLayoutItem *next
TQLayoutItem *next();This is a wrapper around the QLayoutIteratorTQLayoutIterator QSpacerItem (Qt v2+)TQSpacerItem (Qt v2+)
QSpacerItemTQSpacerItem is fully implemented.
QVBoxLayoutTQVBoxLayout is fully implemented.
QWidgetItemTQWidgetItem is fully implemented.
QLCDNumberTQLCDNumber is fully implemented.
QLibraryTQLibrary is fully implemented.
int characterAt
(int xpos, QChar *chr);(int xpos, TQChar *chr);
QListBoxTQListBox
QListBoxItemTQListBoxItem is fully implemented.
QListBoxPixmapTQListBoxPixmap is fully implemented.
QListBoxTextTQListBoxText is fully implemented.
QListViewTQListView is fully implemented.
Note that to remove a child QListViewItemTQListViewItem you must first call QListViewItemTQListViewItem
QListViewItemTQListViewItem is fully implemented.
Note that to remove a child QListViewItemTQListViewItem you must first call QCheckListItemTQCheckListItem
QCheckListItemTQCheckListItem is fully implemented.
QListViewItemIteratorTQListViewItemIterator is fully implemented.
QTextStream &operator<<
(QTextStream &, const QMainWindow &);TQTextStream &operator<<(TQTextStream &, const TQMainWindow &);
QTextStream &operator>>
(QTextStream &, QMainWindow &);
TQTextStream &operator>>(TQTextStream &, TQMainWindow &);
bool getLocation
(QToolBar *tb, ToolBarDock &dock, int &index, bool &nl, int &extraOffset);
(TQToolBar *tb, ToolBarDock &dock, int &index, bool &nl, int &extraOffset);
QList<QToolBar> toolBars
QList<TQToolBar> toolBars(ToolBarDock dock);
This returns a list of QToolBarTQToolBar instances. (Qt v2.1.0+)
Types based on the QMemArrayTQMemArray template are automatically converted to and from Python lists of the type.
QMenuBarTQMenuBar is fully implemented.
QMenuItem *findItem
(int id, QMenuData **parent);TQMenuItem *findItem(int id, TQMenuData **parent);
QCustomMenuItem (Qt v2.1+)TQCustomMenuItem (Qt v2.1+)
QCustomMenuItemTQCustomMenuItem is fully implemented.
QMenuItemTQMenuItem is an internal Qt class.
QMessageBoxTQMessageBox is fully implemented.
QMetaPropertyTQMetaProperty is fully implemented.
QMimeSourceTQMimeSource is fully implemented.
QMimeSourceFactoryTQMimeSourceFactory is fully implemented.
QWindowsMimeTQWindowsMime is fully implemented.
void scrollBarMetrics
(const QScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
QMotifStyle (Qt v2+)TQMotifStyle (Qt v2+)
void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);
(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
QMovieTQMovie
QMovie
(QDataSource *src, int bufsize = 1024);TQMovie(TQDataSource *src, int bufsize = 1024);
QMultiLineEditTQMultiLineEdit
QMutexTQMutex is fully implemented.
QMutexLockerTQMutexLocker is fully implemented.
QNetworkOperationTQNetworkOperation is fully implemented.
QNetworkProtocolTQNetworkProtocol is fully implemented.
QNetworkProtocolFactoryBaseTQNetworkProtocolFactoryBase is fully implemented.
bool disconnect
(const QObject *receiver, const char *member = 0);(const TQObject *receiver, const char *member = 0);
bool disconnect
(const char *signal = 0, const QObject *receiver = 0, const char *member = 0);
(const char *signal = 0, const TQObject *receiver = 0, const char *member = 0);
static bool disconnect
(const QObject *sender, const char *signal, const QObject *receiver, const char *member);
(const TQObject *sender, const char *signal, const TQObject *receiver, const char *member);
QObjectCleanupHandler (Qt v3+)TQObjectCleanupHandler (Qt v3+)
QObjectCleanupHandlerTQObjectCleanupHandler is fully implemented.
This class isn't implemented. Whenever a QObjectListTQObjectList is the return type of a function or the type of an argument, a Python list of QObjectTQObject instances is used instead.
QPaintDeviceMetricsTQPaintDeviceMetrics is fully implemented.
virtual bool cmd
(int, QPainter *, QPDevCmdParam *);(int, TQPainter *, QPDevCmdParam *);
QPainterTQPainter
QRect boundingRect
TQRect boundingRect(int x, int y, int w, int h, int flags, const char *str, int len = -1, char **intern = 0);QRect boundingRect
(const QRect&, int flags, const char *str, int len = -1, char **intern = 0);TQRect boundingRect(const TQRect&, int flags, const char *str, int len = -1, char **intern = 0);
void drawText
(int x, int y, int w, int h, int flags, const char *str, int len = -1, QRect *br = 0, char **intern = 0);
(int x, int y, int w, int h, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);
void drawText
(const QRect&, int flags, const char *str, int len = -1, QRect *br = 0, char **intern = 0);
(const TQRect&, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);
QPaletteTQPalette
QPaletteTQPalette is fully implemented, including the Python
QPixmapTQPixmapQPixmap
TQPixmap(const char *xpm[]);
QPixmapCacheTQPixmapCache is fully implemented.
QPenTQPen is fully implemented, including the Python
QPictureTQPicture (const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim); QPointTQPoint The Python
@@ -6680,7 +6680,7 @@ CLASS="SECT2"
CLASS="SECT2"
>QPointArrayTQPointArray (const TQPoint &pos, int indexAtPoint = 0); QPrintDialog (X11)TQPrintDialog (X11) QPrintDialogTQPrintDialog is fully implemented. QPrinterTQPrinter is fully implemented. QProcessTQProcess is fully implemented. QProgressBarTQProgressBar is fully implemented. QProgressDialogTQProgressDialog is fully implemented.
value.void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);QPointArray
TQPointArray(int nPoints, const QCOORD *points);int exec
(const QPoint &pos, int indexAtPoint = 0);
Types based on the QPtrListTQPtrList template are automatically converted to and from Python lists of the type.
QPushButtonTQPushButton is fully implemented.
QRadioButtonTQRadioButton is fully implemented.
QRangeControlTQRangeControl is fully implemented.
The Python @@ -7094,7 +7094,7 @@ CLASS="SECT2" CLASS="SECT2" >QRegExpTQRegExp
The Python int match
(const QString &str, int index = 0, int *len = 0);
(const TQString &str, int index = 0, int *len = 0);
QRegionTQRegion
The Python
@@ -7232,7 +7232,7 @@ NAME="AEN2719"
>QArray<QRect> rects
QArray<TQRect> rects();
void setRects
(QRect *rects, int num);(TQRect *rects, int num);
QScrollBarTQScrollBar
QScrollBarTQScrollBar is fully implemented.
QSemaphoreTQSemaphore is fully implemented. The +=QSemiModal (Qt v1, v2)TQSemiModal (Qt v1, v2)
QSemiModalTQSemiModal is fully implemented.
bool readBoolEntry
(const QString &key, bool def = 0, bool *ok = 0);(const TQString &key, bool def = 0, bool *ok = 0);
double readDoubleEntry
(const QString &key, double def = 0, bool *ok = 0);
(const TQString &key, double def = 0, bool *ok = 0);
QString readEntry
(const QString &key, const QString &def = QString::null, bool *ok = 0);
TQString readEntry(const TQString &key, const TQString &def = TQString::null, bool *ok = 0);
is not passed and the returned value is a tuple of
the QStringTQString result and the okQStringList readListEntry
(const QString &key, bool *ok = 0);
TQStringList readListEntry(const TQString &key, bool *ok = 0);
is not passed and the returned value is a tuple of
the QStringListTQStringList result and the okQStringList readListEntry
(const QString &key, const QChar &separator, bool *ok = 0);
TQStringList readListEntry(const TQString &key, const TQChar &separator, bool *ok = 0);
is not passed and the returned value is a tuple of
the QStringListTQStringList result and the okint readNumEntry
(const QString &key, int def = 0, bool *ok = 0);
(const TQString &key, int def = 0, bool *ok = 0);
bool writeEntry
(const QString &key, bool value);
(const TQString &key, bool value);
QSGIStyle (Qt v2.2+)TQSGIStyle (Qt v2.2+)
void scrollBarMetrics
(const QScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQScrollBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
QSignalMapperTQSignalMapper
QSignalMapperTQSignalMapper is fully implemented.
QSimpleRichTextTQSimpleRichText is fully implemented.
The Python @@ -7715,12 +7715,12 @@ CLASS="SECT2" CLASS="SECT2" >QSizeGrip (Qt v2+)TQSizeGrip (Qt v2+)
QSizeGripTQSizeGrip is fully implemented.
QSizePolicyTQSizePolicy is fully implemented.
QSliderTQSlider is fully implemented.
QSocketNotifierTQSocketNotifier is fully implemented.
QSoundTQSound is fully implemented.
QSplashScreenTQSplashScreen is fully implemented.
QStatusBarTQStatusBar is fully implemented.
A Python string object (or Unicode object) can be used whenever a
QStringTQString can be used. A QStringTQString can be
converted to a Python string object using the Python QCharRef at
TQCharRef at(uint i);
QChar constref const
TQChar constref const(uint i);QChar &ref
TQChar &ref(uint i);QString &setUnicodeCodes
TQString &setUnicodeCodes(const ushort *unicode_as_shorts, uint len);QString &sprintf
TQString &sprintf(const char *format, ...);QStringList (Qt v2+)TQStringList (Qt v2+)The Python Iterator append
(const QString &x);
(const TQString &x);
Iterator prepend
(const QString &x);
(const TQString &x);
QStrListTQStrList
This class isn't implemented. Whenever a QStrListTQStrList is the return type of a function or the type of an argument, a Python list of strings is used instead.
QStyle (Qt v2+)TQStyle (Qt v2+)virtual void scrollBarMetrics
(const QScrollBar *b, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQScrollBar *b, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
virtual void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);
(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
QStyleOption (Qt v3+)TQStyleOption (Qt v3+)
QStyleOptionTQStyleOption is fully implemented.
QStyleSheetTQStyleSheet is fully implemented.
QStyleSheetItemTQStyleSheetItem is fully implemented.
QSyntaxHighlighterTQSyntaxHighlighter is fully implemented.
QTabTQTab is fully implemented.
QList<QTab> tabList
QList<TQTab> tabList();This returns a list of QTabTQTab instances.
QTabDialogTQTabDialog is fully implemented.
QTabWidgetTQTabWidget is fully implemented.
QTextBrowserTQTextBrowser is fully implemented.
virtual QCString fromUnicode
(const QString &uc, int &lenInOut);virtual TQCString fromUnicode(const TQString &uc, int &lenInOut);
The returned value is a tuple of the QCStringTQCString result and the updated QTextDecoder (Qt v2+)TQTextDecoder (Qt v2+)
QTextDecoderTQTextDecoder is fully implemented.
virtual QCString fromUnicode = 0
(const QString &uc, int &lenInOut);virtual TQCString fromUnicode = 0(const TQString &uc, int &lenInOut);
The returned value is a tuple of the QCStringTQCString result and the
updated QTextEdit (Qt v3+)TQTextEdit (Qt v3+) (const TQPoint &pos, int *para = 0);int charAt
(const QPoint &pos, int *para = 0);
virtual bool find
(const QString &expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);
(const TQString &expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);
QTextStreamTQTextStream
QTextStream
TQTextStream(FILE *fp, int mode);QTextStream &readRawBytes
TQTextStream &readRawBytes(char *buf, uint len);QTextStream &writeRawBytes
TQTextStream &writeRawBytes(const char *buf, uint len);QTextIStream (Qt v2+)TQTextIStream (Qt v2+)QTextIStream
TQTextIStream(FILE *fp, int mode);QTextOStream
TQTextOStream(FILE *fp, int mode);QTextViewTQTextView is fully implemented.
QThreadTQThread is fully implemented.
QTimerTQTimer is fully implemented.
QToolBarTQToolBar is fully implemented.
QToolBoxTQToolBox is fully implemented.
QToolButtonTQToolButton is fully implemented.
QToolTipTQToolTip is fully implemented.
QToolTipGroupTQToolTipGroup is fully implemented.
QUrlTQUrl is fully implemented, including the QString()TQString(), ==QUrlInfo (Qt v2.1+)TQUrlInfo (Qt v2.1+)
QUrlInfoTQUrlInfo is fully implemented.
virtual State validate
(QString& input, int& pos);(TQString& input, int& pos);
QDoubleValidatorTQDoubleValidator
State validate
(QString& input, int& pos);(TQString& input, int& pos);
QIntValidatorTQIntValidator
State validate
(QString& input, int& pos);(TQString& input, int& pos);
QRegExpValidator (Qt v3+)TQRegExpValidator (Qt v3+)
virtual State validate
(QString& input, int& pos);(TQString& input, int& pos);
QValueList<type> (Qt v2+)TQValueList<type> (Qt v2+)
Types based on the QValueListTQValueList template are automatically converted to and from Python lists of the type.
QVariant
TQVariant(const char *val);QVariant
(const QBitArray &val);TQVariant(const TQBitArray &val);
QVariant
(const QValueList<QVariant> &val);
TQVariant(const TQValueList<TQVariant> &val);
QVariant
(const QMap<QString,QVariant> &val);
TQVariant(const TQMap<TQString,TQVariant> &val);
QBitArray &asBitArray
TQBitArray &asBitArray();
QValueList<QVariant> &asList
TQValueList<TQVariant> &asList();QMap<QString,QVariant> &asMap
TQMap<TQString,TQVariant> &asMap();QValueListConstIterator<QVariant>listBegin const
TQValueListConstIterator<TQVariant>listBegin const();QValueListConstIterator<QVariant>listEnd const
TQValueListConstIterator<TQVariant>listEnd const();QMapConstIterator<QString,QVariant>mapBegin const
TQMapConstIterator<TQString,TQVariant>mapBegin const();QMapConstIterator<QString,QVariant>mapEnd const
TQMapConstIterator<TQString,TQVariant>mapEnd const();QMapConstIterator<QString,QVariant>mapFind const
(const QString &key);TQMapConstIterator<TQString,TQVariant>mapFind const(const TQString &key);
QValueListConstIterator<QString>stringListBegin const
TQValueListConstIterator<TQString>stringListBegin const();
QValueListConstIterator<QString>stringListEnd const
TQValueListConstIterator<TQString>stringListEnd const();const QBitArray toBitArray const
const TQBitArray toBitArray const();const QValueList<QVariant>toList const
const TQValueList<TQVariant>toList const();const QMap<QString,QVariant>toMap const
const TQMap<TQString,TQVariant>toMap const();QVBox (Qt v2+)TQVBox (Qt v2+)QVBoxTQVBox is fully implemented.
QVButtonGroupTQVButtonGroup is fully implemented.
QVGroupBoxTQVGroupBox is fully implemented.
QWaitConditionTQWaitCondition is fully implemented.
QWhatsThisTQWhatsThis is fully implemented.
QFocusData *focusData
TQFocusData *focusData();This class isn't implemented. Whenever a QWidgetListTQWidgetList is the return type of a function or the type of an argument, a Python list of instances is used instead.
QWidgetStackTQWidgetStackQWidgetStackTQWidgetStack is fully implemented.
void scrollBarMetrics
(const QTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);(const TQTabBar *sb, int &sliderMin, int &sliderMax, int &sliderLength, int &buttonDim);
void tabbarMetrics
(const QTabBar *t, int &hframe, int &vframe, int &overlap);
(const TQTabBar *t, int &hframe, int &vframe, int &overlap);
QWizard (Qt v2+)TQWizard (Qt v2+)
QWizardTQWizard is fully implemented.
The Python QWMatrix invert const
TQWMatrix invert const(bool *invertible = 0);
This takes no parameters and returns a tuple of the QWMatrixTQWMatrix result and the QWorkspace (Qt v2.1+)TQWorkspace (Qt v2.1+)
QWorkspaceTQWorkspace is fully implemented.
unsigned long registerWeakActiveObject
(const QString &guid);(const TQString &guid);
QAxObject
(IUnknown *iface, QObject *parent = 0, const char *name = 0);
(IUnknown *iface, TQObject *parent = 0, const char *name = 0);
QAxWidget
(IUnknown *iface, QWidget *parent = 0, const char *name = 0);
(IUnknown *iface, TQWidget *parent = 0, const char *name = 0);
QCanvas (Qt v2.2+)TQCanvas (Qt v2.2+)
QCanvasTQCanvas is fully implemented.
QCanvasEllipseTQCanvasEllipse is fully implemented.
QCanvasItemTQCanvasItem is fully implemented.
This class isn't implemented. Whenever a QCanvasItemListTQCanvasItemList is the return type of a function or the type of an argument, a Python list of QCanvasItemTQCanvasItem instances is used instead.
QCanvasLineTQCanvasLine is fully implemented.
QCanvasPixmapTQCanvasPixmap is fully implemented.
QPixmapArray
(QList<QPixmap> pixmaps, QList<QPoint> hotspots);(QList<TQPixmap> pixmaps, QList<TQPoint> hotspots);
The pixmaps argument is a Python list of QPixmap instances,
+> argument is a Python list of TQPixmap instances,
and the hotspotsQPixmapArray
(QValueList<QPixmap> pixmaps, QPointArray hotspots = QPointArray());
(TQValueList<TQPixmap> pixmaps, TQPointArray hotspots = TQPointArray());
The pixmaps argument is a Python list of QPixmap instances. +> argument is a Python list of TQPixmap instances. (Qt v3+)
QCanvasPolygonTQCanvasPolygon is fully implemented.
QCanvasPolygonalItemTQCanvasPolygonalItem is fully implemented.
QCanvasRectangleTQCanvasRectangle is fully implemented.
QCanvasSplineTQCanvasSpline is fully implemented.
QCanvasSpriteTQCanvasSprite is fully implemented.
QCanvasTextTQCanvasText is fully implemented.
QCanvasViewTQCanvasView is fully implemented.
QGLTQGL is fully implemented.
QGLContextTQGLContext is fully implemented.
QGLFormatTQGLFormat is fully implemented.
QGLWidgetTQGLWidget is fully implemented.
QDnsTQDns is fully implemented.
QHostAddress
TQHostAddress(Q_UINT8 *ip6Addr);QHostAddress
TQHostAddress(const Q_IPV6ADDR &ip6Addr);QHttpHeaderTQHttpHeader is fully implemented.
QHttpRequestHeaderTQHttpRequestHeader is fully implemented.
QHttpResponseHeaderTQHttpResponseHeader is fully implemented.
QLocalFsTQLocalFs is fully implemented.
QServerSocketTQServerSocket is fully implemented.
QApplication
TQApplication(int& argc, char **argv, Type type);virtual QString exec const
virtual TQString exec const();QString exec const
TQString exec const();QDataTableTQDataTable is fully implemented.
QDataViewTQDataView is fully implemented.
QEditorFactoryTQEditorFactory is fully implemented.
QSqlTQSql is fully implemented.
virtual int del
(const QString &filter, bool invalidate = TRUE);(const TQString &filter, bool invalidate = TRUE);
bool exec
(const QString &query);
(const TQString &query);
QSqlDatabase (Qt v3+)TQSqlDatabase (Qt v3+)
QSqlQuery exec
(const QString &query = QString::null);TQSqlQuery exec(const TQString &query = TQString::null);
QSqlDriver (Qt v3+)TQSqlDriver (Qt v3+)
QSqlDriverTQSqlDriver is fully implemented.
QSqlEditorFactoryTQSqlEditorFactory is fully implemented.
QSqlErrorTQSqlError is fully implemented.
QSqlFieldTQSqlField is fully implemented.
QSqlFieldInfoTQSqlFieldInfo is fully implemented.
QSqlFormTQSqlForm is fully implemented.
QSqlIndexTQSqlIndex is fully implemented.
QSqlPropertyMapTQSqlPropertyMap 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 @@ -12038,7 +12038,7 @@ CLASS="SECT2" CLASS="SECT2" >QSqlQuery (Qt v3+)TQSqlQuery (Qt v3+)
QMap<QString,QVariant> boundValues const
TQMap<TQString,TQVariant> boundValues const();virtual bool exec
(const QString &query);(const TQString &query);
QSqlRecord (Qt v3+)TQSqlRecord (Qt v3+)
QSqlRecordTQSqlRecord is fully implemented.
QSqlRecordInfoTQSqlRecordInfo is implemented as a Python list of QSqlFieldInfoTQSqlFieldInfo instances.
QSqlResultTQSqlResult is fully implemented.
bool exec
(const QString &query);(const TQString &query);
QTable (Qt v2.2+)TQTable (Qt v2.2+)
QTableTQTable is fully implemented.
QTableItemTQTableItem is fully implemented.
QCheckTableItemTQCheckTableItem is fully implemented.
QComboTableItemTQComboTableItem is fully implemented.
QTableSelectionTQTableSelection is fully implemented.
QWidgetFactoryTQWidgetFactory is fully implemented.
QDomImplementation (Qt v2.2+)TQDomImplementation (Qt v2.2+)QDomImplementationTQDomImplementation is fully implemented.
QDomNodeTQDomNode is fully implemented, including the Python QDomNodeList (Qt v2.2+)TQDomNodeList (Qt v2.2+)
QDomNodeListTQDomNodeList is fully implemented.
bool setContent
(const QCString &buffer, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);(const TQCString &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QByteArray &buffer, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQByteArray &buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QString &text, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQString &text, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QIODevice *dev, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQIODevice *dev, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QCString &buffer, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQCString &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QByteArray &buffer, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQByteArray &buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QString &text, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQString &text, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(const QIODevice *dev, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(const TQIODevice *dev, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
bool setContent
(QXmlInputSource *source, QXmlReader *reader, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
(TQXmlInputSource *source, TQXmlReader *reader, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);
QDomDocumentFragment (Qt v2.2+)TQDomDocumentFragment (Qt v2.2+)
QDomDocumentFragmentTQDomDocumentFragment is fully implemented.
QDomDocumentTypeTQDomDocumentType is fully implemented.
QDomNamedNodeMapTQDomNamedNodeMap is fully implemented.
QDomCharacterDataTQDomCharacterData is fully implemented.
QDomAttrTQDomAttr is fully implemented.
QDomElementTQDomElement is fully implemented.
QDomTextTQDomText is fully implemented.
QDomCommentTQDomComment is fully implemented.
QDomCDATASectionTQDomCDATASection is fully implemented.
QDomNotationTQDomNotation is fully implemented.
QDomEntityTQDomEntity is fully implemented.
QDomEntityReferenceTQDomEntityReference is fully implemented.
QDomProcessingInstructionTQDomProcessingInstruction is fully implemented.