Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1881

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /home/gvatteka/dev/qt-4.3/doc/src/porting4.qdoc -->
<head>
  <title>Porting to Qt 4</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 align="center">Porting to Qt 4<br /><small></small></h1>
<p>This document describes the process of porting applications from Qt 3 to Qt 4. If you haven't yet made the decision about porting, or are unsure about whether it is worth it, take a look at the <a href="qt4-intro.html">key features</tt></a> offered by Qt 4. See also <a href="porting4-overview.html">Moving from Qt 3 to Qt 4</tt></a> for tips on how to write Qt 3 code that is easy to port to Qt 4.</p>
<p>The Qt 4 series is not binary compatible with the 3 series. This means programs compiled for Qt 3 must be recompiled to work with Qt 4. Qt 4 is also not completely <i>source</i> compatible with 3, however nearly all points of incompatibility cause compiler errors or run-time messages (rather than mysterious results). Qt 4 includes many additional features and discards obsolete functionality. Porting from Qt 3 to Qt 4 requires some effort, but once completed the considerable additional power and flexibility of Qt 4 is available for use in your applications.</p>
<p>To port code from Qt 3 to Qt 4:</p>
<ol type="1">
<li>Briefly read the porting notes below to get an idea of what to expect.</li>
<li>Be sure that your code compiles and runs well on all your target platforms with Qt 3.</li>
<li>Add the line <tt>QT += qt3support</tt> to your <tt>.pro</tt> file if you use <tt>qmake</tt>; otherwise, edit your makefile or project file to link against the Qt3Support library and add <tt>-DQT3_SUPPORT</tt> to your compiler flags. (You might also need to specify other libraries. See <a href="qt4-intro.html">What's New in Qt 4</tt></a> for details.)</li>
<li>Run the <a href="qt3to4.html#qt3to4"><tt>qt3to4</tt></a> porting tool. The tool will go through your source code and adapt it to Qt 4.</li>
<li>Follow the instructions in the <a href="porting4-designer.html">Porting .ui Files to Qt 4</tt></a> page to port Qt Designer files.</li>
<li>Recompile with Qt 4. For each error, search below for related identifiers (e.g&#x2e;, function names, class names). This document mentions all relevant identifiers to help you get the information you need at the cost of being a little verbose.</li>
</ol>
<p>The <a href="qt3to4.html#qt3to4"><tt>qt3to4</tt></a> porting tool replaces occurrences of Qt 3 classes that don't exist anymore in Qt 4 with the corresponding Qt 3 support class; for example, <tt>QListBox</tt> is turned into <tt>Q3ListBox</tt>.</p>
<p>At some point, you might want to stop linking against the Qt 3 support library (<tt>Qt3Support</tt>) and take advantage of Qt 4's new features. The instructions below explain how to do that for each compatibility class.</p>
<p>In addition to the Qt3Support classes (such as <tt>Q3Action</tt>, <tt>Q3ListBox</tt>, and <tt>Q3ValueList</tt>), Qt 4 provides compatibility functions when it's possible for an old API to cohabit with the new one. For example, <a href="porting4.html#qstring"><tt>QString</tt></a> provides a QString::simplifyWhiteSpace() compatibility function that's implemented inline and that simply calls QString::simplified(). <b>The compatibility functions are not documented here; instead, they are documented for each class.</b></p>
<p>If you have the line <tt>QT += qt3support</tt> in your <tt>.pro</tt> file, <tt>qmake</tt> will automatically define the <tt>QT3_SUPPORT</tt> symbol, turning on compatibility function support. You can also define the symbol manually (e.g&#x2e;, if you don't want to link against the <tt>Qt3Support</tt> library), or you can define <tt>QT3_SUPPORT_WARNINGS</tt> instead, telling the compiler to emit a warning when a compatibility function is called. (This works only with GCC 3.2+ and MSVC 7.)</p>
<p>If you get stuck, ask on the <a href="http://lists.trolltech.com/qt-interest/">qt-interest</tt></a> mailing list. If you are a licensed customer, you can also contact Trolltech support.</p>
<p>Table of contents:</p>
<p><table width="100%">
<tr valign="top"><td width="25%">
<ul><li><a href="#casting-and-object-types">Casting and Object Types</a></li>
<li><a href="#type-names">Type Names</a></li>
<li><a href="#enum-values">Enum Values</a></li>
<li><a href="#properties">Properties</a></li>
<li><a href="#explicit-sharing">Explicit Sharing</a></li>
<li><a href="#painting-and-redrawing-widgets">Painting and Redrawing Widgets</a></li>
<li><a href="#qaccel">QAccel</a></li>
<li><a href="#qaccessibleinterface">QAccessibleInterface</a></li>
<li><a href="#qaccessibletitlebar">QAccessibleTitleBar</a></li>
<li><a href="#qaction">QAction</a></li>
<li><a href="#qactiongroup">QActionGroup</a></li>
<li><a href="#qapplication">QApplication</a></li>
<li><a href="#qaquastyle">QAquaStyle</a></li>
<li><a href="#qasciicache-t">QAsciiCache&lt;T&gt;</a></li>
<li><a href="#qasciidict-t">QAsciiDict&lt;T&gt;</a></li>
<li><a href="#qasyncio">QAsyncIO</a></li>
<li><a href="#qbackinsertiterator">QBackInsertIterator</a></li>
<li><a href="#qbitarray">QBitArray</a></li>
<li><a href="#qbutton">QButton</a></li>
<li><a href="#qbuttongroup">QButtonGroup</a></li>
<li><a href="#qbytearray">QByteArray</a></li>
<li><a href="#qcache-t">QCache&lt;T&gt;</a></li>
<li><a href="#qcanvas">QCanvas</a></li>
<li><a href="#qcolor">QColor</a></li>
<li><a href="#qcolorgroup">QColorGroup</a></li>
<li><a href="#qcolordrag">QColorDrag</a></li>
<li><a href="#qcombobox">QComboBox</a></li>
<li><a href="#qcstring">QCString</a></li>
<li><a href="#qcustomevent">QCustomEvent</a></li>
<li><a href="#qdatabrowser">QDataBrowser</a></li>
<li><a href="#qdatapump">QDataPump</a></li>
<li><a href="#qdatasink">QDataSink</a></li>
<li><a href="#qdatasource">QDataSource</a></li>
<li><a href="#qdatatable">QDataTable</a></li>
<li><a href="#qdataview">QDataView</a></li>
<li><a href="#qdateedit">QDateEdit</a></li>
<li><a href="#qdatetimeeditbase">QDateTimeEditBase</a></li>
<li><a href="#qdatetimeedit">QDateTimeEdit</a></li>
<li><a href="#qdeepcopy-t">QDeepCopy&lt;T&gt;</a></li>
<li><a href="#qdial">QDial</a></li>
<li><a href="#qdict-t">QDict&lt;T&gt;</a></li>
<li><a href="#qdir">QDir</a></li>
<li><a href="#qdns">QDns</a></li>
<li><a href="#qdockarea">QDockArea</a></li>
<li><a href="#qdockwindow">QDockWindow</a></li>
</ul></td><td width="25%"><ul>
<li><a href="#qdragobject">QDragObject</a></li>
<li><a href="#qdropsite">QDropSite</a></li>
<li><a href="#qeditorfactory">QEditorFactory</a></li>
<li><a href="#qeventloop">QEventLoop</a></li>
<li><a href="#qfiledialog">QFileDialog</a></li>
<li><a href="#qfocusdata">QFocusData</a></li>
<li><a href="#qfocusevent">QFocusEvent</a></li>
<li><a href="#qfont">QFont</a></li>
<li><a href="#qframe">QFrame</a></li>
<li><a href="#qftp">QFtp</a></li>
<li><a href="#qglayoutiterator">QGLayoutIterator</a></li>
<li><a href="#qgrid">QGrid</a></li>
<li><a href="#qgridlayout">QGridLayout</a></li>
<li><a href="#qgridview">QGridView</a></li>
<li><a href="#qgroupbox">QGroupBox</a></li>
<li><a href="#qhbox">QHBox</a></li>
<li><a href="#qheader">QHeader</a></li>
<li><a href="#qhgroupbox">QHGroupBox</a></li>
<li><a href="#qhttp">QHttp</a></li>
<li><a href="#qiconfactory">QIconFactory</a></li>
<li><a href="#qiconset">QIconSet</a></li>
<li><a href="#qiconview">QIconView</a></li>
<li><a href="#qimagedrag">QImageDrag</a></li>
<li><a href="#qimageio">QImageIO</a></li>
<li><a href="#qintcache-t">QIntCache&lt;T&gt;</a></li>
<li><a href="#qintdict-t">QIntDict&lt;T&gt;</a></li>
<li><a href="#qiodevice">QIODevice</a></li>
<li><a href="#qiodevicesource">QIODeviceSource</a></li>
<li><a href="#qlabel">QLabel</a></li>
<li><a href="#qlayout">QLayout</a></li>
<li><a href="#qlayoutiterator">QLayoutIterator</a></li>
<li><a href="#qlineedit">QLineEdit</a></li>
<li><a href="#qlistbox">QListBox</a></li>
<li><a href="#qlistview">QListView</a></li>
<li><a href="#qlocalfs">QLocalFs</a></li>
<li><a href="#qmainwindow">QMainWindow</a></li>
<li><a href="#qmemarray-t">QMemArray&lt;T&gt;</a></li>
<li><a href="#qmenubar">QMenuBar</a></li>
<li><a href="#qmenudata">QMenuData</a></li>
<li><a href="#qmessagebox">QMessageBox</a></li>
<li><a href="#qmimesourcefactory">QMimeSourceFactory</a></li>
<li><a href="#qmovie">QMovie</a></li>
<li><a href="#qmultilineedit">QMultiLineEdit</a></li>
<li><a href="#qnetworkprotocol">QNetworkProtocol</a></li>
<li><a href="#qobject">QObject</a></li>
</ul></td><td width="25%"><ul>
<li><a href="#qobjectdictionary">QObjectDictionary</a></li>
<li><a href="#qobjectlist">QObjectList</a></li>
<li><a href="#qpaintdevice">QPaintDevice</a></li>
<li><a href="#qpaintdevicemetrics">QPaintDeviceMetrics</a></li>
<li><a href="#qpainter">QPainter</a></li>
<li><a href="#qpicture">QPicture</a></li>
<li><a href="#qpixmap">QPixmap</a></li>
<li><a href="#qpointarray">QPointArray</a></li>
<li><a href="#qpopupmenu">QPopupMenu</a></li>
<li><a href="#qprinter">QPrinter</a></li>
<li><a href="#qprocess">QProcess</a></li>
<li><a href="#qprogressbar">QProgressBar</a></li>
<li><a href="#qprogressdialog">QProgressDialog</a></li>
<li><a href="#qptrcollection-t">QPtrCollection&lt;T&gt;</a></li>
<li><a href="#qptrdict-t">QPtrDict&lt;T&gt;</a></li>
<li><a href="#qptrlist-t">QPtrList&lt;T&gt;</a></li>
<li><a href="#qptrqueue-t">QPtrQueue&lt;T&gt;</a></li>
<li><a href="#qptrstack-t">QPtrStack&lt;T&gt;</a></li>
<li><a href="#qptrvector-t">QPtrVector&lt;T&gt;</a></li>
<li><a href="#qpushbutton">QPushButton</a></li>
<li><a href="#qrangecontrol">QRangeControl</a></li>
<li><a href="#qregexp">QRegExp</a></li>
<li><a href="#qregion">QRegion</a></li>
<li><a href="#qscrollbar">QScrollBar</a></li>
<li><a href="#qscrollview">QScrollView</a></li>
<li><a href="#qserversocket">QServerSocket</a></li>
<li><a href="#qsettings">QSettings</a></li>
<li><a href="#qshared">QShared</a></li>
<li><a href="#qsignal">QSignal</a></li>
<li><a href="#qsimplerichtext">QSimpleRichText</a></li>
<li><a href="#qslider">QSlider</a></li>
<li><a href="#qsocket">QSocket</a></li>
<li><a href="#qsocketdevice">QSocketDevice</a></li>
<li><a href="#qsortedlist">QSortedList</a></li>
<li><a href="#qsplitter">QSplitter</a></li>
<li><a href="#qspinbox">QSpinBox</a></li>
<li><a href="#qsqlcursor">QSqlCursor</a></li>
<li><a href="#qsqldatabase">QSqlDatabase</a></li>
<li><a href="#qsqleditorfactory">QSqlEditorFactory</a></li>
<li><a href="#qsqlerror">QSqlError</a></li>
<li><a href="#qsqlfieldinfo">QSqlFieldInfo</a></li>
<li><a href="#qsqlform">QSqlForm</a></li>
<li><a href="#qsqlpropertymap">QSqlPropertyMap</a></li>
<li><a href="#qsqlquery">QSqlQuery</a></li>
<li><a href="#qsqlrecord">QSqlRecord</a></li>
</ul></td><td width="25%"><ul>
<li><a href="#qsqlrecordinfo">QSqlRecordInfo</a></li>
<li><a href="#qsqlselectcursor">QSqlSelectCursor</a></li>
<li><a href="#qstoreddrag">QStoredDrag</a></li>
<li><a href="#qstr-i-list">QStr(I)List</a></li>
<li><a href="#qstr-i-vec">QStr(I)Vec</a></li>
<li><a href="#qstring">QString</a></li>
<li><a href="#qstringlist">QStringList</a></li>
<li><a href="#qstyle">QStyle</a></li>
<li><a href="#qstylesheet">QStyleSheet</a></li>
<li><a href="#qsyntaxhighlighter">QSyntaxHighlighter</a></li>
<li><a href="#qtabbar">QTabBar</a></li>
<li><a href="#qtabdialog">QTabDialog</a></li>
<li><a href="#qtabwidget">QTabWidget</a></li>
<li><a href="#qtable">QTable</a></li>
<li><a href="#qtextdrag">QTextDrag</a></li>
<li><a href="#qtextedit">QTextEdit</a></li>
<li><a href="#qtextistream">QTextIStream</a></li>
<li><a href="#qtextostream">QTextOStream</a></li>
<li><a href="#qtextostreamiterator">QTextOStreamIterator</a></li>
<li><a href="#qtextstream">QTextStream</a></li>
<li><a href="#qtextview">QTextView</a></li>
<li><a href="#qtimeedit">QTimeEdit</a></li>
<li><a href="#qtimer">QTimer</a></li>
<li><a href="#qtoolbar">QToolBar</a></li>
<li><a href="#qtoolbutton">QToolButton</a></li>
<li><a href="#qtooltip">QToolTip</a></li>
<li><a href="#quridrag">QUriDrag</a></li>
<li><a href="#qurl">QUrl</a></li>
<li><a href="#qurloperator">QUrlOperator</a></li>
<li><a href="#qvaluelist-t">QValueList&lt;T&gt;</a></li>
<li><a href="#qvaluevector-t">QValueVector&lt;T&gt;</a></li>
<li><a href="#qvariant">QVariant</a></li>
<li><a href="#qvbox">QVBox</a></li>
<li><a href="#qvgroupbox">QVGroupBox</a></li>
<li><a href="#qwhatsthis">QWhatsThis</a></li>
<li><a href="#qwidget">QWidget</a></li>
<li><a href="#qwidgetfactory">QWidgetFactory</a></li>
<li><a href="#qwidgetintdict">QWidgetIntDict</a></li>
<li><a href="#qwidgetlist">QWidgetList</a></li>
<li><a href="#qwidgetplugin">QWidgetPlugin</a></li>
<li><a href="#qwidgetstack">QWidgetStack</a></li>
<li><a href="#qwizard">QWizard</a></li>
<li><a href="#qworkspace">QWorkspace</a></li>
<li><a href="#virtual-functions">Virtual Functions</a></li>
</ul>
</td></tr></table></p>
<a name="casting-and-object-types"></a>
<h2>Casting and Object Types</h2>
<p>In Qt 3, it was possible to use the <tt>qt_cast()</tt> function to determine whether instances of <a href="core/QObject.html"><tt>QObject</tt></a> subclasses could be safely cast to derived types of those subclasses. For example, if a <a href="gui/QFrame.html"><tt>QFrame</tt></a> instance is passed to a function whose signature specifies a <a href="gui/QWidget.html"><tt>QWidget</tt></a> pointer as its argument, <tt>qt_cast()</tt> could be used to obtain a <a href="gui/QFrame.html"><tt>QFrame</tt></a> pointer so that the instance's functions can be accessed.</p>
<p>In Qt 4, much of this functionality is provided by the qobject_cast() function, and additional functions also provide similar functionality for certain non-<a href="core/QObject.html"><tt>QObject</tt></a> types:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 function</th><th>Qt 4 function</th></tr></thead>
<tr valign="top" class="odd"><td>T *qt_cast&lt;T *&gt;(<a href="core/QObject.html"><tt>QObject</tt></a> *)</td><td>T *</tt>qobject_cast&lt;T *&gt;(</tt>QObject *)</tt></td></tr>
<tr valign="top" class="even"><td></td><td>T </tt>qgraphicsitem_cast&lt;T&gt;(</tt>QGraphicsItem *)</tt></td></tr>
<tr valign="top" class="odd"><td></td><td>T </tt>qstyleoption_cast&lt;T&gt;(</tt>QStyleOption *)</tt></td></tr>
<tr valign="top" class="even"><td></td><td>T </tt>qvariant_cast&lt;T&gt;(const </tt>QVariant &amp;)</tt></td></tr>
<tr valign="top" class="odd"><td></td><td>T </tt>qdbus_cast(const </tt>QDBusArgument &amp;)</tt></td></tr>
</table></p>
<a name="type-names"></a>
<h2>Type Names</h2>
<p>The table below lists the classes that have been renamed in Qt 4. If you compile your applications with <tt>QT3_SUPPORT</tt> defined, the old names will be available.</p>
<p>Whenever you see an occurrence of the name on the left, you can safely replace it with the Qt 4 equivalent in your program. The <a href="qt3to4.html#qt3to4"><tt>qt3to4</tt></a> tool performs the conversion automatically.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 class name</th><th>Qt 4 class name</th></tr></thead>
<tr valign="top" class="odd"><td><a href="porting4.html#qiconset"><tt>QIconSet</tt></a></td><td><a href="gui/QIcon.html"><tt>QIcon</tt></a></td></tr>
<tr valign="top" class="even"><td>QWMatrix</td><td><a href="gui/QMatrix.html"><tt>QMatrix</tt></a></td></tr>
<tr valign="top" class="odd"><td>QGuardedPtr</td><td>QPointer</td></tr>
</table></p>
<p>The table below lists the enums and typedefs that have been renamed in Qt 4. If you compile your applications with <tt>QT3_SUPPORT</tt> defined, the old names will be available.</p>
<p>Whenever you see an occurrence of the name on the left, you can safely replace it with the Qt 4 equivalent in your program. The <a href="qt3to4.html#qt3to4"><tt>qt3to4</tt></a> tool performs the conversion automatically.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 type name</th><th>Qt 4 type name</th></tr></thead>
<tr valign="top" class="odd"><td>QApplication::ColorMode</td><td>QApplication::ColorSpec</td></tr>
<tr valign="top" class="even"><td>QButton::ToggleState</td><td>QCheckBox::ToggleState</td></tr>
<tr valign="top" class="odd"><td>QCursorShape</td><td>Qt::CursorShape</td></tr>
<tr valign="top" class="even"><td>QFile::FilterSpec</td><td>QFile::Filters</td></tr>
<tr valign="top" class="odd"><td>QFile::PermissionSpec</td><td>QFile::Permission</td></tr>
<tr valign="top" class="even"><td>QFile::SortSpec</td><td>QFile::SortFlags</td></tr>
<tr valign="top" class="odd"><td>QFile::Status</td><td>QFile::Error</td></tr>
<tr valign="top" class="even"><td>QFileInfo::PermissionSpec</td><td>QFile::Permission</td></tr>
<tr valign="top" class="odd"><td>QGrid::Direction</td><td>Qt::Orientation</td></tr>
<tr valign="top" class="even"><td>QGridWidget::Direction</td><td>Qt::Orientation</td></tr>
<tr valign="top" class="odd"><td>QIODevice::Offset</td><td>qlonglong</td></tr>
<tr valign="top" class="even"><td>QImage::ScaleMode</td><td>Qt::AspectRatioMode</td></tr>
<tr valign="top" class="odd"><td>QSize::ScaleMode</td><td>Qt::AspectRatioMode</td></tr>
<tr valign="top" class="even"><td>QSocket::Error</td><td>Q3Socket::Error</td></tr>
<tr valign="top" class="odd"><td>QSocket::State</td><td>Q3Socket::State</td></tr>
<tr valign="top" class="even"><td>QStyle::SCFlags</td><td>QStyle::SubControls</td></tr>
<tr valign="top" class="odd"><td>QStyle::SFlags</td><td>QStyle::State</td></tr>
<tr valign="top" class="even"><td>QTS</td><td><a href="core/QTextStream.html"><tt>QTextStream</tt></a></td></tr>
<tr valign="top" class="odd"><td>QUrlDrag</td><td><a href="porting4.html#quridrag"><tt>QUriDrag</tt></a></td></tr>
<tr valign="top" class="even"><td>QWidget::FocusPolicy</td><td>Qt::FocusPolicy</td></tr>
<tr valign="top" class="odd"><td>Q_LLONG</td><td>qlonglong</td></tr>
<tr valign="top" class="even"><td>Q_ULLONG</td><td>qulonglong</td></tr>
<tr valign="top" class="odd"><td>Qt::Dock</td><td>Qt::ToolBarDock</td></tr>
<tr valign="top" class="even"><td>Qt::MacintoshVersion</td><td>QSysInfo::MacVersion</td></tr>
<tr valign="top" class="odd"><td>Qt::TextFlags</td><td>Qt::TextFlag</td></tr>
<tr valign="top" class="even"><td>Qt::WindowsVersion</td><td>QSysInfo::WinVersion</td></tr>
</table></p>
<a name="enum-values"></a>
<h2>Enum Values</h2>
<p>The table below lists the enum values that have been renamed in Qt 4. If you compile your applications with <tt>QT3_SUPPORT</tt> defined, the old names will be available.</p>
<p>Whenever you see an occurrence of the name on the left, you can safely replace it with the Qt 4 equivalent in your program. The <a href="qt3to4.html#qt3to4"><tt>qt3to4</tt></a> tool performs the conversion automatically.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 enum value name</th><th>Qt 4 enum value name</th></tr></thead>
<tr valign="top" class="odd"><td>IO_Append</td><td>QIODevice::Append</td></tr>
<tr valign="top" class="even"><td>IO_ReadOnly</td><td>QIODevice::ReadOnly</td></tr>
<tr valign="top" class="odd"><td>IO_ReadWrite</td><td>QIODevice::ReadWrite</td></tr>
<tr valign="top" class="even"><td>IO_Translate</td><td>QIODevice::Text</td></tr>
<tr valign="top" class="odd"><td>IO_Truncate</td><td>QIODevice::Truncate</td></tr>
<tr valign="top" class="even"><td>IO_WriteOnly</td><td>QIODevice::WriteOnly</td></tr>
<tr valign="top" class="odd"><td>IO_Raw</td><td>QIODevice::Unbuffered</td></tr>
<tr valign="top" class="even"><td>QAccessible::Moveable</td><td>QAccessible::Movable</td></tr>
<tr valign="top" class="odd"><td>QApplication::CustomColors</td><td>QApplication::CustomColor</td></tr>
<tr valign="top" class="even"><td>QApplication::NormalColors</td><td>QApplication::NormalColor</td></tr>
<tr valign="top" class="odd"><td>QButton::NoChange</td><td>QCheckBox::NoChange</td></tr>
<tr valign="top" class="even"><td>QButton::Off</td><td>QCheckBox::Off</td></tr>
<tr valign="top" class="odd"><td>QButton::On</td><td>QCheckBox::On</td></tr>
<tr valign="top" class="even"><td>QChar::Single</td><td>QChar::NoDecomposition</td></tr>
<tr valign="top" class="odd"><td>QChar::byteOrderMark</td><td>QChar::ByteOrderMark</td></tr>
<tr valign="top" class="even"><td>QChar::byteOrderSwapped</td><td>QChar::ByteOrderSwapped</td></tr>
<tr valign="top" class="odd"><td>QChar::nbsp</td><td>QChar::Nbsp</td></tr>
<tr valign="top" class="even"><td>QChar::null</td><td>QChar::Null</td></tr>
<tr valign="top" class="odd"><td>QChar::replacement</td><td>QChar::ReplacementCharacter</td></tr>
<tr valign="top" class="even"><td>QComboBox::AfterCurrent</td><td>QComboBox::InsertAfterCurrent</td></tr>
<tr valign="top" class="odd"><td>QComboBox::AtBottom</td><td>QComboBox::InsertAtBottom</td></tr>
<tr valign="top" class="even"><td>QComboBox::AtCurrent</td><td>QComboBox::InsertAtCurrent</td></tr>
<tr valign="top" class="odd"><td>QComboBox::AtTop</td><td>QComboBox::InsertAtTop</td></tr>
<tr valign="top" class="even"><td>QComboBox::BeforeCurrent</td><td>QComboBox::InsertBeforeCurrent</td></tr>
<tr valign="top" class="odd"><td>QComboBox::NoInsertion</td><td>QComboBox::NoInsert</td></tr>
<tr valign="top" class="even"><td>QDir::DefaultFilter</td><td>QDir::NoFilter</td></tr>
<tr valign="top" class="odd"><td>QDir::DefaultSort</td><td>QDir::NoSort</td></tr>
<tr valign="top" class="even"><td>QEvent::Accel</td><td>QEvent::Shortcut</td></tr>
<tr valign="top" class="odd"><td>QEvent::AccelOverride</td><td>QEvent::ShortcutOverride</td></tr>
<tr valign="top" class="even"><td>QEvent::CaptionChange</td><td>QEvent::WindowTitleChange</td></tr>
<tr valign="top" class="odd"><td>QEvent::ChildInserted</td><td>QEvent::ChildAdded</td></tr>
<tr valign="top" class="even"><td>QEvent::IMCompose</td><td>QEvent::InputMethodCompose</td></tr>
<tr valign="top" class="odd"><td>QEvent::IMEnd</td><td>QEvent::InputMethodEnd</td></tr>
<tr valign="top" class="even"><td>QEvent::IMStart</td><td>QEvent::InputMethodStart</td></tr>
<tr valign="top" class="odd"><td>QEvent::IconChange</td><td>QEvent::WindowIconChange</td></tr>
<tr valign="top" class="even"><td>QEvent::LayoutHint</td><td>QEvent::LayoutRequest</td></tr>
<tr valign="top" class="odd"><td>QEvent::Reparent</td><td>QEvent::ParentChange</td></tr>
<tr valign="top" class="even"><td>QFileInfo::ExeGroup</td><td>QFile::ExeGroup</td></tr>
<tr valign="top" class="odd"><td>QFileInfo::ExeOther</td><td>QFile::ExeOther</td></tr>
<tr valign="top" class="even"><td>QFileInfo::ExeOwner</td><td>QFile::ExeOwner</td></tr>
<tr valign="top" class="odd"><td>QFileInfo::ExeUser</td><td>QFile::ExeUser</td></tr>
<tr valign="top" class="even"><td>QFileInfo::ReadGroup</td><td>QFile::ReadGroup</td></tr>
<tr valign="top" class="odd"><td>QFileInfo::ReadOther</td><td>QFile::ReadOther</td></tr>
<tr valign="top" class="even"><td>QFileInfo::ReadOwner</td><td>QFile::ReadOwner</td></tr>
<tr valign="top" class="odd"><td>QFileInfo::ReadUser</td><td>QFile::ReadUser</td></tr>
<tr valign="top" class="even"><td>QFileInfo::WriteGroup</td><td>QFile::WriteGroup</td></tr>
<tr valign="top" class="odd"><td>QFileInfo::WriteOther</td><td>QFile::WriteOther</td></tr>
<tr valign="top" class="even"><td>QFileInfo::WriteOwner</td><td>QFile::WriteOwner</td></tr>
<tr valign="top" class="odd"><td>QFileInfo::WriteUser</td><td>QFile::WriteUser</td></tr>
<tr valign="top" class="even"><td>QFrame::GroupBoxPanel</td><td>QFrame::StyledPanel</td></tr>
<tr valign="top" class="odd"><td>QFrame::LineEditPanel</td><td>QFrame::StyledPanel</td></tr>
<tr valign="top" class="even"><td>QFrame::MenuBarPanel</td><td>QFrame::StyledPanel</td></tr>
<tr valign="top" class="odd"><td>QFrame::PopupPanel</td><td>QFrame::StyledPanel</td></tr>
<tr valign="top" class="even"><td>QFrame::TabWidgetPanel</td><td>QFrame::StyledPanel</td></tr>
<tr valign="top" class="odd"><td>QFrame::ToolBarPanel</td><td>QFrame::StyledPanel</td></tr>
<tr valign="top" class="even"><td>QImage::ScaleFree</td><td>Qt::IgnoreAspectRatio</td></tr>
<tr valign="top" class="odd"><td>QImage::ScaleMax</td><td>Qt::KeepAspectRatioByExpanding</td></tr>
<tr valign="top" class="even"><td>QImage::ScaleMin</td><td>Qt::KeepAspectRatio</td></tr>
<tr valign="top" class="odd"><td>Qt::Identical</td><td>QKeySequence::ExactMatch</td></tr>
<tr valign="top" class="even"><td>Qt::NoMatch</td><td>QKeySequence::NoMatch</td></tr>
<tr valign="top" class="odd"><td>Qt::PartialMatch</td><td>QKeySequence::PartialMatch</td></tr>
<tr valign="top" class="even"><td>QLayout::Auto</td><td>QLayout::SetDefaultConstraint</td></tr>
<tr valign="top" class="odd"><td>QLayout::Fixed</td><td>QLayout::SetFixedSize</td></tr>
<tr valign="top" class="even"><td>QLayout::FreeResize</td><td>QLayout::SetNoConstraint</td></tr>
<tr valign="top" class="odd"><td>QLayout::Minimum</td><td>QLayout::SetMinimumSize</td></tr>
<tr valign="top" class="even"><td>QMacStyle::SizeNone</td><td>QMacStyle::SizeDefault</td></tr>
<tr valign="top" class="odd"><td>QSettings::Global</td><td>QSettings::SystemScope</td></tr>
<tr valign="top" class="even"><td>QSettings::User</td><td>QSettings::UserScope</td></tr>
<tr valign="top" class="odd"><td>QSize::ScaleFree</td><td>Qt::IgnoreAspectRatio</td></tr>
<tr valign="top" class="even"><td>QSize::ScaleMax</td><td>Qt::KeepAspectRatioByExpanding</td></tr>
<tr valign="top" class="odd"><td>QSize::ScaleMin</td><td>Qt::KeepAspectRatio</td></tr>
<tr valign="top" class="even"><td>QSizePolicy::Horizontal</td><td>QSizePolicy::Horizontally</td></tr>
<tr valign="top" class="odd"><td>QSizePolicy::Vertical</td><td>QSizePolicy::Vertically</td></tr>
<tr valign="top" class="even"><td>QSlider::Above</td><td>QSlider::TicksAbove</td></tr>
<tr valign="top" class="odd"><td>QSlider::Below</td><td>QSlider::TicksBelow</td></tr>
<tr valign="top" class="even"><td>QSlider::Both</td><td>QSlider::TicksBothSides</td></tr>
<tr valign="top" class="odd"><td>QSlider::Left</td><td>QSlider::TicksLeft</td></tr>
<tr valign="top" class="even"><td>QSlider::NoMarks</td><td>QSlider::NoTicks</td></tr>
<tr valign="top" class="odd"><td>QSlider::Right</td><td>QSlider::TicksRight</td></tr>
<tr valign="top" class="even"><td>QSocket::Closing</td><td>Q3Socket::Closing</td></tr>
<tr valign="top" class="odd"><td>QSocket::Connected</td><td>Q3Socket::Connected</td></tr>
<tr valign="top" class="even"><td>QSocket::Connecting</td><td>Q3Socket::Connecting</td></tr>
<tr valign="top" class="odd"><td>QSocket::Connection</td><td>Q3Socket::Connection</td></tr>
<tr valign="top" class="even"><td>QSocket::ErrConnectionRefused</td><td>Q3Socket::ErrConnectionRefused</td></tr>
<tr valign="top" class="odd"><td>QSocket::ErrHostNotFound</td><td>Q3Socket::ErrHostNotFound</td></tr>
<tr valign="top" class="even"><td>QSocket::ErrSocketRead</td><td>Q3Socket::ErrSocketRead</td></tr>
<tr valign="top" class="odd"><td>QSocket::HostLookup</td><td>QAbstractSocket::HostLookupState</td></tr>
<tr valign="top" class="even"><td>QSocket::Idle</td><td>QAbstractSocket::UnconnectedState</td></tr>
<tr valign="top" class="odd"><td>QSqlError::Connection</td><td>QSqlError::ConnectionError</td></tr>
<tr valign="top" class="even"><td>QSqlError::None</td><td>QSqlError::NoError</td></tr>
<tr valign="top" class="odd"><td>QSqlError::Statement</td><td>QSqlError::StatementError</td></tr>
<tr valign="top" class="even"><td>QSqlError::Transaction</td><td>QSqlError::TransactionError</td></tr>
<tr valign="top" class="odd"><td>QSqlError::Unknown</td><td>QSqlError::UnknownError</td></tr>
<tr valign="top" class="even"><td>QStyle::CC_ListView</td><td>QStyle::CC_Q3ListView</td></tr>
<tr valign="top" class="odd"><td>QStyle::SH_UnderlineAccelerator</td><td>QStyle::SH_UnderlineShortcut</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Active</td><td>QStyle::State_Active</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_AutoRaise</td><td>QStyle::State_AutoRaise</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Bottom</td><td>QStyle::State_Bottom</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Children</td><td>QStyle::State_Children</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Default</td><td>QStyle::State_None</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Down</td><td>QStyle::State_DownArrow</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Editing</td><td>QStyle::State_Editing</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Enabled</td><td>QStyle::State_Enabled</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_FocusAtBorder</td><td>QStyle::State_FocusAtBorder</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_HasFocus</td><td>QStyle::State_HasFocus</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Horizontal</td><td>QStyle::State_Horizontal</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Item</td><td>QStyle::State_Item</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_MouseOver</td><td>QStyle::State_MouseOver</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_NoChange</td><td>QStyle::State_NoChange</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_None</td><td>QStyle::State_None</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Off</td><td>QStyle::State_Off</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_On</td><td>QStyle::State_On</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Open</td><td>QStyle::State_Open</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Raised</td><td>QStyle::State_Raised</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Rectangle</td><td>QStyle::State_Rectangle</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Selected</td><td>QStyle::State_Selected</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Sibling</td><td>QStyle::State_Sibling</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Sunken</td><td>QStyle::State_Sunken</td></tr>
<tr valign="top" class="odd"><td>QStyle::Style_Top</td><td>QStyle::State_Top</td></tr>
<tr valign="top" class="even"><td>QStyle::Style_Up</td><td>QStyle::State_Up</td></tr>
<tr valign="top" class="odd"><td>QTabBar::RoundedAbove</td><td>QTabBar::RoundedNorth</td></tr>
<tr valign="top" class="even"><td>QTabBar::RoundedBelow</td><td><a href="porting4.html#qtabbar"><tt>QTabBar::</tt></a> RoundedSouth</td></tr>
<tr valign="top" class="odd"><td>QTabBar::TriangularAbove</td><td><a href="porting4.html#qtabbar"><tt>QTabBar::</tt></a> TriangularNorth</td></tr>
<tr valign="top" class="even"><td>QTabBar::TriangularBelow</td><td><a href="porting4.html#qtabbar"><tt>QTabBar::</tt></a> TriangularSouth</td></tr>
<tr valign="top" class="odd"><td>QTextEdit::MovePgDown</td><td>QTextEdit::MovePageDown</td></tr>
<tr valign="top" class="even"><td>QTextEdit::MovePgUp</td><td>QTextEdit::MovePageUp</td></tr>
<tr valign="top" class="odd"><td>QToolButton::Right</td><td>QToolButton::BesideIcon</td></tr>
<tr valign="top" class="even"><td>QToolButton::Under</td><td>QToolButton::BelowIcon</td></tr>
<tr valign="top" class="odd"><td>QValidator::Valid</td><td>QValidator::Intermediate</td></tr>
<tr valign="top" class="even"><td>QVariant::IconSet</td><td>QCoreVariant::Icon</td></tr>
<tr valign="top" class="odd"><td>QWidget::ClickFocus</td><td>Qt::ClickFocus</td></tr>
<tr valign="top" class="even"><td>QWidget::NoFocus</td><td>Qt::NoFocus</td></tr>
<tr valign="top" class="odd"><td>QWidget::StrongFocus</td><td>Qt::StrongFocus</td></tr>
<tr valign="top" class="even"><td>QWidget::TabFocus</td><td>Qt::TabFocus</td></tr>
<tr valign="top" class="odd"><td>QWidget::WheelFocus</td><td>Qt::WheelFocus</td></tr>
<tr valign="top" class="even"><td>Qt::AlignAuto</td><td>Qt::AlignLeft</td></tr>
<tr valign="top" class="odd"><td>Qt::AltButton</td><td>Qt::AltModifier</td></tr>
<tr valign="top" class="even"><td>Qt::Ascending</td><td>Qt::AscendingOrder</td></tr>
<tr valign="top" class="odd"><td>Qt::Bottom</td><td>Qt::DockBottom</td></tr>
<tr valign="top" class="even"><td>Qt::BottomLeft</td><td>Qt::BottomLeftCorner</td></tr>
<tr valign="top" class="odd"><td>Qt::BottomRight</td><td>Qt::BottomRightCorner</td></tr>
<tr valign="top" class="even"><td>Qt::BreakAnywhere</td><td>Qt::TextWrapAnywhere</td></tr>
<tr valign="top" class="odd"><td>Qt::ControlButton</td><td>Qt::ControlModifier</td></tr>
<tr valign="top" class="even"><td>Qt::CustomPattern</td><td>Qt::TexturePattern</td></tr>
<tr valign="top" class="odd"><td>Qt::Descending</td><td>Qt::DescendingOrder</td></tr>
<tr valign="top" class="even"><td>Qt::DontClip</td><td>Qt::TextDontClip</td></tr>
<tr valign="top" class="odd"><td>Qt::DontPrint</td><td>Qt::TextDontPrint</td></tr>
<tr valign="top" class="even"><td>Qt::ExpandTabs</td><td>Qt::TextExpandTabs</td></tr>
<tr valign="top" class="odd"><td>Qt::IncludeTrailingSpaces</td><td>Qt::TextIncludeTrailingSpaces</td></tr>
<tr valign="top" class="even"><td>Qt::KeyButtonMask</td><td>Qt::KeyboardModifierMask</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_BackSpace</td><td>Qt::Key_Backspace</td></tr>
<tr valign="top" class="even"><td>Qt::Key_BackTab</td><td>Qt::Key_Backtab</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_MediaPrev</td><td>Qt::Key_MediaPrevious</td></tr>
<tr valign="top" class="even"><td>Qt::Key_Next</td><td>Qt::Key_PageDown</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_Prior</td><td>Qt::Key_PageUp</td></tr>
<tr valign="top" class="even"><td>Qt::Key_aacute</td><td>Qt::Key_Aacute</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_acircumflex</td><td>Qt::Key_Acircumflex</td></tr>
<tr valign="top" class="even"><td>Qt::Key_adiaeresis</td><td>Qt::Key_Adiaeresis</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_ae</td><td>Qt::Key_AE</td></tr>
<tr valign="top" class="even"><td>Qt::Key_agrave</td><td>Qt::Key_Agrave</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_aring</td><td>Qt::Key_Aring</td></tr>
<tr valign="top" class="even"><td>Qt::Key_atilde</td><td>Qt::Key_Atilde</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_ccedilla</td><td>Qt::Key_Ccedilla</td></tr>
<tr valign="top" class="even"><td>Qt::Key_eacute</td><td>Qt::Key_Eacute</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_ecircumflex</td><td>Qt::Key_Ecircumflex</td></tr>
<tr valign="top" class="even"><td>Qt::Key_ediaeresis</td><td>Qt::Key_Ediaeresis</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_egrave</td><td>Qt::Key_Egrave</td></tr>
<tr valign="top" class="even"><td>Qt::Key_eth</td><td>Qt::Key_ETH</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_iacute</td><td>Qt::Key_Iacute</td></tr>
<tr valign="top" class="even"><td>Qt::Key_icircumflex</td><td>Qt::Key_Icircumflex</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_idiaeresis</td><td>Qt::Key_Idiaeresis</td></tr>
<tr valign="top" class="even"><td>Qt::Key_igrave</td><td>Qt::Key_Igrave</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_ntilde</td><td>Qt::Key_Ntilde</td></tr>
<tr valign="top" class="even"><td>Qt::Key_oacute</td><td>Qt::Key_Oacute</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_ocircumflex</td><td>Qt::Key_Ocircumflex</td></tr>
<tr valign="top" class="even"><td>Qt::Key_odiaeresis</td><td>Qt::Key_Odiaeresis</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_ograve</td><td>Qt::Key_Ograve</td></tr>
<tr valign="top" class="even"><td>Qt::Key_oslash</td><td>Qt::Key_Ooblique</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_otilde</td><td>Qt::Key_Otilde</td></tr>
<tr valign="top" class="even"><td>Qt::Key_thorn</td><td>Qt::Key_THORN</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_uacute</td><td>Qt::Key_Uacute</td></tr>
<tr valign="top" class="even"><td>Qt::Key_ucircumflex</td><td>Qt::Key_Ucircumflex</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_udiaeresis</td><td>Qt::Key_Udiaeresis</td></tr>
<tr valign="top" class="even"><td>Qt::Key_ugrave</td><td>Qt::Key_Ugrave</td></tr>
<tr valign="top" class="odd"><td>Qt::Key_yacute</td><td>Qt::Key_Yacute</td></tr>
<tr valign="top" class="even"><td>Qt::Keypad</td><td>Qt::KeypadModifier</td></tr>
<tr valign="top" class="odd"><td>Qt::Left</td><td>Qt::DockLeft</td></tr>
<tr valign="top" class="even"><td>Qt::MV_10_DOT_0</td><td>QSysInfo::MV_10_0</td></tr>
<tr valign="top" class="odd"><td>Qt::MV_10_DOT_1</td><td>QSysInfo::MV_10_1</td></tr>
<tr valign="top" class="even"><td>Qt::MV_10_DOT_2</td><td>QSysInfo::MV_10_2</td></tr>
<tr valign="top" class="odd"><td>Qt::MV_10_DOT_3</td><td>QSysInfo::MV_10_3</td></tr>
<tr valign="top" class="even"><td>Qt::MV_10_DOT_4</td><td>QSysInfo::MV_10_4</td></tr>
<tr valign="top" class="odd"><td>Qt::MV_9</td><td>QSysInfo::MV_9</td></tr>
<tr valign="top" class="even"><td>Qt::MV_CHEETAH</td><td>QSysInfo::MV_10_0</td></tr>
<tr valign="top" class="odd"><td>Qt::MV_JAGUAR</td><td>QSysInfo::MV_10_2</td></tr>
<tr valign="top" class="even"><td>Qt::MV_PANTHER</td><td>QSysInfo::MV_10_3</td></tr>
<tr valign="top" class="odd"><td>Qt::MV_PUMA</td><td>QSysInfo::MV_10_1</td></tr>
<tr valign="top" class="even"><td>Qt::MV_TIGER</td><td>QSysInfo::MV_10_4</td></tr>
<tr valign="top" class="odd"><td>Qt::MV_Unknown</td><td>QSysInfo::MV_Unknown</td></tr>
<tr valign="top" class="even"><td>Qt::MetaButton</td><td>Qt::MetaModifier</td></tr>
<tr valign="top" class="odd"><td>Qt::Minimized</td><td>Qt::DockMinimized</td></tr>
<tr valign="top" class="even"><td>Qt::NoAccel</td><td>Qt::TextHideMnemonic</td></tr>
<tr valign="top" class="odd"><td>Qt::Overline</td><td>Qt::TextOverline</td></tr>
<tr valign="top" class="even"><td>Qt::Right</td><td>Qt::DockRight</td></tr>
<tr valign="top" class="odd"><td>Qt::ShiftButton</td><td>Qt::ShiftModifier</td></tr>
<tr valign="top" class="even"><td>Qt::ShowPrefix</td><td>Qt::TextShowMnemonic</td></tr>
<tr valign="top" class="odd"><td>Qt::SingleLine</td><td>Qt::TextSingleLine</td></tr>
<tr valign="top" class="even"><td>Qt::StrikeOut</td><td>Qt::TextStrikeOut</td></tr>
<tr valign="top" class="odd"><td>Qt::Top</td><td>Qt::DockTop</td></tr>
<tr valign="top" class="even"><td>Qt::TopLeft</td><td>Qt::TopLeftCorner</td></tr>
<tr valign="top" class="odd"><td>Qt::TopRight</td><td>Qt::TopRightCorner</td></tr>
<tr valign="top" class="even"><td>Qt::TornOff</td><td>Qt::DockTornOff</td></tr>
<tr valign="top" class="odd"><td>Qt::Underline</td><td>Qt::TextUnderline</td></tr>
<tr valign="top" class="even"><td>Qt::Unmanaged</td><td>Qt::DockUnmanaged</td></tr>
<tr valign="top" class="odd"><td>Qt::WNorthWestGravity</td><td>Qt::WStaticContents</td></tr>
<tr valign="top" class="even"><td>Qt::WRepaintNoErase</td><td>Qt::WNoAutoErase</td></tr>
<tr valign="top" class="odd"><td>Qt::WStyle_Dialog</td><td>Qt::WType_Dialog</td></tr>
<tr valign="top" class="even"><td>Qt::WStyle_NoBorderEx</td><td>Qt::WStyle_NoBorder</td></tr>
<tr valign="top" class="odd"><td>Qt::WType_Modal</td><td>(Qt::WType_Dialog | Qt::WShowModal)</td></tr>
<tr valign="top" class="even"><td>Qt::WV_2000</td><td>QSysInfo::WV_2000</td></tr>
<tr valign="top" class="odd"><td>Qt::WV_2003</td><td>QSysInfo::WV_2003</td></tr>
<tr valign="top" class="even"><td>Qt::WV_32s</td><td>QSysInfo::WV_32s</td></tr>
<tr valign="top" class="odd"><td>Qt::WV_95</td><td>QSysInfo::WV_95</td></tr>
<tr valign="top" class="even"><td>Qt::WV_98</td><td>QSysInfo::WV_98</td></tr>
<tr valign="top" class="odd"><td>Qt::WV_CE</td><td>QSysInfo::WV_CE</td></tr>
<tr valign="top" class="even"><td>Qt::WV_CENET</td><td>QSysInfo::WV_CENET</td></tr>
<tr valign="top" class="odd"><td>Qt::WV_CE_based</td><td>QSysInfo::WV_CE_based</td></tr>
<tr valign="top" class="even"><td>Qt::WV_DOS_based</td><td>QSysInfo::WV_DOS_based</td></tr>
<tr valign="top" class="odd"><td>Qt::WV_Me</td><td>QSysInfo::WV_Me</td></tr>
<tr valign="top" class="even"><td>Qt::WV_NT</td><td>QSysInfo::WV_NT</td></tr>
<tr valign="top" class="odd"><td>Qt::WV_NT_based</td><td>QSysInfo::WV_NT_based</td></tr>
<tr valign="top" class="even"><td>Qt::WV_XP</td><td>QSysInfo::WV_XP</td></tr>
<tr valign="top" class="odd"><td>Qt::WordBreak</td><td>Qt::TextWordWrap</td></tr>
<tr valign="top" class="even"><td>Qt::IbeamCursor</td><td>Qt::IBeamCursor</td></tr>
</table></p>
<p>In addition, the following window flags</tt> have been either replaced with widget attributes</tt> or have been deprecated:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 type</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Qt::WDestructiveClose</td><td>Use QWidget::setAttribute(Qt::WA_DeleteOnClose) instead.</td></tr>
<tr valign="top" class="even"><td>Qt::WStaticContents</td><td rowspan="2">Use QWidget::setAttribute(Qt::WA_StaticContents) instead.</td></tr>
<tr valign="top" class="odd"><td>Qt::WNorthWestGravity</td></tr>
<tr valign="top" class="even"><td>Qt::WNoAutoErase</td><td rowspan="3">Use QWidget::setAttribute(Qt::WA_NoBackground) instead.</td></tr>
<tr valign="top" class="odd"><td>Qt::WResizeNoErase</td></tr>
<tr valign="top" class="even"><td>Qt::WRepaintNoErase</td></tr>
<tr valign="top" class="odd"><td>Qt::WPaintClever</td><td>Unnecessary in Qt 4.</td></tr>
<tr valign="top" class="even"><td>Qt::WMacNoSheet</td><td>Unnecessary in Qt 4.</td></tr>
</table></p>
<p>In Qt 4.1, the widget flags used to determine window modality were replaced by a single enum that can be used to specify the modal behavior of top-level widgets:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 type</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Qt::WShowModal</td><td>Use QWidget::setWindowModality(Qt::ApplicationModal) instead.</td></tr>
<tr valign="top" class="even"><td>Qt::WGroupLeader</td><td>Use QWidget::setWindowModality(Qt::WindowModal) for each child dialog of the group leader, but do not change the modality of the group leader itself.</td></tr>
</table></p>
<a name="properties"></a><a name="properties"></a>
<h2>Properties</h2>
<p>Some properties have been renamed in Qt 4, to make Qt's API more consistent and more intuitive. For example, <a href="gui/QWidget.html"><tt>QWidget</tt></a>'s <tt>caption</tt> property has been renamed <tt>windowTitle</tt> to make it clear that it refers to the title shown in the window's title bar.</p>
<p>In addition, the property system has been extended to allow properties to be redefined in subclasses with the <tt>Q_PROPERTY</tt> macro, removing the need for a <tt>Q_OVERRIDE()</tt> macro.</p>
<p>The table below lists the Qt properties that have been renamed in Qt 4. Occurrences of these in <i>Qt Designer</i> <tt>.ui</tt> files are automatically converted to the new name by <tt>uic</tt>.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 name</th><th>Qt 4 name</th></tr></thead>
<tr valign="top" class="odd"><td>QButton::accel</td><td>QButton::shortcut</td></tr>
<tr valign="top" class="even"><td>QButton::on</td><td>QButton::checked</td></tr>
<tr valign="top" class="odd"><td>QButton::toggleButton</td><td>QAbstractButton::checkable</td></tr>
<tr valign="top" class="even"><td>QDial::lineStep</td><td>QDial::singleStep</td></tr>
<tr valign="top" class="odd"><td>QDial::maxValue</td><td>QDial::maximum</td></tr>
<tr valign="top" class="even"><td>QDial::minValue</td><td>QDial::minimum</td></tr>
<tr valign="top" class="odd"><td>QDialog::modal</td><td>QDialog::isModal</td></tr>
<tr valign="top" class="even"><td>QLineEdit::edited</td><td>QLineEdit::modified</td></tr>
<tr valign="top" class="odd"><td>QLineEdit::hasMarkedText</td><td>QLineEdit::hasSelectedText</td></tr>
<tr valign="top" class="even"><td>QLineEdit::markedText</td><td>QLineEdit::selectedText</td></tr>
<tr valign="top" class="odd"><td>QObject::name</td><td>QObject::objectName</td></tr>
<tr valign="top" class="even"><td>QProgressDialog::progress</td><td>QProgressDialog::value</td></tr>
<tr valign="top" class="odd"><td>QProgressDialog::totalSteps</td><td>QProgressDialog::maximum</td></tr>
<tr valign="top" class="even"><td>QProgressDialog::wasCancelled</td><td>QProgressDialog::wasCanceled</td></tr>
<tr valign="top" class="odd"><td>QPushButton::iconSet</td><td>QPushButton::icon</td></tr>
<tr valign="top" class="even"><td>QScrollBar::draggingSlider</td><td>QScrollBar::sliderDown</td></tr>
<tr valign="top" class="odd"><td>QScrollBar::lineStep</td><td>QScrollBar::singleStep</td></tr>
<tr valign="top" class="even"><td>QScrollBar::maxValue</td><td>QScrollBar::maximum</td></tr>
<tr valign="top" class="odd"><td>QScrollBar::minValue</td><td>QScrollBar::minimum</td></tr>
<tr valign="top" class="even"><td>QSlider::lineStep</td><td>QSlider::singleStep</td></tr>
<tr valign="top" class="odd"><td>QSlider::maxValue</td><td>QSlider::maximum</td></tr>
<tr valign="top" class="even"><td>QSlider::minValue</td><td>QSlider::minimum</td></tr>
<tr valign="top" class="odd"><td>QSpinBox::lineStep</td><td>QSpinBox::singleStep</td></tr>
<tr valign="top" class="even"><td>QSpinBox::maxValue</td><td>QSpinBox::maximum</td></tr>
<tr valign="top" class="odd"><td>QSpinBox::minValue</td><td>QSpinBox::minimum</td></tr>
<tr valign="top" class="even"><td>QTabBar::currentTab</td><td>QTabBar::currentIndex</td></tr>
<tr valign="top" class="odd"><td>QTabWidget::currentPage</td><td>QTabWidget::currentWidget</td></tr>
<tr valign="top" class="even"><td>QToolButton::iconSet</td><td>QToolButton::icon</td></tr>
<tr valign="top" class="odd"><td>QToolButton::textLabel</td><td>QToolButton::text</td></tr>
<tr valign="top" class="even"><td>QWidget::caption</td><td>QWidget::windowTitle</td></tr>
<tr valign="top" class="odd"><td>QWidget::icon</td><td>QWidget::windowIcon</td></tr>
<tr valign="top" class="even"><td>QWidget::iconText</td><td>QWidget::windowIconText</td></tr>
</table></p>
<p>A handful of properties in Qt 3 are no longer properties in Qt 4, but the access functions still exist as part of the Qt 4 API. These are not used by <i>Qt Designer</i>; the only case where you need to worry about them is in highly dynamic applications that use Qt's meta-object system to access properties. Here's the list of these properties with the read and write functions that you can use instead:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 property</th><th>Qt 4 read function</th><th>Qt 4 write function</th></tr></thead>
<tr valign="top" class="odd"><td>QSqlDatabase::connectOptions</td><td>QSqlDatabase::connectOptions()</td><td>QSqlDatabase::setConnectOptions()</td></tr>
<tr valign="top" class="even"><td>QSqlDatabase::databaseName</td><td>QSqlDatabase::databaseName()</td><td>QSqlDatabase::setDatabaseName()</td></tr>
<tr valign="top" class="odd"><td>QSqlDatabase::hostName</td><td>QSqlDatabase::hostName()</td><td>QSqlDatabase::setHostName()</td></tr>
<tr valign="top" class="even"><td>QSqlDatabase::password</td><td>QSqlDatabase::password()</td><td>QSqlDatabase::setPassword()</td></tr>
<tr valign="top" class="odd"><td>QSqlDatabase::port</td><td>QSqlDatabase::port()</td><td>QSqlDatabase::setPort()</td></tr>
<tr valign="top" class="even"><td>QSqlDatabase::userName</td><td>QSqlDatabase::userName()</td><td>QSqlDatabase::setUserName()</td></tr>
</table></p>
<p>Some properties have been removed from Qt 4, but the associated access functions are provided if <tt>QT3_SUPPORT</tt> is defined to help porting to Qt 4. When converting Qt 3 <tt>.ui</tt> files to Qt 4, <tt>uic</tt> generates calls to the Qt 3 compatibility functions. Note that this only applies to the properties of the Qt3Support library, i.e&#x2e; <tt>QT3_SUPPORT</tt> properties of the other libraries must be ported manually when converting Qt 3 .ui files to Qt 4.</p>
<p>The table below lists these properties with the read and write functions that you can use instead. The documentation for the individual functions explains how to replace them with non-compatibility Qt 4 functions.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 property</th><th>Qt 4 read function (<tt>QT3_SUPPORT</tt>)</th><th>Qt 4 write function (<tt>QT3_SUPPORT</tt>)</th></tr></thead>
<tr valign="top" class="odd"><td>QMenuBar::separator</td><td>QMenuBar::separator()</td><td>QMenuBar::setSeparator()</td></tr>
<tr valign="top" class="even"><td>QPushButton::menuButton</td><td>QPushButton::isMenuButton()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QTabWidget::margin</td><td>QTabWidget::margin()</td><td>QTabWidget::setMargin()</td></tr>
<tr valign="top" class="even"><td>QTextEdit::textFormat</td><td>QTextEdit::textFormat()</td><td>QTextEdit::setTextFormat()</td></tr>
<tr valign="top" class="odd"><td>QWidget::backgroundBrush</td><td>QWidget::backgroundBrush()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QWidget::backgroundMode</td><td>QWidget::backgroundMode()</td><td>QWidget::setBackgroundMode()</td></tr>
<tr valign="top" class="odd"><td>QWidget::backgroundOrigin</td><td>QWidget::backgroundOrigin()</td><td>QWidget::setBackgroundOrigin()</td></tr>
<tr valign="top" class="even"><td>QWidget::colorGroup</td><td>QWidget::colorGroup()</td><td>QWidget::setColorGroup()</td></tr>
<tr valign="top" class="odd"><td>QWidget::customWhatsThis</td><td>QWidget::customWhatsThis()</td><td>QWidget::setCustomWhatsThis()</td></tr>
<tr valign="top" class="even"><td>QWidget::inputMethodEnabled</td><td>QWidget::inputMethodEnabled()</td><td>QWidget::setInputMethodEnabled()</td></tr>
<tr valign="top" class="odd"><td>QWidget::ownCursor</td><td>QWidget::ownCursor()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QWidget::ownFont</td><td>QWidget::ownFont()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QWidget::ownPalette</td><td>QWidget::ownPalette()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QWidget::paletteBackgroundColor</td><td>QWidget::paletteBackgroundColor()</td><td>QWidget::setPaletteBackgroundColor()</td></tr>
<tr valign="top" class="odd"><td>QWidget::paletteBackgroundPixmap</td><td>QWidget::paletteBackgroundPixmap()</td><td>QWidget::setPaletteBackgroundPixmap()</td></tr>
<tr valign="top" class="even"><td>QWidget::paletteForegroundColor</td><td>QWidget::paletteForegroundColor()</td><td>QWidget::setPaletteForegroundColor()</td></tr>
<tr valign="top" class="odd"><td>QWidget::underMouse</td><td>QWidget::underMouse()</td><td>N/A</td></tr>
</table></p>
<p>The following Qt 3 properties and their access functions are no longer available in Qt 4. In most cases, Qt 4 provides similar functionality.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 property</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QButton::autoRepeat</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QButton::autoResize</td><td>Call <a href="gui/QWidget.html"><tt>QWidget</tt></a>:setFixedSize(QWidget::sizeHint()) whenever you change the contents.</td></tr>
<tr valign="top" class="odd"><td>QButton::exclusiveToggle</td><td>See <tt>QAbstractButton::autoExclusive</tt>.</td></tr>
<tr valign="top" class="even"><td>QButton::pixmap</td><td>Use QAbstractButton::icon instead.</td></tr>
<tr valign="top" class="odd"><td>QButton::toggleState</td><td>Use QCheckBox::setState() and QCheckBox::state() instead.</td></tr>
<tr valign="top" class="even"><td>QButton::toggleType</td><td>Use QCheckBox::setTristate() instead.</td></tr>
<tr valign="top" class="odd"><td>QComboBox::autoResize</td><td>Call <a href="gui/QWidget.html"><tt>QWidget</tt></a>:setFixedSize(QWidget::sizeHint()) whenever you change the contents.</td></tr>
<tr valign="top" class="even"><td>QFrame::contentsRect</td><td>Use Q3Frame::contentsRect() instead.</td></tr>
<tr valign="top" class="odd"><td>QFrame::margin</td><td>Use QWidget::setContentsMargins() instead.</td></tr>
<tr valign="top" class="even"><td>QTabBar::keyboardFocusTab</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QToolButton::offIconSet</td><td>Use the off component</tt> of QAbstractButton::icon instead.</td></tr>
<tr valign="top" class="even"><td>QToolButton::onIconSet</td><td>Use the on component</tt> of QAbstractButton::icon instead.</td></tr>
<tr valign="top" class="odd"><td>QWidget::microFocusHint</td><td>N/A</td></tr>
</table></p>
<a name="explicit-sharing"></a>
<h2>Explicit Sharing</h2>
<p>Qt 4 is the first version of Qt that contains no <a href="http://doc.trolltech.com/3.3/shclass.html">explicitly shared</tt></a> classes. All classes that were explicitly shared in Qt 3 are <i>implicitly</i> shared in Qt 4:</p>
<ul>
<li><a href="gui/QImage.html"><tt>QImage</tt></a></li>
<li><a href="core/QBitArray.html"><tt>QBitArray</tt></a></li>
<li><a href="core/QByteArray.html"><tt>QByteArray</tt></a></li>
<li>Q3PointArray</li>
</ul>
<p>This means that if you took a copy of an instance of the class (using operator=() or the class's copy constructor), any modification to the copy would affect the original and vice versa. Needless to say, this behavior is rarely desirable.</p>
<p>Fortunately, nearly all Qt 3 applications don't rely on explicit sharing. When porting, you typically only need to remove calls to detach() and/or copy(), which aren't necessary anymore.</p>
<p>If you deliberately rely on explicit sharing in your application, you can use pointers or references to achieve the same result in Qt 4.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    void asciify(QByteArray array)
    {
        for (int i = 0; i &lt; (int)array.size(); ++i) {
            if ((uchar)array[i] &gt;= 128)
                array[i] = '?';
        }
    }</font></pre>
<p>you can rewrite it as</p>
<pre>    void asciify(QByteArray &amp;array)
    {
        for (int i = 0; i &lt; array.size(); ++i) {
            if ((uchar)array[i] &gt;= 128)
                array[i] = '?';
        }
    }</pre>
<p>(Notice the <tt>&amp;</tt> in the parameter declaration.)</p>
<a name="painting-and-redrawing-widgets"></a>
<h2>Painting and Redrawing Widgets</h2>
<p>When implementing custom widgets in Qt 3, it was possible to use <a href="gui/QPainter.html"><tt>QPainter</tt></a> to draw on a widget outside paint events. This made it possible to integrate Qt applications with third party libraries and tools that impose their own rendering models. For example, a widget might be repainted in a slot using data obtained from an external source.</p>
<p>In Qt 4, it is only possible to paint on a widget from within its paintEvent() handler function. This restriction simplifies Qt's interaction with native window systems, improves the performance of applications by reducing the number of redraw operations, and also enables features to be implemented to improve the appearance of widgets, such as a backing store.</p>
<p>Generally, we recommend redesigning applications to perform all painting operations in paintEvent() functions, deferring actual painting until the next time this function is called. Applications can post paint events to trigger repaints, and it may be possible to examine your widget's internal state to determine which part of the widget needs to be repainted.</p>
<p>If asynchronous repaints are used extensively by your application, and it is not practical to redesign the rendering model to perform all painting operations from within a widget's paintEvent() function, it may be necessary to consider using an intermediate painting step. In this approach, one or more images can be updated asynchronously and painted on the widget in the paint event. To avoid excessive buffering, it may be worthwhile disabling the backing store by setting the widget's Qt::WA_PaintOnScreen widget attribute.</p>
<p>On certain platforms, the Qt::WA_PaintOutsidePaintEvent widget attribute can be set to allow a widget to be painted from outside paint events.</p>
<p><b>Note:</b> Setting widget attributes to disable key features of Qt's widget rendering model may also cause other features to be disabled.</p>
<a name="qaccel"></a>
<h2>QAccel</h2>
<p>The <tt>QAccel</tt> class has been renamed Q3Accel and moved to the Qt3Support module. In new applications, you have three options:</p>
<ol type="1">
<li>You can use <a href="gui/QAction.html"><tt>QAction</tt></a> and set a key sequence using QAction::setShortcut().</li>
<li>You can use <a href="gui/QShortcut.html"><tt>QShortcut</tt></a>, a class that provides similar functionality to Q3Accel.</li>
<li>You can use QWidget::grabShortcut() and process &quot;shortcut&quot; events by reimplementing QWidget::event().</li>
</ol>
<p>The Q3Accel class also supports multiple accelerators using the same object, by calling Q3Accel::insertItem() multiple times. In Qt 4, the solution is to create multiple <a href="gui/QShortcut.html"><tt>QShortcut</tt></a> objects.</p>
<a name="qaccessibleinterface"></a>
<h2>QAccessibleInterface</h2>
<p>The <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> class has undergone some API changes in Qt 4, to make it more consistent with the rest of the Qt API.</p>
<p>If you have classes that inherit <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> or one of its subclasses (<a href="gui/QAccessibleObject.html"><tt>QAccessibleObject</tt></a>, <a href="gui/QAccessibleWidget.html"><tt>QAccessibleWidget</tt></a>, etc.), you must port them the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qaccessibletitlebar"></a>
<h2>QAccessibleTitleBar</h2>
<p>The <tt>QAccessibleTitleBar</tt> has been renamed Q3AccessibleTitleBar and moved to the Qt3Support library.</p>
<a name="qaction-section"></a><a name="qaction"></a>
<h2>QAction</h2>
<p>The <a href="gui/QAction.html"><tt>QAction</tt></a> class has been redesigned in Qt 4 to integrate better with the rest of the menu system. It unifies the old <tt>QMenuItem</tt> class and the old <tt>QAction</tt> class into one class, avoiding unnecessary data duplication and the need to learn two different APIs.</p>
<p>The old <tt>QAction</tt> and <tt>QActionGroup</tt> classes have been renamed Q3Action and Q3ActionGroup and moved to Qt3Support. In addition, the new <a href="gui/QAction.html"><tt>QAction</tt></a> class has compatibility functions to ease transition to Qt 4. Note that when using Q3ToolBar and Q3PopupMenu, their actions must be Q3Action</tt>s.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QAction.html"><tt>QAction</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qactiongroup"></a>
<h2>QActionGroup</h2>
<p>The <a href="gui/QAction.html"><tt>QAction</tt></a> class has been completely redesigned in Qt 4 to integrate better with the rest of the menu system. See the <a href="porting4.html#qaction-section">section on </tt>QAction</a> for details.</p>
<a name="qapplication"></a>
<h2>QApplication</h2>
<p>The <a href="gui/QApplication.html"><tt>QApplication</tt></a> class has been split into two classes: <a href="core/QCoreApplication.html"><tt>QCoreApplication</tt></a> and <a href="gui/QApplication.html"><tt>QApplication</tt></a>. The new <a href="gui/QApplication.html"><tt>QApplication</tt></a> class inherits <a href="core/QCoreApplication.html"><tt>QCoreApplication</tt></a> and adds GUI-related functionality. In practice, this has no consequences for existing Qt applications.</p>
<p>In addition, the following API changes were made:</p>
<ol type="1">
<li>QApplication::allWidgets() and QApplication::topLevelWidgets() used to return a pointer to a <a href="porting4.html#qwidgetlist"><tt>QWidgetList</tt></a>. Now they return a <a href="porting4.html#qwidgetlist"><tt>QWidgetList</tt></a>.<p>Also, <a href="porting4.html#qwidgetlist"><tt>QWidgetList</tt></a> has changed from being a typedef for QPtrList&lt;<a href="gui/QWidget.html"><tt>QWidget</tt></a>&gt; to being a typedef for QList&lt;<a href="gui/QWidget.html"><tt>QWidget</tt></a> *&gt;. See the <a href="porting4.html#qwidgetlist-section">section on </tt>QWidgetList</a> below for details.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">        QWidgetList *list = QApplication::topLevelWidgets();
        QWidgetListIt it(*list);
        QWidget *widget;
        while ((widget = it.current())) {
            if (widget-&gt;inherits(&quot;MainWindow&quot;))
                ((MainWindow *)widget)-&gt;updateRecentFileItems();
            ++it;
        }
        delete list;</font></pre>
<p>you can rewrite it as</p>
<pre>        QWidgetList list = QApplication::topLevelWidgets();
        for (int i = 0; i &lt; list.size(); ++i) {
            if (MainWindow *mainWin = qobject_cast&lt;MainWindow&gt;(list.at(i)))
                mainWin-&gt;updateRecentFileItems();
        }</pre>
</li>
<li>QApplication::setMainWidget() is no longer used. When all an application's windows are closed, the application will exit normally.</li>
</ol>
<a name="qaquastyle"></a>
<h2>QAquaStyle</h2>
<p>The <tt>QAquaStyle</tt> class first appeared in Qt 3.0, when the Qt/Mac port was first released. It emulated Apple's &quot;Aqua&quot; theme. In Qt 3.1, <a href="porting4.html#qaquastyle"><tt>QAquaStyle</tt></a> was obsoleted by QMacStyle, which uses Appearance Manager to perform its drawing.</p>
<p>The <tt>QAquaStyle</tt> class is no longer provided in Qt 4. Use QMacStyle instead.</p>
<a name="qasciidict-section"></a><a name="qasciicache-t"></a>
<h2>QAsciiCache&lt;T&gt;</h2>
<p><tt>QAsciiCache&lt;T&gt;</tt> has been renamed Q3AsciiCache&lt;T&gt; and moved to the Qt3Support library. It has been replaced by QCache&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, T&gt;.</p>
<p>For details, read the <a href="porting4.html#qcache-section">section on </tt>QCache&lt;T&gt;</tt></a>, mentally substituting <a href="core/QByteArray.html"><tt>QByteArray</tt></a> for <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<a name="qasciidict-t"></a>
<h2>QAsciiDict&lt;T&gt;</h2>
<p>QAsciiDict&lt;T&gt; and QAsciiDictIterator&lt;T&gt; have been renamed Q3AsciiDict&lt;T&gt; and Q3AsciiDictIterator&lt;T&gt; and moved to the Qt3Support library. They have been replaced by the more modern QHash&lt;Key, T&gt; and QMultiHash&lt;Key, T&gt; classes and their associated iterator classes.</p>
<p>When porting old code that uses Q3AsciiDict&lt;T&gt; to Qt 4, there are four classes that you can use:</p>
<ul>
<li>QMultiHash&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, T *&gt;</li>
<li>QMultiHash&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, T&gt;</li>
<li>QHash&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, T *&gt;</li>
<li>QHash&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, T&gt;</li>
</ul>
<p>For details, read the <a href="porting4.html#qdict-section">section on </tt>QDict&lt;T&gt;</tt></a>, mentally substituting <a href="core/QByteArray.html"><tt>QByteArray</tt></a> for <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<a name="qasyncio"></a>
<h2>QAsyncIO</h2>
<p>The <tt>QAsyncIO</tt> class was used internally in Qt 2.x in conjunction with QImageConsumer. It was obsoleted in Qt 3.0&#x2e;</p>
<p>If you use this mechanism in your application, please submit a report to the Task Tracker</tt> on the Trolltech website and we will try to find a satisfactory substitute.</p>
<a name="qbackinsertiterator"></a>
<h2>QBackInsertIterator</h2>
<p>The undocumented <tt>QBackInsertIterator</tt> class has been removed from the Qt library. If you need it in your application, feel free to copy the source code from the Qt 3 <tt>&lt;qtl.h&gt;</tt> header file.</p>
<a name="qbitarray"></a>
<h2>QBitArray</h2>
<p>In Qt 3, <a href="core/QBitArray.html"><tt>QBitArray</tt></a> inherited from <a href="core/QByteArray.html"><tt>QByteArray</tt></a>. In Qt 4, <a href="core/QBitArray.html"><tt>QBitArray</tt></a> is a totally independent class. This makes very little difference to the user, except that the new <a href="core/QBitArray.html"><tt>QBitArray</tt></a> doesn't provide any of <a href="core/QByteArray.html"><tt>QByteArray</tt></a>'s byte-based API anymore. These calls will result in a compile-time error, except calls to QBitArray::truncate(), whose parameter was a number of <i>bytes</i> in Qt 3 and a number of bits in Qt 4.</p>
<p><a href="core/QBitArray.html"><tt>QBitArray</tt></a> was an explicitly shared class in Qt 3. See <a href="porting4.html#explicit-sharing">Explicit Sharing</tt></a> for more information.</p>
<p>The <tt>QBitVal</tt> class has been renamed QBitRef.</p>
<a name="qbutton"></a>
<h2>QButton</h2>
<p>The <tt>QButton</tt> class has been replaced by <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a> in Qt 4. Classes like <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> and <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a> inherit from <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a>. As a help when porting older Qt applications, the Qt3Support library contains a Q3Button class implemented in terms of the new <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a>.</p>
<p>If you used the <tt>QButton</tt> class as a base class for your own button type and want to port your code to the newer <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a>, you need to be aware that <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a> has no equivalent for the Q3Button::drawButton(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *) virtual function. The solution is to reimplement QWidget::paintEvent() in your <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a> subclass as follows:</p>
<pre>    void MyButton::paintEvent(QPaintEvent *)
    {
        QPainter painter(this);
        drawButton(&amp;painter);
    }</pre>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Q3Button function</th><th><a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a> equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Q3Button::autoResize()</td><td>Call <a href="gui/QWidget.html"><tt>QWidget</tt></a>:setFixedSize(QWidget::sizeHint()) whenever you change the contents.</td></tr>
<tr valign="top" class="even"><td>Q3Button::isExclusiveToggle()</td><td>Use QAbstractButton::group() or QAbstractButton::autoExclusive() instead.</td></tr>
<tr valign="top" class="odd"><td>Q3Button::pixmap() const</td><td>QAbstractButton::icon()</td></tr>
<tr valign="top" class="even"><td>Q3Button::setAutoResize()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3Button::setPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>QAbstractButton::setIcon(const <a href="gui/QIcon.html"><tt>QIcon</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td>Q3Button::setState(ToggleState)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>Q3Button::setToggleType(ToggleType)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>Q3Button::state()</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>Q3Button::stateChanged(int)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>Q3Button::toggleType()</td><td>See remark below</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>In Qt 3, <tt>QButton</tt> had a &quot;toggle type&quot;, which could be QButton::SingleShot, QButton::Toggle, or QButton::Tristate. The new <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a> class doesn't support &quot;tristate&quot; directly; this feature is implemented in <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a> instead. The two other &quot;toggle types&quot; (<tt>QButton::SingleShot</tt> and <tt>QButton::Toggle</tt>) are replaced by a QAbstractButton::checkable property.</li>
<li>In Qt 3, <a href="porting4.html#qbutton"><tt>QButton</tt></a> had a &quot;toggle state&quot;, which could be <tt>QButton::Off</tt>, <tt>QButton::NoChange</tt>, or <tt>QButton::On</tt>. In Qt 4, this mechanism has been moved to <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>.</li>
</ol>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <tt>QButton</tt> virtual member functions in Qt 3 that aren't virtual in Qt 4.</p>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <tt>QButton</tt> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qbuttongroup"></a>
<h2>QButtonGroup</h2>
<p>The <tt>QButtonGroup</tt> class has been completely redesigned in Qt 4. For compatibility, the old <tt>QButtonGroup</tt> class has been renamed Q3ButtonGroup and has been moved to Qt3Support. Likewise, the <tt>QHButtonGroup</tt> and <tt>QVButtonGroup</tt> convenience subclasses have been renamed <tt>Q3HButtonGroup</tt> and <tt>Q3VButtonGroup</tt> and moved to the Qt3Support library.</p>
<p>The old <tt>QButtonGroup</tt>, as well as Q3ButtonGroup, can be used in two ways:</p>
<ol type="1">
<li>The button group is the parent widget of a number of buttons, i.e&#x2e; the button group is the parent argument in the button constructor. The buttons are assigned identifiers 0, 1, 2, etc., in the order they are created. A Q3ButtonGroup can display a frame and a title because it inherits Q3GroupBox.</li>
<li>The button group is an invisible widget and the contained buttons have some other parent widget. In this usage, each button must be manually inserted, using Q3ButtonGroup::insert(), into the button group and given an ID number.</li>
</ol>
<p>Unlike Q3ButtonGroup, the new <a href="gui/QButtonGroup.html"><tt>QButtonGroup</tt></a> doesn't inherit <a href="gui/QWidget.html"><tt>QWidget</tt></a>. It is very similar to a &quot;hidden Q3ButtonGroup&quot;.</p>
<p>If you use a Q3ButtonGroup, Q3HButtonGroup, or Q3VButtonGroup as a widget and want to port to Qt 4, you can replace it with <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>. In Qt 4, radio buttons with the same parent are automatically part of an exclusive group, so you normally don't need to do anything else. See also the <a href="porting4.html#qgroupbox-section">section on </tt>QGroupBox</a> below.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QButtonGroup.html"><tt>QButtonGroup</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qbytearray-section"></a><a name="qbytearray"></a>
<h2>QByteArray</h2>
<p>In Qt 3, <a href="core/QByteArray.html"><tt>QByteArray</tt></a> was simply a typedef for QMemArray&lt;char&gt;. In Qt 4, <a href="core/QByteArray.html"><tt>QByteArray</tt></a> is a class in its own right, with a higher-level API in the style of <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<p>Here are the main issues to be aware of when porting to Qt 4:</p>
<ol type="1">
<li>The QMemArray(int size) constructor has been replaced with <a href="core/QByteArray.html"><tt>QByteArray</tt></a>(int size, char ch). The second argument specifies which character should be used for initializing the array; pass '\0' if you have no specific needs.<p>For example, if you have code like</p>
<pre><font color="#404040">    QByteArray ba(64);</font></pre>
<p>you can rewrite it as</p>
<pre>    QByteArray ba(64, '\0');</pre>
</li>
<li>QMemArray::at() returned a non-const reference, whereas the new QByteArray::at() returns a const value. Code like<pre>    ba.at(0) = 'X';</pre>
<p>will no longer compile. Instead, use QByteArray::operator[]:</p>
<pre>    ba[0] = 'X';</pre>
</li>
<li>The QMemArray::contains(char) function has been renamed QByteArray::count(char). In addition, there now exists a QByteArray::contains(char) function that returns a boolean value. Replace old calls to contains() with either count() or contains(), depending on whether you care about the specific number of occurrences of a character in the byte array or only care about whether the array contains that character or not.</li>
<li>The new <a href="core/QByteArray.html"><tt>QByteArray</tt></a> has no assign() function. Calls to QMemArray::assign(const QMemArray &amp;) can be replaced by calls to QByteArray::operator=(). Calls to QMemArray::assign(const T *, uint) have no equivalent in Qt 4; if you use it, the solution is either to use QByteArray::fromRawData() and to call free() yourself to avoid a memory leak, or to use the <a href="core/QByteArray.html"><tt>QByteArray</tt></a>(const char *, int) constructor, which will take a deep copy of the data.</li>
<li>QMemArray::bsearch() and QMemArray::sort() have no equivalent in the new <a href="core/QByteArray.html"><tt>QByteArray</tt></a> class. Use <tt>qBinaryFind</tt> and <tt>qSort</tt> if you need that functionality.</li>
</ol>
<p><a href="core/QByteArray.html"><tt>QByteArray</tt></a> was an explicitly shared class in Qt 3. See <a href="porting4.html#explicit-sharing">Explicit Sharing</tt></a> for more information.</p>
<a name="qcache-section"></a><a name="qcache-t"></a>
<h2>QCache&lt;T&gt;</h2>
<p>QCache&lt;T&gt; has been renamed Q3Cache&lt;T&gt; and moved to Qt3Support. The new QCache class has a different API, and takes different template parameters: QCache&lt;Key, T&gt;.</p>
<p>When porting to Qt 4, QCache&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T&gt; is the obvious substitute for Q3Cache&lt;T&gt;. The following table summarizes the API differences.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Q3Cache&lt;T&gt; function</th><th>QCache&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T&gt; equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Q3Cache::Q3Cache(int maxCost, int size, bool caseSensitive)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>Q3Cache::autoDelete()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3Cache::count()</td><td>QCache::count() or QCache::size() (equivalent)</td></tr>
<tr valign="top" class="even"><td>Q3Cache::setAutoDelete()</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>Q3Cache::size()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3Cache::statistics()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3Cache::operator=()</td><td>See remark below</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>Q3Cache requires the user to allocate a specific number of buckets by passing a prime number (17 by default) to the constructor. In contrast, the new QCache's hash table automatically grows and shrinks as needed, and the constructor doesn't take a prime number.</li>
<li>Q3Cache supportes case-insensitive lookups by passing false as second argument to the constructor. This feature has no equivalent in QMultiHash. Instead, call QString::toLower() before you insert or lookup a key in the hash.</li>
<li>The Q3Cache::insert() function returns a <tt>bool</tt> value that indicates whether or not the item actually was inserted in the cache. If the item wasn't inserted, it was the caller's responsibility to delete the item. The new QCache::insert() function returns <tt>void</tt> and either adds it to the cache or deletes it right away. Old code like<pre>    if (!cache.insert(key, object))
        delete object;</pre>
<p>becomes</p>
<pre>    cache.insert(key, object);</pre>
</li>
<li>The new QCache class <i>always</i> takes ownership of the items it stores (i.e&#x2e; auto-delete is always on). If you use Q3Cache with auto-delete turned off (the rarely useful default), you cannot use QCache as a direct substitute. One unelegant trick that works well in practice is to use QCache&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T *&gt; instead of QCache&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T&gt;. In that case, QCache owns the pointers, not the objects that the pointers refer to. For example,<pre>        Q3Cache&lt;QWidget&gt; cache;
        cache.insert(widget-&gt;name(), widget);
        ...
        QWidget *foo = cache.take(&quot;foo&quot;);
        if (foo)
            foo-&gt;show();</pre>
<p>becomes</p>
<pre>        typedef QWidget *QWidgetPtr;
        QCache&lt;QString, QWidgetPtr&gt; cache;
        cache.insert(widget-&gt;name(), new QWidgetPtr(widget));
        ...
        QWidgetPtr *ptr = cache.take(&quot;foo&quot;);
        if (ptr) {
            QWidget *foo = *ptr;
            delete ptr;
            foo-&gt;show();
        }</pre>
<p>An alternative is to stick to using Q3Cache.</p>
</li>
</ol>
<p>QCacheIterator&lt;T&gt; has been renamed Q3CacheIterator&lt;T&gt; and moved to the Qt3Support library. The new QCache class doesn't offer any iterator types.</p>
<a name="qcanvas"></a>
<h2>QCanvas</h2>
<p>The canvas module classes have been renamed and moved to the Qt3Support library.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 class name</th><th>Compatibility class in Qt 4</th></tr></thead>
<tr valign="top" class="odd"><td><tt>QCanvas</tt></td><td>Q3Canvas</td></tr>
<tr valign="top" class="even"><td><tt>QCanvasEllipse</tt></td><td><a href="graphicsview-porting.html#q3canvasellipse"><tt>Q3CanvasEllipse</tt></a></td></tr>
<tr valign="top" class="odd"><td><tt>QCanvasItem</tt></td><td>Q3CanvasItem</td></tr>
<tr valign="top" class="even"><td><tt>QCanvasItemList</tt></td><td><a href="graphicsview-porting.html#q3canvasitemlist"><tt>Q3CanvasItemList</tt></a></td></tr>
<tr valign="top" class="odd"><td><tt>QCanvasLine</tt></td><td><a href="graphicsview-porting.html#q3canvasline"><tt>Q3CanvasLine</tt></a></td></tr>
<tr valign="top" class="even"><td><tt>QCanvasPixmap</tt></td><td>Q3CanvasPixmap</td></tr>
<tr valign="top" class="odd"><td><tt>QCanvasPixmapArray</tt></td><td>Q3CanvasPixmapArray</td></tr>
<tr valign="top" class="even"><td><tt>QCanvasPolygon</tt></td><td><a href="graphicsview-porting.html#q3canvaspolygon"><tt>Q3CanvasPolygon</tt></a></td></tr>
<tr valign="top" class="odd"><td><tt>QCanvasPolygonalItem</tt></td><td><a href="graphicsview-porting.html#q3canvaspolygonalitem"><tt>Q3CanvasPolygonalItem</tt></a></td></tr>
<tr valign="top" class="even"><td><tt>QCanvasRectangle</tt></td><td><a href="graphicsview-porting.html#q3canvasrectangle"><tt>Q3CanvasRectangle</tt></a></td></tr>
<tr valign="top" class="odd"><td><tt>QCanvasSpline</tt></td><td><a href="graphicsview-porting.html#q3canvasspline"><tt>Q3CanvasSpline</tt></a></td></tr>
<tr valign="top" class="even"><td><tt>QCanvasSprite</tt></td><td><a href="graphicsview-porting.html#q3canvassprite"><tt>Q3CanvasSprite</tt></a></td></tr>
<tr valign="top" class="odd"><td><tt>QCanvasText</tt></td><td><a href="graphicsview-porting.html#q3canvastext"><tt>Q3CanvasText</tt></a></td></tr>
<tr valign="top" class="even"><td><tt>QCanvasView</tt></td><td>Q3CanvasView</td></tr>
</table></p>
<p><a href="graphicsview.html">The Graphics View Framework</tt></a> replaces <a href="porting4.html#qcanvas"><tt>QCanvas</tt></a>. For more on porting to Graphics View, see <a href="graphicsview-porting.html">Porting to Graphics View</tt></a>.</p>
<a name="qcolor"></a>
<h2>QColor</h2>
<p>In Qt 4, <a href="gui/QColor.html"><tt>QColor</tt></a> is a value type like <a href="core/QPoint.html"><tt>QPoint</tt></a> or <a href="core/QRect.html"><tt>QRect</tt></a>. Graphics system-specific code has been implemented in <a href="gui/QColormap.html"><tt>QColormap</tt></a>.</p>
<p>The <tt>QColor::maxColors()</tt> function has been replaced by QColormap::size().</p>
<p>The <tt>QColor::numBitPlanes()</tt> function has been replaced by QColormap::depth().</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th colspan="4">Predefined Qt Colors</th></tr></thead>
<tr valign="top" class="odd"><td>Qt::color0</td><td>Qt::color1</td><td>Qt::black</td><td>Qt::white</td></tr>
<tr valign="top" class="even"><td>Qt::darkGray</td><td>Qt::gray</td><td>Qt::lightGray</td><td>Qt::red</td></tr>
<tr valign="top" class="odd"><td>Qt::green</td><td>Qt::blue</td><td>Qt::cyan</td><td>Qt::magenta</td></tr>
<tr valign="top" class="even"><td>Qt::yellow</td><td>Qt::darkRed</td><td>Qt::darkGreen</td><td>Qt::darkBlue</td></tr>
<tr valign="top" class="odd"><td>Qt::darkCyan</td><td>Qt::darkMagenta</td><td>Qt::darkYellow</td><td>Qt::transparent</td></tr>
</table></p>
<p>The predefined colors listed in the table above were static <a href="gui/QColor.html"><tt>QColor</tt></a> objects in Qt 3. In Qt 4, they are enum values of type Qt::GlobalColor. Thanks to the implicit <a href="gui/QColor.html"><tt>QColor</tt></a>(Qt::GlobalColor) constructor, the enum values are automatically converted to <a href="gui/QColor.html"><tt>QColor</tt></a>s in most contexts. Occasionally, you might need a cast.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    QColor lightCyan = Qt::cyan.light(180);</font></pre>
<p>you can rewrite it as</p>
<pre>    QColor lightCyan = QColor(Qt::cyan).light(180);</pre>
<a name="qcolorgroup"></a>
<h2>QColorGroup</h2>
<p>In Qt 3, a <a href="gui/QPalette.html"><tt>QPalette</tt></a> consisted of three <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> objects. In Qt 4, the (rarely used) <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> abstraction has been eliminated. For source compatibility, a <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> class is available when <tt>QT3_SUPPORT</tt> is defined.</p>
<p>The new <a href="gui/QPalette.html"><tt>QPalette</tt></a> still works in terms of color groups, specified through enum values (QPalette::Active, QPalette::Disabled, and QPalette::Inactive). It also has the concept of a <i>current</i> color group, which you can set using QPalette::setCurrentColorGroup().</p>
<p>The <a href="gui/QPalette.html"><tt>QPalette</tt></a> object returned by QWidget::palette() returns a <a href="gui/QPalette.html"><tt>QPalette</tt></a> initialized with the correct current color group for the widget. This means that if you had code like</p>
<pre><font color="#404040">    painter.setBrush(colorGroup().brush(QColorGroup::Text));</font></pre>
<p>you can simply replace colorGroup() with palette():</p>
<pre>    painter.setBrush(palette().brush(QPalette::Text));</pre>
<a name="qcolordrag"></a>
<h2>QColorDrag</h2>
<p>The <tt>QColorDrag</tt> class has been renamed Q3ColorDrag and moved to the Qt3Support library. In Qt 4, use <a href="gui/QMimeData.html"><tt>QMimeData</tt></a> instead and call QMimeData::setColor() to set the color.</p>
<a name="qcombobox"></a>
<h2>QComboBox</h2>
<p>In Qt 3, the list box used to display the contents of a <tt>QComboBox</tt> widget could be accessed by using the <tt>listBox()</tt> function. In Qt 4, the standard list box is provided by a <a href="gui/QListView.html"><tt>QListView</tt></a> widget, and can be accessed with the view() function.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QComboBox.html"><tt>QComboBox</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qcstring"></a>
<h2>QCString</h2>
<p>In Qt 3, <a href="porting4.html#qcstring"><tt>QCString</tt></a> inherited from <a href="core/QByteArray.html"><tt>QByteArray</tt></a>. The main drawback of this approach is that the user had the responsibility of ensuring that the string is '\0'-terminated. Another important issue was that conversions between <tt>QCString</tt> and <a href="core/QByteArray.html"><tt>QByteArray</tt></a> often gave confusing results. (See the <a href="http://doc.trolltech.com/qq/qq05-achtung.html#qcstringisastringofchars">Achtung! Binary and Character Data</tt></a> article in <i>Qt Quarterly</i> for an overview of the pitfalls.)</p>
<p>Qt 4 solves that problem by merging the <a href="core/QByteArray.html"><tt>QByteArray</tt></a> and <tt>QCString</tt> classes into one class called <a href="core/QByteArray.html"><tt>QByteArray</tt></a>. Most functions that were in <tt>QCString</tt> previously have been moved to <a href="core/QByteArray.html"><tt>QByteArray</tt></a>. The '\0' issue is handled by having <a href="core/QByteArray.html"><tt>QByteArray</tt></a> allocate one extra byte that it always sets to '\0'. For example:</p>
<pre>    QByteArray ba(&quot;Hello&quot;);
    ba.size();             <span class="comment">// returns 5 (the '\0' is not counted)</span>
    ba.length();           <span class="comment">// returns 5</span>
    ba.data()[5];          <span class="comment">// returns '\0'</span></pre>
<p>The Qt3Support library contains a class called Q3CString that inherits from the new <a href="core/QByteArray.html"><tt>QByteArray</tt></a> class and that extends it to provide an API that is as close to the old <tt>QCString</tt> class as possible. Note that the following functions aren't provided by Q3CString:</p>
<ul>
<li>QCString::find(const <a href="core/QRegExp.html"><tt>QRegExp</tt></a> &amp;, int)</li>
<li>QCString::findRev(const <a href="core/QRegExp.html"><tt>QRegExp</tt></a> &amp;, int)</li>
<li>QCString::contains(const <a href="core/QRegExp.html"><tt>QRegExp</tt></a> &amp;)</li>
<li>QCString::replace(const <a href="core/QRegExp.html"><tt>QRegExp</tt></a> &amp;, const char *)</li>
</ul>
<p>The following functions have lost their last parameter, which specified whether the search was case sensitive or not:</p>
<ul>
<li>QByteArray::find(char, int)</li>
<li>QByteArray::find(const char *, int)</li>
<li>QByteArray::findRev(char, int)</li>
<li>QByteArray::findRev(const char *, int)</li>
<li>QByteArray::contains(char)</li>
<li>QByteArray::contains(const char *)</li>
</ul>
<p>In both cases, the solution is to convert the <tt>QCString</tt> to a <a href="porting4.html#qstring"><tt>QString</tt></a> and use the corresponding <a href="porting4.html#qstring"><tt>QString</tt></a> functions instead.</p>
<p>Also be aware that <tt>QCString::size()</tt> (inherited from <a href="core/QByteArray.html"><tt>QByteArray</tt></a>) used to return the size of the character data <i>including</i> the '\0'-terminator, whereas the new QByteArray::size() is just a synonym for QByteArray::length(). This brings <a href="core/QByteArray.html"><tt>QByteArray</tt></a> in line with <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<p>When porting to Qt 4, occurrences of <tt>QCString</tt> should be replaced with <a href="core/QByteArray.html"><tt>QByteArray</tt></a> or <a href="porting4.html#qstring"><tt>QString</tt></a>. The following table summarizes the API differences between the Q3CString class and the Qt 4 <a href="core/QByteArray.html"><tt>QByteArray</tt></a> and <a href="porting4.html#qstring"><tt>QString</tt></a> classes:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Q3CString function</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Q3CString::Q3CString(const char *, uint)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>Q3CString::Q3CString(int)</td><td>QByteArray::QByteArray(int, char)</td></tr>
<tr valign="top" class="odd"><td>Q3CString::leftJustify()</td><td>QString::leftJustified()</td></tr>
<tr valign="top" class="even"><td>Q3CString::length()</td><td>QByteArray::length() or QByteArray::size() (equivalent)</td></tr>
<tr valign="top" class="odd"><td>Q3CString::lower()</td><td>QByteArray::toLower()</td></tr>
<tr valign="top" class="even"><td>Q3CString::rightJustify()</td><td>QString::rightJustified()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::setExpand()</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>Q3CString::simplifyWhiteSpace()</td><td>QByteArray::simplified()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::sprintf()</td><td>QString::sprintf()</td></tr>
<tr valign="top" class="even"><td>Q3CString::stripWhiteSpace()</td><td>QByteArray::trimmed()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::toDouble()</td><td>QString::toDouble()</td></tr>
<tr valign="top" class="even"><td>Q3CString::toFloat()</td><td>QString::toFloat()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::toInt()</td><td>QString::toInt()</td></tr>
<tr valign="top" class="even"><td>Q3CString::toLong()</td><td>QString::toLong()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::toShort()</td><td>QString::toShort()</td></tr>
<tr valign="top" class="even"><td>Q3CString::toUInt()</td><td>QString::toUInt()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::toULong()</td><td>QString::toULong()</td></tr>
<tr valign="top" class="even"><td>Q3CString::toUShort()</td><td>QString::toUShort()</td></tr>
<tr valign="top" class="odd"><td>Q3CString::upper()</td><td>QByteArray::toUpper()</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>Q3CString(const char *str, uint max) constructs a string of length strlen(str) or <i>max</i> - 1, whichever is shorter. <a href="core/QByteArray.html"><tt>QByteArray</tt></a>(const char *data, int size) constructs a byte array containing exactly <i>size</i> bytes.<p>For example, if you have code like</p>
<pre><font color="#404040">        QCString str1(&quot;Hello&quot;, 4);           // &quot;Hel&quot;
        QCString str2(&quot;Hello world!&quot;, n);</font></pre>
<p>you can rewrite it as</p>
<pre>        QByteArray str1(&quot;Hello&quot;, 3);
        QByteArray str2(&quot;Hello world!&quot;);
        str2.truncate(n - 1);</pre>
</li>
<li>Q3CString::setExpand(uint index, char ch) has no equivalent in Qt 4.<p>For example, if you have code like</p>
<pre><font color="#404040">        QCString str(&quot;Hello world&quot;);
        str.setExpand(16, '\n');            // &quot;Hello world     \n&quot;</font></pre>
<p>you can rewrite it as</p>
<pre>        QByteArray str(&quot;Hello world&quot;);
        while (str.size() &lt; 16)
            str += ' ';
        str += '\n';</pre>
</li>
</ol>
<p>Since the old <tt>QCString</tt> class inherited from <a href="core/QByteArray.html"><tt>QByteArray</tt></a>, everything that is said in the <a href="porting4.html#qbytearray-section">QByteArray section</tt></a> applies for <tt>QCString</tt> as well.</p>
<a name="qcustomevent"></a>
<h2>QCustomEvent</h2>
<p>In Qt 3, developers could create a custom event by constructing a new <a href="porting4.html#qcustomevent"><tt>QCustomEvent</tt></a>, and send relevant data to other components in the application by passing a void pointer, either on construction or using the setData() function. Objects could receive custom events by reimplementing the customEvent() function, and access the stored data using the event's data() function.</p>
<p>In Qt 4, custom events are created by subclassing <a href="core/QEvent.html"><tt>QEvent</tt></a>. Event-specific data can be stored in a way that is appropriate for your application. Custom events are still delivered to each object's customEvent() handler function, but as <a href="core/QEvent.html"><tt>QEvent</tt></a> objects rather than as deprecated <a href="porting4.html#qcustomevent"><tt>QCustomEvent</tt></a> objects.</p>
<a name="qdatabrowser"></a>
<h2>QDataBrowser</h2>
<p>The <tt>QDataBrowser</tt> class has been renamed Q3DataBrowser and moved to the Qt3Support library. In Qt 4.2, you should use the <a href="gui/QDataWidgetMapper.html"><tt>QDataWidgetMapper</tt></a> class to create data-aware forms.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qdatapump"></a>
<h2>QDataPump</h2>
<p>The <tt>QDataPump</tt> class was used internally in Qt 2.x in conjunction with QImageConsumer. It was obsoleted in Qt 3.0&#x2e;</p>
<p>If you use this mechanism in your application, please submit a report to the Task Tracker</tt> on the Trolltech website and we will try to find a satisfactory substitute.</p>
<a name="qdatasink"></a>
<h2>QDataSink</h2>
<p>The <tt>QDataSink</tt> class was used internally in Qt 2.x in conjunction with QImageConsumer. It was obsoleted in Qt 3.0&#x2e;</p>
<p>If you use this mechanism in your application, please submit a report to the Task Tracker</tt> on the Trolltech website and we will try to find a satisfactory substitute.</p>
<a name="qdatasource"></a>
<h2>QDataSource</h2>
<p>The <tt>QDataSource</tt> class was used internally in Qt 2.x in conjunction with QImageConsumer. It was obsoleted in Qt 3.0&#x2e; If you use this mechanism in your application, please submit a report to the Task Tracker</tt> on the Trolltech website and we will try to find a satisfactory substitute.</p>
<a name="qdatatable"></a>
<h2>QDataTable</h2>
<p>The <tt>QDataTable</tt> class has been renamed Q3DataTable and moved to the Qt3Support library. In Qt 4.2, you should use the <a href="gui/QDataWidgetMapper.html"><tt>QDataWidgetMapper</tt></a> class to create data-aware forms.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qdataview"></a>
<h2>QDataView</h2>
<p>The <tt>QDataView</tt> class has been renamed Q3DataView and moved to the Qt3Support library. In Qt 4.2, you should use the <a href="gui/QDataWidgetMapper.html"><tt>QDataWidgetMapper</tt></a> class to create data-aware forms.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qdateedit"></a>
<h2>QDateEdit</h2>
<p>The <a href="gui/QDateEdit.html"><tt>QDateEdit</tt></a> class in Qt 4 is a convenience class based on <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a>. The old class has been renamed Q3DateEdit and moved to the Qt3Support library.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <tt>QDateEdit</tt> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qdatetimeeditbase"></a>
<h2>QDateTimeEditBase</h2>
<p>The <tt>QDateTimeEditBase</tt> class has been renamed Q3DateTimeEditBase and moved to Qt3Support. Use <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> or <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> instead.</p>
<a name="qdatetimeedit"></a>
<h2>QDateTimeEdit</h2>
<p>The old <tt>QDateTimeEdit</tt> class has been renamed Q3DateTimeEditBase and moved to Qt3Support. The new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> in Qt 4 has been rewritten from scratch to provide a more flexible and powerful API.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qdeepcopy-t"></a>
<h2>QDeepCopy&lt;T&gt;</h2>
<p>The <tt>QDeepCopy&lt;T&gt;</tt> class in Qt 3 provided a means of ensuring that implicitly shared and explicitly shared classes referenced unique data. This was necessary because the reference counting in Qt's container classes was done in a thread-unsafe manner.</p>
<p>With Qt 4, <tt>QDeepCopy&lt;T&gt;</tt> has been renamed Q3DeepCopy&lt;T&gt; and moved to the Qt3Support library. Removing it from existing code is straightforward.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    QString str1 = &quot;I am a string&quot;;
    QDeepCopy&lt;QString&gt; str2 = str1;
    QString str3 = QDeepCopy&lt;QString&gt;(str2);</font></pre>
<p>you can rewrite it as</p>
<pre>    QString str1 = &quot;I am a string&quot;;
    QString str2 = str1;
    QString str3 = str2;</pre>
<a name="qdial"></a>
<h2>QDial</h2>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QDial.html"><tt>QDial</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QDial.html"><tt>QDial</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qdict-section"></a><a name="qdict-t"></a>
<h2>QDict&lt;T&gt;</h2>
<p><tt>QDict&lt;T&gt;</tt> has been renamed Q3Dict&lt;T&gt; and moved to Qt3Support. It has been replaced by the more modern QHash&lt;Key, T&gt; and QMultiHash&lt;Key, T&gt; classes.</p>
<p>When porting old code that uses QDict&lt;T&gt; to Qt 4, there are four classes that you can use:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 4 class</th><th>When to use it</th></tr></thead>
<tr valign="top" class="odd"><td>QMultiHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T *&gt;</td><td>Since Q3Dict&lt;T&gt; is pointer-based and allows duplicate keys, this is usually the most straightforward conversion.</td></tr>
<tr valign="top" class="even"><td>QMultiHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T&gt;</td><td>If type <tt>T</tt> is an assignable data type</tt>, you can use <tt>T</tt> as the value type rather than <tt>T *</tt>. This often leads to nicer code.</td></tr>
<tr valign="top" class="odd"><td>QHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T *&gt;</td><td rowspan="2">If you don't use duplicate keys, you can use QHash instead of QMultiHash. QMultiHash inherits from QHash.</td></tr>
<tr valign="top" class="even"><td>QHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T&gt;</td></tr>
</table></p>
<p>The APIs of Q3Dict&lt;T&gt; and QMultiHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T *&gt; are quite similar. The main issue is that Q3Dict supports auto-delete whereas QMultiHash doesn't.</p>
<p>The following table summarizes the API differences between the two classes:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Q3Dict function</th><th>QMultiHash equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Q3Dict::Q3Dict(int size, bool caseSensitive)</td><td>See remarks below</td></tr>
<tr valign="top" class="even"><td>Q3Dict::autoDelete()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3Dict::count()</td><td>QMultiHash::count() or QMultiHash::size() (equivalent)</td></tr>
<tr valign="top" class="even"><td>Q3Dict::find(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>QMultiHash::value(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="odd"><td>Q3Dict::remove(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>QMultiHash::take(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td>Q3Dict::resize(uint)</td><td>QMultiHash::reserve(int)</td></tr>
<tr valign="top" class="odd"><td>Q3Dict::setAutoDelete()</td><td>See discussion below</td></tr>
<tr valign="top" class="even"><td>Q3Dict::size()</td><td>QMultiHash::capacity()</td></tr>
<tr valign="top" class="odd"><td>Q3Dict::statistics()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3Dict::operator[](const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>See remark below</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>Q3Dict requires the user to allocate a specific number of buckets by passing a prime number (17 by default) to the constructor and/or calling Q3Dict::resize() later on. In contrast, QMultiHash's hash table automatically grows and shrinks as needed, and the constructor doesn't take a prime number.</li>
<li>Q3Dict supportes case-insensitive lookups by passing false as second argument to the constructor. This feature has no equivalent in QMultiHash. Instead, call QString::toLower() before you insert or lookup a key in the hash.</li>
<li>Q3Dict::size() and QMultiHash::size() have different semantics. The former returns the number of buckets in the container, whereas the latter returns the number of <i>items</i> in the container.</li>
<li>If there are multiple items with the same key, Q3Dict::remove() removes only the most recently inserted item, whereas QMultiHash::remove() removes all items that share a particular key. To remove only the most recently inserted item, call QMultiHash::take().</li>
<li>Q3Dict has only one [] operator (Q3Dict::operator[]()), providing const access to an item's value. QMultiHash also has a non-const overload that can be used on the left side of the assignment operator. If you use the [] operator on a non-const QHash with an unexisting item, QHash will created an element and initialize it to be a null pointer. For that reason, Q3Dict::operator[] should be converted to QMultiHash::value(), not QMultiHash::operator[].</li>
</ol>
<p>If you use Q3Dict's auto-delete feature (by calling Q3Dict::setAutoDelete(true)), you need to do some more work. You have two options: Either you call <tt>delete</tt> yourself whenever you remove an item from the container, or you use QMultiHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T&gt; instead of QMultiHash&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T *&gt; (i.e&#x2e; store values directly instead of pointers to values). Here, we'll see when to call <tt>delete</tt>.</p>
<p>The following table summarizes the idioms that you need to watch out for if you want to call <tt>delete</tt> yourself.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Q3Dict idiom</th><th>QMultiHash idiom</th></tr></thead>
<tr valign="top" class="odd"><td><pre>    dict.replace(key, value);</pre>
</td><td><pre>    delete hash.take(key);
    hash.insert(key, value);</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>    dict.remove(key, value);</pre>
</td><td><pre>    delete hash.take(key);</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>    dict.clear();</pre>
<p>(also called from Q3Dict's destructor)</p>
</td><td><pre>    while (!hash.isEmpty()) {
        T *value = *hash.begin();
        hash.erase(hash.begin());
        delete value;
    }</pre>
<p>In 99% of cases, the following idiom also works:</p>
<pre>    qDeleteAll(hash);
    hash.clear();</pre>
<p>However, it may lead to crashes if <tt>hash</tt> is referenced from the value type's destructor, because <tt>hash</tt> contains dangling pointers until clear() is called.</p>
</td></tr>
</table></p>
<p>Be aware that Q3Dict's destructor automatically calls clear(). If you have a Q3Dict data member in a custom class and use the auto-delete feature, you will need to call <tt>delete</tt> on all the items in the container from your class destructor to avoid a memory leak.</p>
<p>Finally, <tt>QDictIterator&lt;T&gt;</tt> (renamed Q3DictIterator&lt;T&gt;) must also be ported. There are no fewer than four iterator classes that can be used as a replacement: QHash::const_iterator, QHash::iterator, QHashIterator, and QMutableHashIterator. The most straightforward class to use when porting is QHashIterator&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>, T *&gt;. The following table summarizes the API differences:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Q3DictIterator functions</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Q3DictIterator::count()</td><td>QHash::count() or QHash::size()</td></tr>
<tr valign="top" class="even"><td>Q3DictIterator::current()</td><td>QHashIterator::value()</td></tr>
<tr valign="top" class="odd"><td>Q3DictIterator::currentKey()</td><td>QHashIterator::key()</td></tr>
<tr valign="top" class="even"><td>Q3DictIterator::isEmpty()</td><td>QHash::isEmpty()</td></tr>
<tr valign="top" class="odd"><td>Q3DictIterator::toFirst()</td><td>QHashIterator::toFront()</td></tr>
<tr valign="top" class="even"><td>Q3DictIterator::operator()()</td><td>QHashIterator::value()</td></tr>
<tr valign="top" class="odd"><td>Q3DictIterator::operator*()</td><td>QHashIterator::value()</td></tr>
<tr valign="top" class="even"><td>Q3DictIterator::operator++()</td><td>See remark below</td></tr>
</table></p>
<p>Be aware that QHashIterator has a different way of iterating than Q3DictIterator. A typical loop with Q3DictIterator looks like this:</p>
<pre>    Q3DictIterator&lt;QWidget&gt; i(dict);
    while (i.current() != 0) {
        do_something(i.currentKey(), i.current());
        ++i;
    }</pre>
<p>Here's the equivalent QHashIterator loop:</p>
<pre>    QHashIterator&lt;QString, QWidget *&gt; i(hash);
    while (i.hasNext()) {
        i.next();                   <span class="comment">// must come first</span>
        do_something(i.key(), i.value());
    }</pre>
<p>See Java-style iterators</tt> for details.</p>
<a name="qdir"></a>
<h2>QDir</h2>
<p>The following functions used to have a boolean <tt>acceptAbsPath</tt> parameter that defaulted to true:</p>
<ul>
<li>QDir::filePath()</li>
<li>QDir::absFilePath()</li>
<li>QDir::cd()</li>
<li>QDir::mkdir()</li>
<li>QDir::rmdir()</li>
<li>QDir::remove()</li>
<li>QDir::rename()</li>
<li>QDir::exists()</li>
</ul>
<p>In Qt 3, if <tt>acceptAbsPath</tt> is true, a file name starting with '/' is be returned without change; if <tt>acceptAbsPath</tt> is false, an absolute path is prepended to the file name. For example:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Current directory</th><th>File name</th><th><tt>acceptAbsPath</tt></th><th>File path</th></tr></thead>
<tr valign="top" class="odd"><td rowspan="2">/home/tsmith</td><td rowspan="2">index.html</td><td>true</td><td>/home/tsmith/index.html</td></tr>
<tr valign="top" class="even"><td>false</td><td>/home/tsmith/index.html</td></tr>
<tr valign="top" class="odd"><td rowspan="2">/home/tsmith</td><td rowspan="2">/index.html</td><td>true</td><td>/index.html</td></tr>
<tr valign="top" class="even"><td>false</td><td>/home/tsmith/index.html</td></tr>
</table></p>
<p>In Qt 4, this parameter is no longer available. If you use it in your code, you can check that QDir::isRelativePath() returns false instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    QDir dir(&quot;/home/tsmith&quot;);
    QString path = dir.filePath(fileName, false);</font></pre>
<p>you can rewrite it as</p>
<pre>    QDir dir(&quot;/home/tsmith&quot;);
    QString path;
    if (dir.isRelativePath(fileName))
        path = dir.filePath(fileName);
    else
        path = fileName;</pre>
<p>QDir::encodedEntryList() has been removed.</p>
<p>fileInfoList(), entryInfoList(), and drives() now return a QList&lt;<a href="core/QFileInfo.html"><tt>QFileInfo</tt></a>&gt; and not a QPtrList&lt;<a href="core/QFileInfo.html"><tt>QFileInfo</tt></a>&gt; *. Code using these methods will not work with the Qt3Support library and must be adapted instead.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="core/QDir.html"><tt>QDir</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<p>QDir::match() now always matches case insensitively.</p>
<p>QDir::homeDirPath() has been removed. Use QDir::home() instead, and extract the path separately.</p>
<a name="qdns"></a>
<h2>QDns</h2>
<p>Qt 3 used its own implementation of the DNS protocol and provided a low-level <tt>QDns</tt> class. Qt 4's <a href="network/QHostInfo.html"><tt>QHostInfo</tt></a> class uses the system's <tt>gethostbyname()</tt> function from a thread instead.</p>
<p>The old <tt>QDns</tt> class has been renamed Q3Dns and moved to the Qt3Support library. The new <a href="network/QHostInfo.html"><tt>QHostInfo</tt></a> class has a radically different API: It consists mainly of two static functions, one of which is blocking (QHostInfo::fromName()), the other non-blocking (QHostInfo::lookupHost()). See the <a href="network/QHostInfo.html"><tt>QHostInfo</tt></a> class documentation for details.</p>
<a name="qdockarea"></a>
<h2>QDockArea</h2>
<p>The <tt>QDockArea</tt> class has been renamed Q3DockArea and moved to the Qt3Support library. In Qt 4, <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> handles the dock and toolbar areas itself. See the <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> documentation for details.</p>
<a name="qdockwindow"></a>
<h2>QDockWindow</h2>
<p>The old <tt>QDockWindow</tt> class has been renamed Q3DockWindow and moved to the Qt3Support library. In Qt 4, there is a new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> class with a different API. See the class documentation for details.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qdragobject"></a>
<h2>QDragObject</h2>
<p>The <tt>QDragObject</tt> class has been renamed Q3DragObject and moved to the Qt3Support library. In Qt 4, it has been replaced by the <a href="gui/QMimeData.html"><tt>QMimeData</tt></a> class. See the class documentation for details.</p>
<p>Note that the Q3DragObject::DragCopyOrMove drag and drop mode is interpreted differently to Qt 3's QDragObject::DragCopyOrMove mode. In Qt 3, a move operation was performed by default, and the user had to hold down the <b>Ctrl</b> key to perform a copy operation. In Qt 4, a copy operation is performed by default; the user has to hold down the <b>Shift</b> key to perform a move operation.</p>
<p>See <a href="porting4-dnd.html">Porting to Qt 4 (Drag and Drop)</tt></a> for a comparison between the drag and drop APIs in Qt 3 and Qt 4.</p>
<a name="qdropsite"></a>
<h2>QDropSite</h2>
<p>The <tt>QDropSite</tt> class has been renamed Q3DropSite and moved to the Qt3Support library.</p>
<p>The <a href="porting4.html#qdropsite"><tt>QDropSite</tt></a> class has been obsolete ever since Qt 2.0&#x2e; The only thing it does is call QWidget::setAcceptDrops(true).</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    class MyWidget : public QWidget, public QDropSite
    {
    public:
        MyWidget(const QWidget *parent)
            : QWidget(parent), QDropSite(this)
        {
        }
        ..&#x2e;
    }</font></pre>
<p>you can rewrite it as</p>
<pre>    class MyWidget : public QWidget
    {
    public:
        MyWidget(const QWidget *parent)
            : QWidget(parent)
        {
            setAcceptDrops(true);
        }
        ...
    }</pre>
<p>See <a href="porting4-dnd.html">Porting to Qt 4 (Drag and Drop)</tt></a> for a comparison between the drag and drop APIs in Qt 3 and Qt 4.</p>
<a name="qeditorfactory"></a>
<h2>QEditorFactory</h2>
<p>The <tt>QEditorFactory</tt> class has been renamed Q3EditorFactory and moved to the Qt3Support library.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qeventloop"></a>
<h2>QEventLoop</h2>
<p>In Qt 3, <tt>QEventLoop</tt> combined the Qt event loop and the event dispatching. In Qt 4, these tasks are now assigned to two distinct classes: <a href="core/QEventLoop.html"><tt>QEventLoop</tt></a> and <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a>.</p>
<p>If you subclassed <a href="core/QEventLoop.html"><tt>QEventLoop</tt></a> to integrate with another library's event loop, you must subclass <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> instead. See the class documentation for details.</p>
<a name="qfiledialog"></a>
<h2>QFileDialog</h2>
<p>The <a href="gui/QFileDialog.html"><tt>QFileDialog</tt></a> class in Qt 4 has been totally rewritten. It provides most of the functionality of the old <tt>QFileDialog</tt> class, but with a different API. Some functionality, such as the ability to preview files, is expected to be added in a later Qt 4 release.</p>
<p>The old <tt>QFileDialog</tt>, <tt>QFileIconProvider</tt>, and <tt>QFilePreview</tt> classes has been renamed Q3FileDialog, Q3FileIconProvider, and Q3FilePreview and have been moved to Qt3Support. You can use them if you need some functionality not provided yet by the new <a href="gui/QFileDialog.html"><tt>QFileDialog</tt></a> class.</p>
<p>The following table lists which functions have been renamed or removed in Qt 4.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Old function</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>Q3FileDialog::addFilter(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::addLeftWidget(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::addRightWidget(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::addToolButton(<a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a> *, bool separator)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::addWidgets(<a href="gui/QLabel.html"><tt>QLabel</tt></a> *, <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> *)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::dir()</td><td>QFileDialog::directory()</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::dirPath()</td><td>QFileDialog::directory().path()</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::iconProvider()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::isContentsPreviewEnabled()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::isInfoPreviewEnabled()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::previewMode()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::rereadDir()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::resortDir()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::selectAll(bool)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setContentsPreview(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, Q3FilePreview *)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::setContentsPreviewEnabled(bool)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setDir(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>QFileDialog::setDirectory(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::setFilters(const char **)</td><td>Q3FileDialog::setFilters(const <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> &amp;)</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setIconProvider(Q3FileIconProvider *)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::setInfoPreview(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, Q3FilePreview *)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setInfoPreviewEnabled(bool)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::setPreviewMode(PreviewMode)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setSelectedFilter(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>QFileDialog::selectFilter(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::setSelectedFilter(int)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setSelection(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>QFileDialog::selectFile(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::setShowHiddenFiles(bool)</td><td>showHidden()</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::setUrl(const <a href="porting4.html#qurloperator"><tt>QUrlOperator</tt></a> &amp;)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::showHiddenFiles()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::url()</td><td>QUrl::fromLocalFile(QFileDialog::directory())</td></tr>
<thead><tr valign="top" class="qt-style"><th>Old signals</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="even"><td>Q3FileDialog::fileHighlighted(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::fileSelected(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>QFileDialog::filesSelected(const <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td>Q3FileDialog::dirEntered(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>Q3FileDialog::filterSelected(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>N/A</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>The Q3FileDialog::addFilter(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) function has no direct equivalent in the new <a href="gui/QFileDialog.html"><tt>QFileDialog</tt></a>. Use QFileDialog::setFilters() instead.<p>For example, if you have code like</p>
<pre><font color="#404040">        fileDialog-&gt;addFilter(tr(&quot;JPEG files (*.jpg *.jpeg)&quot;));</font></pre>
<p>you can rewrite it as</p>
<pre>        QStringList filters = fileDialog-&gt;filters();
        filters &lt;&lt; tr(&quot;JPEG files (*.jpg *.jpeg)&quot;);
        fileDialog-&gt;setFilters(filters);</pre>
</li>
<li>The Q3FileDialog::setSelectedFilter(int) overload has no direct equivalent in the new <a href="gui/QFileDialog.html"><tt>QFileDialog</tt></a>. Use QFileDialog::selectFilter(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) instead.<p>For example, if you have code like</p>
<pre><font color="#404040">        fileDialog-&gt;setSelectedFilter(3);</font></pre>
<p>you can rewrite it as</p>
<pre>        fileDialog-&gt;selectFilter(fileDialog-&gt;filters().at(3));</pre>
</li>
</ol>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QFileDialog.html"><tt>QFileDialog</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qfocusdata"></a>
<h2>QFocusData</h2>
<p>The <a href="porting4.html#qfocusdata"><tt>QFocusData</tt></a> class is not available in Qt 4. Some of its functionality is available via the QWidget::nextInFocusChain() and QWidget::focusNextPrevChild() functions.</p>
<a name="qfocusevent"></a>
<h2>QFocusEvent</h2>
<p>The setReason() function is no longer present in Qt 4. It is necessary to define the reason when constructing a focus event.</p>
<a name="qfont"></a>
<h2>QFont</h2>
<p><tt>QFont::Script</tt> has been moved to QFontDatabase::WritingSystem.</p>
<a name="qframe"></a>
<h2>QFrame</h2>
<p>The <a href="gui/QFrame.html"><tt>QFrame</tt></a> class has been made more lightweight in Qt 4, by reducing the number of properties and virtual functions. The reduction in the number of virtual functions is significant because <a href="gui/QFrame.html"><tt>QFrame</tt></a> is the base class of many Qt classes.</p>
<p>Here's an overview of the changes:</p>
<ul>
<li><a href="gui/QFrame.html"><tt>QFrame</tt></a> no longer has a <tt>margin</tt> property (which wasn't honored by Qt's layout managers anyway).</li>
<li><a href="gui/QFrame.html"><tt>QFrame</tt></a> no longer has a frameChanged() function, reimplement QFrame::resizeEvent() instead.</li>
<li><a href="gui/QFrame.html"><tt>QFrame</tt></a> used to have drawFrame(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *) and drawContents(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *) virtual functions. These are now gone. In Qt 4, the frame is drawn by the QFrame::paintEvent() function. If you want to change the way <a href="gui/QFrame.html"><tt>QFrame</tt></a> paints itself, reimplement this function. To draw the contents of the frame, reimplement <a href="gui/QFrame.html"><tt>QFrame</tt></a>:paintEvent() and call the base class implementation of the function before you use the contentsRect() function inherited from <a href="gui/QWidget.html"><tt>QWidget</tt></a>, to retrieve the rectangle to paint on.</li>
</ul>
<p>To help with porting, the Qt3Support library contains a Q3Frame class that inherits <a href="gui/QFrame.html"><tt>QFrame</tt></a> and provides a similar API to the old <a href="gui/QFrame.html"><tt>QFrame</tt></a> class. If you derived from <a href="gui/QFrame.html"><tt>QFrame</tt></a> in your application, you might want to use Q3Frame as a base class as a first step in the porting process, and later move on to the new <a href="gui/QFrame.html"><tt>QFrame</tt></a> class.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QFrame.html"><tt>QFrame</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qftp"></a>
<h2>QFtp</h2>
<p><a href="network/QFtp.html"><tt>QFtp</tt></a> no longer inherits from <a href="porting4.html#qnetworkprotocol"><tt>QNetworkProtocol</tt></a>. See the <a href="porting4.html#qnetworkprotocol-section">section on </tt>QNetworkProtocol</a> for details.</p>
<p>The old <tt>QFtp</tt> class has been renamed Q3Ftp and moved to the Qt3Support library.</p>
<a name="qglayoutiterator-section"></a><a name="qglayoutiterator"></a>
<h2>QGLayoutIterator</h2>
<p>The <a href="porting4.html#qglayoutiterator"><tt>QGLayoutIterator</tt></a> class no longer exists in Qt 4. This makes only a difference if you implemented custom layout managers (i.e&#x2e;, <a href="gui/QLayout.html"><tt>QLayout</tt></a> subclasses).</p>
<p>The new approach is much simpler: It consists in reimplementing QLayout::itemAt() and QLayout::takeAt(). These functions operate on indexes, eliminating the need for a layout iterator class.</p>
<a name="qgrid"></a>
<h2>QGrid</h2>
<p>The <tt>QGrid</tt> class is now only available as Q3Grid in Qt 4. You can achieve the same result as <tt>QGrid</tt> by creating a <a href="gui/QWidget.html"><tt>QWidget</tt></a> with a grid layout:</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    QGrid *grid = new QGrid(2, Qt::Horizontal);
    QPushButton *child1 = new QPushButton(grid);
    QPushButton *child2 = new QPushButton(grid);
    QPushButton *child3 = new QPushButton(grid);
    QPushButton *child4 = new QPushButton(grid);</font></pre>
<p>you can rewrite it as</p>
<pre>    QWidget *grid = new QWidget;
    QPushButton *child1 = new QPushButton(grid);
    QPushButton *child2 = new QPushButton(grid);
    QPushButton *child3 = new QPushButton(grid);
    QPushButton *child4 = new QPushButton(grid);

    QVBoxLayout *layout = new QVBoxLayout;
    layout-&gt;addWidget(child1, 0, 0);
    layout-&gt;addWidget(child2, 0, 1);
    layout-&gt;addWidget(child3, 1, 0);
    layout-&gt;addWidget(child4, 1, 1);
    grid-&gt;setLayout(layout);</pre>
<a name="qgridlayout"></a>
<h2>QGridLayout</h2>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QGridLayout.html"><tt>QGridLayout</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qgridview"></a>
<h2>QGridView</h2>
<p>The <tt>QGridView</tt> class has been renamed Q3GridView and moved to the Qt3Support library. In Qt 4, we recommend that you use <a href="gui/QTableView.html"><tt>QTableView</tt></a> or <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> for presenting tabular data.</p>
<p>See <a href="model-view-programming.html">Model/View Programming</tt></a> for an overview of the new item view classes.</p>
<a name="qgroupbox-section"></a><a name="qgroupbox"></a>
<h2>QGroupBox</h2>
<p>The <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> class has been redesigned in Qt 4. Many of the features of the old <tt>QGroupBox</tt> class can be obtained by using the Q3GroupBox class from the Qt3Support library.</p>
<p>The new <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> is more lightweight. It doesn't attempt to duplicate functionality already provided by <a href="gui/QGridLayout.html"><tt>QGridLayout</tt></a>, and it does not inherit from <a href="gui/QFrame.html"><tt>QFrame</tt></a>. As a result, the following members have been removed:</p>
<ul>
<li>Q3GroupBox::setColumns(), Q3GroupBox::columns()</li>
<li>Q3GroupBox::setOrientation(), Q3GroupBox::orientation()</li>
<li>Q3GroupBox::setInsideMargin(), Q3GroupBox::insideMargin()</li>
<li>Q3GroupBox::addSpace()</li>
</ul>
<p>Naturally, the <tt>columns</tt> and <tt>orientation</tt> properties have also been removed.</p>
<p>If you rely on some of the missing functionality in your application, you can use Q3GroupBox instead of <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> as a help to porting.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qhbox"></a>
<h2>QHBox</h2>
<p>The <tt>QHBox</tt> class is now only available as Q3HBox in Qt 4. You can achieve the same result as <tt>QHBox</tt> by creating a <a href="gui/QWidget.html"><tt>QWidget</tt></a> with an horizontal layout:</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    QHBox *hbox = new QHBox;
    QPushButton *child1 = new QPushButton(hbox);
    QPushButton *child2 = new QPushButton(hbox);</font></pre>
<p>you can rewrite it as</p>
<pre>    QWidget *hbox = new QWidget;
    QPushButton *child1 = new QPushButton;
    QPushButton *child2 = new QPushButton;

    QHBoxLayout *layout = new QHBoxLayout;
    layout-&gt;addWidget(child1);
    layout-&gt;addWidget(child2);
    hbox-&gt;setLayout(layout);</pre>
<p>Note that child widgets are not automatically placed into the widget's layout; you will need to manually add each widget to the <a href="gui/QHBoxLayout.html"><tt>QHBoxLayout</tt></a>.</p>
<a name="qheader"></a>
<h2>QHeader</h2>
<p>The <tt>QHeader</tt> class has been renamed Q3Header and moved to the Qt3Support library. In Qt 4, it is replaced by the <a href="gui/QHeaderView.html"><tt>QHeaderView</tt></a> class.</p>
<p>See <a href="model-view-programming.html">Model/View Programming</tt></a> for an overview of the new item view classes.</p>
<a name="qhgroupbox"></a>
<h2>QHGroupBox</h2>
<p>The <tt>QHGroupBox</tt> class has been renamed Q3HGroupBox and moved to the Qt3Support library. Qt 4 does not provide a specific replacement class for <tt>QHGroupBox</tt> since <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> is designed to be a generic container widget. As a result, you need to supply your own layout for any child widgets.</p>
<p>See <a href="porting4.html#qgroupbox"><tt>#QGroupBox</tt></a> for more information about porting code that uses group boxes.</p>
<a name="qhttp"></a>
<h2>QHttp</h2>
<p><a href="network/QHttp.html"><tt>QHttp</tt></a> no longer inherits from <a href="porting4.html#qnetworkprotocol"><tt>QNetworkProtocol</tt></a>. See the See the <a href="porting4.html#qnetworkprotocol-section">section on </tt>QNetworkProtocol</a> for details.</p>
<p>The old <tt>QHttp</tt>, <tt>QHttpHeader</tt>, <tt>QHttpRequestHeader</tt>, and <tt>QHttpResponseHeader</tt> classes have been renamed Q3Http, Q3HttpHeader, Q3HttpRequestHeader, and Q3HttpResponseHeader and have been moved to the Qt3Support library.</p>
<a name="qiconfactory"></a>
<h2>QIconFactory</h2>
<p>The <a href="porting4.html#qiconfactory"><tt>QIconFactory</tt></a> class is no longer part of Qt. It has been replaced by the <a href="gui/QIconEngine.html"><tt>QIconEngine</tt></a> class.</p>
<a name="qiconset"></a>
<h2>QIconSet</h2>
<p>The <a href="porting4.html#qiconset"><tt>QIconSet</tt></a> class is no longer part of Qt. It has been replaced by the <a href="gui/QIcon.html"><tt>QIcon</tt></a> class.</p>
<a name="qiconview"></a>
<h2>QIconView</h2>
<p>The <tt>QIconView</tt>, <tt>QIconViewItem</tt>, <tt>QIconDrag</tt>, and <tt>QIconDragItem</tt> classes has been renamed Q3IconView, Q3IconViewItem, Q3IconDrag, and Q3IconDragItem and moved to the Qt3Support library. New Qt applications should use <a href="gui/QListWidget.html"><tt>QListWidget</tt></a> or its base class <a href="gui/QListView.html"><tt>QListView</tt></a> instead, and call QListView::setViewMode(QListView::IconMode) to obtain an &quot;icon view&quot; look.</p>
<p>See <a href="model-view-programming.html">Model/View Programming</tt></a> for an overview of the new item view classes.</p>
<a name="qimagedrag"></a>
<h2>QImageDrag</h2>
<p>The <tt>QImageDrag</tt> class has been renamed Q3ImageDrag and moved to the Qt3Support library. In Qt 4, use <a href="gui/QMimeData.html"><tt>QMimeData</tt></a> instead and call QMimeData::setImage() to set the image.</p>
<p>See <a href="porting4-dnd.html">Porting to Qt 4 (Drag and Drop)</tt></a> for a comparison between the drag and drop APIs in Qt 3 and Qt 4.</p>
<a name="qimageio"></a>
<h2>QImageIO</h2>
<p>The <tt>QImageIO</tt> class has been split into two classes: <a href="gui/QImageReader.html"><tt>QImageReader</tt></a> and <a href="gui/QImageWriter.html"><tt>QImageWriter</tt></a>. The table below shows the correspondance between the two APIs:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 function</th><th>Qt 4 equivalents</th></tr></thead>
<tr valign="top" class="odd"><td>QImageIO::description()</td><td>QImageWriter::description()</td></tr>
<tr valign="top" class="even"><td>QImageIO::fileName()</td><td>QImageReader::fileName() and QImageWriter::fileName()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::format()</td><td>QImageReader::format() and QImageWriter::format()</td></tr>
<tr valign="top" class="even"><td>QImageIO::gamma()</td><td>QImageWriter::gamma()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::image()</td><td>Return value of QImageReader::read()</td></tr>
<tr valign="top" class="even"><td>QImageIO::inputFormats()</td><td>QImageReader::supportedImageFormats()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::ioDevice()</td><td>QImageReader::device() and QImageWriter::device()</td></tr>
<tr valign="top" class="even"><td>QImageIO::outputFormats()</td><td>QImageWriter::supportedImageFormats()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::parameters()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QImageIO::quality()</td><td>QImageWriter::quality()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::read()</td><td>QImageReader::read()</td></tr>
<tr valign="top" class="even"><td>QImageIO::setDescription()</td><td>QImageWriter::setDescription()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::setFileName()</td><td>QImageReader::setFileName() and QImageWriter::setFileName()</td></tr>
<tr valign="top" class="even"><td>QImageIO::setFormat()</td><td>QImageReader::setFormat() and QImageWriter::setFormat()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::setGamma()</td><td>QImageWriter::setGamma()</td></tr>
<tr valign="top" class="even"><td>QImageIO::setIODevice()</td><td>QImageReader::setDevice() and QImageWriter::setDevice()</td></tr>
<tr valign="top" class="odd"><td>QImageIO::setImage()</td><td>Argument to QImageWriter::write()</td></tr>
<tr valign="top" class="even"><td>QImageIO::setParameters()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QImageIO::setQuality()</td><td>QImageWriter::setQuality()</td></tr>
<tr valign="top" class="even"><td>QImageIO::setStatus()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QImageIO::status()</td><td>QImageReader::error() and QImageWriter::error()</td></tr>
<tr valign="top" class="even"><td>QImageIO::write()</td><td>QImageWriter::write()</td></tr>
</table></p>
<a name="qintcache-t"></a>
<h2>QIntCache&lt;T&gt;</h2>
<p>QIntCache&lt;T&gt; has been moved to Qt3Support. It has been replaced by QCache&lt;int, T&gt;.</p>
<p>For details, read the <a href="porting4.html#qcache-section">section on </tt>QCache&lt;T&gt;</tt></a>, mentally substituting <tt>int</tt> for <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<a name="qintdict-t"></a>
<h2>QIntDict&lt;T&gt;</h2>
<p>QIntDict&lt;T&gt; and QIntDictIterator&lt;T&gt; have been moved to Qt3Support. They have been replaced by the more modern QHash&lt;Key, T&gt; and QMultiHash&lt;Key, T&gt; classes and their associated iterator classes.</p>
<p>When porting old code that uses QIntDict&lt;T&gt; to Qt 4, there are four classes that you can use:</p>
<ul>
<li>QMultiHash&lt;int, T *&gt;</li>
<li>QMultiHash&lt;int, T&gt;</li>
<li>QHash&lt;int, T *&gt;</li>
<li>QHash&lt;int, T&gt;</li>
</ul>
<p>For details, read the <a href="porting4.html#qdict-section">section on </tt>QDict&lt;T&gt;</tt></a>, mentally substituting <tt>int</tt> for <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<a name="qiodevice-section"></a><a name="qiodevice"></a>
<h2>QIODevice</h2>
<p>The <a href="core/QIODevice.html"><tt>QIODevice</tt></a> class's API has been simplified to make it easier to subclass and to make it work more smoothly with asynchronous devices such as <a href="network/QTcpSocket.html"><tt>QTcpSocket</tt></a> and <a href="core/QProcess.html"><tt>QProcess</tt></a>.</p>
<p>The following virtual functions have changed name or signature:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 function</th><th>Comment</th></tr></thead>
<tr valign="top" class="odd"><td>QIODevice::at() const</td><td>Renamed QIODevice::pos().</td></tr>
<tr valign="top" class="even"><td>QIODevice::at(Offset)</td><td>Renamed QIODevice::seek().</td></tr>
<tr valign="top" class="odd"><td>QIODevice::open(int)</td><td>The parameter is now of type QIODevice::OpenMode.</td></tr>
<tr valign="top" class="even"><td>QIODevice::readBlock(char *, Q_ULONG)</td><td>QIODevice::read(char *, qint64)</td></tr>
<tr valign="top" class="odd"><td>QIODevice::writeBlock(const char *, Q_ULONG)</td><td>QIODevice::write(const char *, qint64)</td></tr>
</table></p>
<p><b>Note:</b> QIODevice::open(QIODevice::OpenMode) is no longer pure virtual.</p>
<p>The following functions are no longer virtual or don't exist anymore:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>QIODevice::getch()</td><td>Renamed QIODevice::getChar() and implemented in terms of QIODevice::readData().</td></tr>
<tr valign="top" class="even"><td>QIODevice::putch(int)</td><td>Renamed QIODevice::putChar() and implemented in terms of QIODevice::writeData().</td></tr>
<tr valign="top" class="odd"><td>QIODevice::readAll()</td><td>Implemented in terms of QIODevice::readData().</td></tr>
<tr valign="top" class="even"><td>QIODevice::readLine(char *, Q_ULONG)</td><td>Implemented in terms of QIODevice::readData()</td></tr>
<tr valign="top" class="odd"><td>QIODevice::ungetch(int)</td><td>Renamed QIODevice::ungetChar() and simulated using an internal unget buffer.</td></tr>
</table></p>
<p>The <tt>IO_xxx</tt> flags have been revised, and the protected setFlags() function removed. Most of the flags have been eliminated because errors are best handled by implementing certain functions in <a href="core/QIODevice.html"><tt>QIODevice</tt></a> subclasses rather than through the base classes. The file access flags, such as <tt>IO_ReadOnly</tt> and <tt>IO_WriteOnly</tt>, have been moved to the <a href="core/QIODevice.html"><tt>QIODevice</tt></a> class to avoid polluting the global namespace. The table below shows the correspondence between the Qt 3 <tt>IO_xxx</tt> flags and the Qt 4 API:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 constant</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>IO_Direct</td><td>Use !QIODevice::isSequential() instead (notice the <i>not</i>).</td></tr>
<tr valign="top" class="even"><td>IO_Sequential</td><td>Use QIODevice::isSequential() instead.</td></tr>
<tr valign="top" class="odd"><td>IO_Combined</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_TypeMask</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_Raw</td><td>QIODevice::Unbuffered</td></tr>
<tr valign="top" class="even"><td>IO_Async</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_ReadOnly</td><td>QIODevice::ReadOnly</td></tr>
<tr valign="top" class="even"><td>IO_WriteOnly</td><td>QIODevice::WriteOnly</td></tr>
<tr valign="top" class="odd"><td>IO_ReadWrite</td><td>QIODevice::ReadWrite</td></tr>
<tr valign="top" class="even"><td>IO_Append</td><td>QIODevice::Append</td></tr>
<tr valign="top" class="odd"><td>IO_Truncate</td><td>QIODevice::Truncate</td></tr>
<tr valign="top" class="even"><td>IO_Translate</td><td>QIODevice::Text</td></tr>
<tr valign="top" class="odd"><td>IO_ModeMask</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_Open</td><td>Use QIODevice::isOpen() instead.</td></tr>
<tr valign="top" class="odd"><td>IO_StateMask</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_Ok</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_ReadError</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_WriteError</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_FatalError</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_ResourceError</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_OpenError</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_ConnectError</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_AbortError</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>IO_TimeOutError</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>IO_UnspecifiedError</td><td>N/A</td></tr>
</table></p>
<a name="qiodevicesource"></a>
<h2>QIODeviceSource</h2>
<p>The <a href="porting4.html#qiodevicesource"><tt>QIODeviceSource</tt></a> class was used internally in Qt 2.x in conjunction with QImageConsumer. It was obsoleted in Qt 3.0&#x2e; If you use this mechanism in your application, please submit a report to the Task Tracker</tt> on the Trolltech website and we will try to find a satisfactory substitute.</p>
<a name="qlabel"></a>
<h2>QLabel</h2>
<p><a href="gui/QLabel.html"><tt>QLabel</tt></a> doesn't enable word-wrap automatically anymore when rich text is used. You can enable it by calling QLabel::setWordWrap() or by setting the wordWrap property. The reason for this change is that the old behavior was confusing to many users.</p>
<p>Also, <a href="gui/QLabel.html"><tt>QLabel</tt></a> no longer offers an <tt>autoResize</tt> property. Instead, you can call QWidget::setFixedSize() on the label, with QLabel::sizeHint() as the argument, whenever you change the contents of the <a href="gui/QLabel.html"><tt>QLabel</tt></a>.</p>
<p>See also <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <a href="gui/QLabel.html"><tt>QLabel</tt></a> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qlayout"></a>
<h2>QLayout</h2>
<p>In Qt 4, margins are always handled by layouts; there is no QLayout::setSupportsMargin() function anymore.</p>
<p>The deleteAllItems() function is now only available if <tt>QT3_SUPPORT</tt> is defined. If you maintain a QList of layout items, you can use qDeleteAll() to remove all the items in one go.</p>
<p>In Qt 3, it was possible to change the resizing behavior for layouts in top-level widgets by adjusting the layout's <tt>resizeMode</tt> property. In Qt 4, this property has been replaced by the QLayout::sizeConstraint property which provides more control over how the layout behaves when resized.</p>
<p>See also the <a href="porting4.html#qlayoutiterator-section">section on </tt>QLayoutIterator</a> and the <a href="porting4.html#qglayoutiterator-section">section on </tt>QGLayoutIterator</a>.</p>
<a name="qlayoutiterator-section"></a><a name="qlayoutiterator"></a>
<h2>QLayoutIterator</h2>
<p>The <a href="porting4.html#qlayoutiterator"><tt>QLayoutIterator</tt></a> class is obsoleted in Qt 4. It is available only if <tt>QT3_SUPPORT</tt> is defined. It can be replaced by the QLayout::itemAt() and QLayout::takeAt() functions, which operate on indexes.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">        QLayoutIterator it = layout()-&gt;iterator();
        QLayoutItem *child;
        while ((child = it.current()) != 0) {
            if (child-&gt;widget() == myWidget) {
                it.takeCurrent();
                return;
            ++it;
        }</font></pre>
<p>you can rewrite it as</p>
<pre>        int i = 0;
        QLayoutItem *child;
        while ((child = layout()-&gt;itemAt(i)) != 0) {
            if (child-&gt;widget() == myWidget) {
                layout()-&gt;takeAt(i);
                return;
            }
            ++i;
        }</pre>
<a name="qlineedit"></a>
<h2>QLineEdit</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<p>Note that <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> in Qt 4 is no longer a subclass of <a href="gui/QFrame.html"><tt>QFrame</tt></a>. If you need to visually style a line edit with a frame, we recommend either using a <a href="gui/QFrame.html"><tt>QFrame</tt></a> as a container for a <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> or customizing the line edit with a <a href="stylesheet.html">style sheet</tt></a>.</p>
<a name="qlistbox"></a>
<h2>QListBox</h2>
<p>The <tt>QListBox</tt>, <tt>QListBoxItem</tt>, <tt>QListBoxText</tt>, and <tt>QListBoxPixmap</tt> classes have been renamed Q3ListBox, Q3ListBoxItem, Q3ListBoxText, and Q3ListBoxPixmap and have been moved to the Qt3Support library. New Qt applications should use <a href="gui/QListWidget.html"><tt>QListWidget</tt></a> or its base class <a href="gui/QListView.html"><tt>QListView</tt></a> instead.</p>
<p>See <a href="model-view-programming.html">Model/View Programming</tt></a> for an overview of the new item view classes.</p>
<a name="qlistview"></a>
<h2>QListView</h2>
<p>The <tt>QListView</tt>, <tt>QListViewItem</tt>, <tt>QCheckListItem</tt>, and <tt>QListViewItemIterator</tt> classes have been renamed Q3ListView, Q3ListViewItem, Q3CheckListItem, and Q3ListViewItemIterator, and have been moved to the Qt3Support library. New Qt applications should use one of the following four classes instead: <a href="gui/QTreeView.html"><tt>QTreeView</tt></a> or <a href="gui/QTreeWidget.html"><tt>QTreeWidget</tt></a> for tree-like structures; <a href="gui/QListWidget.html"><tt>QListWidget</tt></a> or the new <a href="gui/QListView.html"><tt>QListView</tt></a> class for one-dimensional lists.</p>
<p>See <a href="model-view-programming.html">Model/View Programming</tt></a> for an overview of the new item view classes.</p>
<a name="qlocalfs"></a>
<h2>QLocalFs</h2>
<p>The <tt>QLocalFs</tt> class is no longer part of the public Qt API. It has been renamed Q3LocalFs and moved to Qt3Support. Use <a href="core/QDir.html"><tt>QDir</tt></a>, <a href="core/QFileInfo.html"><tt>QFileInfo</tt></a>, or <a href="core/QFile.html"><tt>QFile</tt></a> instead.</p>
<a name="qmainwindow"></a>
<h2>QMainWindow</h2>
<p>The <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> class has been redesigned in Qt 4 to provide a more modern look and feel and more flexibility. The API has changed to reflect that. The old <tt>QMainWindow</tt> class has been renamed Q3MainWindow and moved to Qt3Support. See the <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> class documentation for details.</p>
<a name="qmemarray-section"></a><a name="qmemarray-t"></a>
<h2>QMemArray&lt;T&gt;</h2>
<p>QMemArray&lt;T&gt; has been moved to Qt3Support. It has been replaced by the QVector&lt;T&gt; class.</p>
<p>The following table summarizes the API differences between the two classes.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>QMemArray::assign(const QMemArray&lt;T&gt; &amp;)</td><td>QVector::operator=()</td></tr>
<tr valign="top" class="even"><td>QMemArray::assign(const T *, uint)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>QMemArray::duplicate(const QMemArray &amp;)</td><td>QVector::operator=()</td></tr>
<tr valign="top" class="even"><td>QMemArray::duplicate(const T *, uint)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>QMemArray::setRawData(const T *, uint)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QMemArray::resetRawData(const T *, uint)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QMemArray::find(const T &amp;, uint)</td><td>QVector::indexOf(const T &amp;, int)</td></tr>
<tr valign="top" class="even"><td>QMemArray::contains(const T &amp;)</td><td>QVector::count(const T &amp;)</td></tr>
<tr valign="top" class="odd"><td>QMemArray::sort()</td><td><tt>qSort</tt></td></tr>
<tr valign="top" class="even"><td>QMemArray::bsearch(const T &amp;d)</td><td><tt>qBinaryFind</tt></td></tr>
<tr valign="top" class="odd"><td>QMemArray::at(uint)</td><td>QVector::operator[]()</td></tr>
<tr valign="top" class="even"><td>QMemArray::operator const T *()</td><td>QVector::constData()</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>QMemArray::assign(const T *, uint) and QMemArray::duplicate(const T *, uint) can be replaced by QVector::resize() and qCopy().<p>For example, if you have code like</p>
<pre><font color="#404040">        QMemArray&lt;QSize&gt; array;
        ..&#x2e;
        array.assign(data, size);</font></pre>
<p>you can rewrite it as</p>
<pre>        QVector&lt;QSize&gt; vector;
        ...
        vector.resize(size);
        qCopy(data, data + size, vector.begin());</pre>
</li>
<li>QMemArray is an explicitly shared class, whereas QVector is implicitly shared. See <a href="porting4.html#explicit-sharing">Explicit Sharing</tt></a> for more information.</li>
</ol>
<a name="qmenubar"></a>
<h2>QMenuBar</h2>
<p>In Qt 3, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> inherited from <a href="gui/QFrame.html"><tt>QFrame</tt></a> and <a href="porting4.html#qmenudata"><tt>QMenuData</tt></a>; in Qt 4, it is a direct subclass of <a href="gui/QWidget.html"><tt>QWidget</tt></a>. Applications that provided customized menu bars will need to take advantage of the styling features described in the <a href="stylesheet.html">Qt Style Sheets</tt></a> document.</p>
<p>It is not possible to add widgets to menu bars in Qt 4.</p>
<a name="qmenudata"></a>
<h2>QMenuData</h2>
<p>In Qt 4, the <a href="gui/QMenu.html"><tt>QMenu</tt></a> class provides a menu widget that can be used in all the places where menus are used in an application. Unlike <tt>QMenuData</tt>, <a href="gui/QMenu.html"><tt>QMenu</tt></a> is designed around the concept of actions, provided by the <a href="gui/QAction.html"><tt>QAction</tt></a> class, instead of the identifiers used in Qt 3.</p>
<p>In Qt 3, it was possible to insert widgets directly into menus by using a specific <tt>QMenuData::insertItem()</tt> overload. In Qt 4.2 and later, the <a href="gui/QWidgetAction.html"><tt>QWidgetAction</tt></a> class can be used to wrap widgets for use in Qt 4's action-based APIs.</p>
<a name="qmessagebox"></a>
<h2>QMessageBox</h2>
<p>The QMessageBox::iconPixmap() function used to return a &quot;const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> *&quot;. In Qt 4, it returns a <a href="gui/QPixmap.html"><tt>QPixmap</tt></a>.</p>
<a name="qmimesourcefactory"></a>
<h2>QMimeSourceFactory</h2>
<p>The <tt>QMimeSourceFactory</tt> has been renamed Q3MimeSourceFactory and moved to the Qt3Support library. New Qt applications should use Qt 4's <a href="resources.html#resource-system">Resource System</tt></a> instead.</p>
<a name="qmovie"></a>
<h2>QMovie</h2>
<p>The <a href="gui/QMovie.html"><tt>QMovie</tt></a> API has been revised in Qt 4 to make it more consistent with the other Qt classes (notably <a href="gui/QImageReader.html"><tt>QImageReader</tt></a>). The table below summarizes the changes.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 function</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QMovie::connectResize()</td><td>Connect to QMovie::resized()</td></tr>
<tr valign="top" class="even"><td>QMovie::connectStatus()</td><td>Connect to QMovie::stateChanged()</td></tr>
<tr valign="top" class="odd"><td>QMovie::connectUpdate()</td><td>Connect to QMovie::updated()</td></tr>
<tr valign="top" class="even"><td>QMovie::disconnectResize()</td><td>Disconnect from QMovie::resized()</td></tr>
<tr valign="top" class="odd"><td>QMovie::disconnectStatus()</td><td>Disconnect from QMovie::stateChanged()</td></tr>
<tr valign="top" class="even"><td>QMovie::disconnectUpdate()</td><td>Disconnect from QMovie::updated()</td></tr>
<tr valign="top" class="odd"><td>QMovie::finished()</td><td>Use QMovie::state() instead</td></tr>
<tr valign="top" class="even"><td>QMovie::frameImage()</td><td>Use QMovie::currentImage() instead</td></tr>
<tr valign="top" class="odd"><td>QMovie::frameNumber()</td><td>Use QMovie::currentFrameNumber() instead</td></tr>
<tr valign="top" class="even"><td>QMovie::framePixmap()</td><td>Use QMovie::currentPixmap() instead</td></tr>
<tr valign="top" class="odd"><td>QMovie::getValidRect()</td><td>Use frameRect() instead</td></tr>
<tr valign="top" class="even"><td>QMovie::isNull()</td><td>Use QMovie::isValid() instead</td></tr>
<tr valign="top" class="odd"><td>QMovie::pause()</td><td>Use QMovie::setPaused(true) instead</td></tr>
<tr valign="top" class="even"><td>QMovie::paused()</td><td>Use QMovie::state() instead</td></tr>
<tr valign="top" class="odd"><td>QMovie::pushData()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QMovie::pushSpace()</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QMovie::restart()</td><td>Use QMovie::jumpToFrame(0) instead</td></tr>
<tr valign="top" class="even"><td>QMovie::running()</td><td>Use QMovie::state() instead</td></tr>
<tr valign="top" class="odd"><td>QMovie::step()</td><td>Use QMovie::jumpToFrame() and QMovie::setPaused() instead</td></tr>
<tr valign="top" class="even"><td>QMovie::step()</td><td>Use QMovie::jumpToNextFrame() instead</td></tr>
<tr valign="top" class="odd"><td>QMovie::steps()</td><td>Use QMovie::currentFrameNumber() and QMovie::frameCount() instead</td></tr>
<tr valign="top" class="even"><td>QMovie::unpause()</td><td>Use QMovie::setPaused(false) instead</td></tr>
</table></p>
<a name="qmultilineedit"></a>
<h2>QMultiLineEdit</h2>
<p>The <tt>QMultiLineEdit</tt> class in Qt 3 was a convenience <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> subclass that provided an interface compatible with Qt 2's <a href="porting4.html#qmultilineedit"><tt>QMultiLineEdit</tt></a> class. In Qt 4, it is called Q3MultiLineEdit, it inherits Q3TextEdit, and it is part of Qt3Support. Use <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> in new code.</p>
<a name="qnetworkprotocol-section"></a><a name="qnetworkprotocol"></a>
<h2>QNetworkProtocol</h2>
<p>The <a href="porting4.html#qnetworkprotocol"><tt>QNetworkProtocol</tt></a>, QNetworkProtocolFactoryBase, QNetworkProtocolFactory&lt;T&gt;, and QNetworkOperation classes are no longer part of the public Qt API. They have been renamed Q3NetworkProtocol, Q3NetworkProtocolFactoryBase, Q3NetworkProtocolFactory&lt;T&gt;, and Q3NetworkOperation and have been moved to the Qt3Support library.</p>
<p>In Qt 4 applications, you can use classes like <a href="network/QFtp.html"><tt>QFtp</tt></a> and <a href="network/QHttp.html"><tt>QHttp</tt></a> directly to perform file-related actions on a remote host.</p>
<a name="qobject"></a>
<h2>QObject</h2>
<p>QObject::children() now returns a <a href="porting4.html#qobjectlist"><tt>QObjectList</tt></a> instead of a pointer to a <a href="porting4.html#qobjectlist"><tt>QObjectList</tt></a>. See also the comments on <a href="porting4.html#qobjectlist"><tt>QObjectList</tt></a> below.</p>
<p>Use QObject::findChildren() (or qFindChildren() if you need MSVC 6 compatibility) instead of QObject::queryList(). For example:</p>
<pre>        QList&lt;QWidget *&gt; myWidgets = qFindChildren&lt;QWidget *&gt;(myParent);</pre>
<p>QObject::killTimers() has been removed because it was unsafe to use in subclass. (A subclass normally doesn't know whether the base class uses timers or not.)</p>
<p>The <tt>QObject::name</tt> property has been renamed QObject::objectName.</p>
<p><tt>QObject::objectTrees()</tt> has been removed. If you are primarly interested in widgets, use QApplication::allWidgets() or QApplication::topLevelWidgets().</p>
<a name="qobjectdictionary"></a>
<h2>QObjectDictionary</h2>
<p>The <a href="porting4.html#qobjectdictionary"><tt>QObjectDictionary</tt></a> class is a synonym for QAsciiDict&lt;QMetaObject&gt;. See the <a href="porting4.html#qasciidict-section">section on </tt>QAsciiDict&lt;T&gt;</tt></a>.</p>
<a name="qobjectlist"></a>
<h2>QObjectList</h2>
<p>In Qt 3, the <a href="porting4.html#qobjectlist"><tt>QObjectList</tt></a> class was a typedef for QPtrList&lt;<a href="core/QObject.html"><tt>QObject</tt></a>&gt;. In Qt 4, it is a typedef for QList&lt;<a href="core/QObject.html"><tt>QObject</tt></a> *&gt;. See the <a href="porting4.html#qptrlist-section">section on </tt>QPtrList&lt;T&gt;</tt></a>.</p>
<a name="qpaintdevice"></a>
<h2>QPaintDevice</h2>
<p>To reimplement painter backends one previously needed to reimplement the virtual function QPaintDevice::cmd(). This function is taken out and should is replaced with the function QPaintDevice::paintEngine() and the abstract class <a href="gui/QPaintEngine.html"><tt>QPaintEngine</tt></a>. <a href="gui/QPaintEngine.html"><tt>QPaintEngine</tt></a> provides virtual functions for all drawing operations that can be performed on a painter backend.</p>
<p>bitBlt() and copyBlt() are now only compatibility functions. Use QPainter::drawPixmap() instead.</p>
<a name="qpaintdevicemetrics"></a>
<h2>QPaintDeviceMetrics</h2>
<p>All functions that used to be provided by the <tt>QPaintDeviceMetrics</tt> class have now been moved to <a href="gui/QPaintDevice.html"><tt>QPaintDevice</tt></a>.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">        QPaintDeviceMetrics metrics(widget);
        int deviceDepth = metrics.depth();</font></pre>
<p>you can rewrite it as</p>
<pre>        int deviceDepth = widget-&gt;depth();</pre>
<p>For compatibility, the old <tt>QPaintDeviceMetrics</tt> class has been renamed Q3PaintDeviceMetrics and moved to Qt3Support.</p>
<a name="qpainter"></a>
<h2>QPainter</h2>
<p>The <a href="gui/QPainter.html"><tt>QPainter</tt></a> class has undergone some changes in Qt 4 because of the way rectangles are drawn. In Qt 4, the result of drawing a <a href="core/QRect.html"><tt>QRect</tt></a> with a pen width of 1 pixel is 1 pixel wider and 1 pixel taller than in Qt 3.</p>
<p>For compatibility, we provide a Q3Painter class in Qt3Support that provides the old semantics. See the Q3Painter documentation for details and for the reasons why we had to make this change.</p>
<p>The <a href="http://doc.trolltech.com/3.3/qpainter.html#CoordinateMode-enum">QPainter::CoordinateMode</a> enum has been removed in Qt 4. All clipping operations are now defined using logical coordinates and are subject to transformation operations.</p>
<p>The <a href="http://doc.trolltech.com/3.3/qpainter.html#RasterOP-enum">QPainter::RasterOP</a> enum has been replaced with QPainter::CompositionMode.</p>
<a name="qpicture"></a>
<h2>QPicture</h2>
<p>In Qt 3, a <a href="gui/QPicture.html"><tt>QPicture</tt></a> could be saved in the SVG file format. In Qt 4, the SVG support is separated into the QtSvg module, which provides classes for <i>displaying</i> the contents of SVG files. Qt 4 does not currently support saving of pictures in this format, but it can be achieved using the Q3Picture compatibility class.</p>
<a name="qpixmap"></a>
<h2>QPixmap</h2>
<p>The mask() function has been changed to return a reference to a <a href="gui/QBitmap.html"><tt>QBitmap</tt></a> rather than a pointer. As a result, it is no longer possible simply to test for a null pointer when determining whether a pixmap has a mask. Instead, you need to explicitly test whether the mask bitmap is null or not.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">        if (pixmap.mask())
            widget-&gt;setMask(*pixmap.mask());</font></pre>
<p>you can rewrite it as</p>
<pre>        if (!pixmap.mask().isNull())
            widget-&gt;setMask(pixmap.mask());</pre>
<p>The <tt>QPixmap::setOptimization()</tt> and <tt>QPixmap::setDefaultOptimization()</tt> mechanism is no longer available in Qt 4.</p>
<a name="qpointarray"></a>
<h2>QPointArray</h2>
<p>The <tt>QPointArray</tt> class has been renamed <a href="gui/QPolygon.html"><tt>QPolygon</tt></a> in Qt 4 and has undergone significant changes. In Qt 3, <tt>QPointArray</tt> inherited from QMemArray&lt;<a href="core/QPoint.html"><tt>QPoint</tt></a>&gt;. In Qt 4, <a href="gui/QPolygon.html"><tt>QPolygon</tt></a> inherits from QVector&lt;<a href="core/QPoint.html"><tt>QPoint</tt></a>&gt;. Everything mentioned in the <a href="porting4.html#qmemarray-section">section on </tt>QMemArray&lt;T&gt;</tt></a> apply for <a href="porting4.html#qpointarray"><tt>QPointArray</tt></a> as well.</p>
<p>The Qt3Support library contains a Q3PointArray class that inherits from <a href="gui/QPolygon.html"><tt>QPolygon</tt></a> and provides a few functions that existed in <tt>QPointArray</tt> but no longer exist in <a href="gui/QPolygon.html"><tt>QPolygon</tt></a>. These functions include Q3PointArray::makeArc(), Q3PointArray::makeEllipse(), and Q3PointArray::cubicBezier(). In Qt 4, we recommend that you use <a href="gui/QPainterPath.html"><tt>QPainterPath</tt></a> for representing arcs, ellipses, and Bezier curves, rather than <a href="gui/QPolygon.html"><tt>QPolygon</tt></a>.</p>
<p>The QPolygon::setPoints() and QPolygon::putPoints() functions return <tt>void</tt> in Qt 4. The corresponding Qt 3 functions returned a <tt>bool</tt> indicating whether the array was successfully resized or not. This can now be checked by checking QPolygon::size() after the call.</p>
<a name="qpopupmenu"></a>
<h2>QPopupMenu</h2>
<p>For most purposes, <a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> has been replaced by <a href="gui/QMenu.html"><tt>QMenu</tt></a> in Qt 4. For compatibility with older applications, Q3PopupMenu provides the old API and features that are specific to popup menus. Note that, when using Q3PopupMenu, the menu's actions must be Q3Action</tt>s.</p>
<p>In Qt 3, it was common practice to add entries to popup menus using the insertItem() function, maintaining identifiers for future use; for example, to dynamically change menu items. In Qt 4, menu entries are completely represented by actions for consistency with other user interface components, such as toolbar buttons. Create new menus with the <a href="gui/QMenu.html"><tt>QMenu</tt></a> class, and use the overloaded QMenu::addAction() functions to insert new entries. If you need to manage a set of actions created for a particular menu, we suggest that you construct a <a href="gui/QActionGroup.html"><tt>QActionGroup</tt></a> and add them to that.</p>
<p>The <a href="examples.html#main-windows">Main Window examples</tt></a> provided show how to use Qt's action system to construct menus, toolbars, and other common user interface elements.</p>
<a name="qprinter"></a>
<h2>QPrinter</h2>
<p>The <a href="gui/QPrinter.html"><tt>QPrinter</tt></a> class now expects printing to be set up from a <a href="gui/QPrintDialog.html"><tt>QPrintDialog</tt></a>.</p>
<a name="qprocess"></a>
<h2>QProcess</h2>
<p>The <a href="core/QProcess.html"><tt>QProcess</tt></a> class has undergone major improvements in Qt 4. It now inherits <a href="core/QIODevice.html"><tt>QIODevice</tt></a>, which makes it possible to combine <a href="core/QProcess.html"><tt>QProcess</tt></a> with a <a href="core/QTextStream.html"><tt>QTextStream</tt></a> or a <a href="core/QDataStream.html"><tt>QDataStream</tt></a>.</p>
<p>The old <tt>QProcess</tt> class has been renamed Q3Process and moved to the Qt3Support library.</p>
<a name="qprogressbar"></a>
<h2>QProgressBar</h2>
<p>The <a href="gui/QProgressBar.html"><tt>QProgressBar</tt></a> API has been significantly improved in Qt 4. The old <tt>QProgressBar</tt> API is available as Q3ProgressBar in the Qt3Support library.</p>
<a name="qprogressdialog"></a>
<h2>QProgressDialog</h2>
<p>The <a href="gui/QProgressDialog.html"><tt>QProgressDialog</tt></a> API has been significantly improved in Qt 4. The old <tt>QProgressDialog</tt> API is available as Q3ProgressDialog in the Qt3Support library.</p>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QProgressDialog.html"><tt>QProgressDialog</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qptrcollection-t"></a>
<h2>QPtrCollection&lt;T&gt;</h2>
<p>The <tt>QPtrCollection&lt;T&gt;</tt> abstract base class has been renamed Q3PtrCollection&lt;T&gt; moved to the Qt3Support library. There is no direct equivalent in Qt 4.</p>
<p>See Generic Containers</tt> for a list of Qt 4 containers.</p>
<a name="qptrdict-t"></a>
<h2>QPtrDict&lt;T&gt;</h2>
<p><tt>QPtrDict&lt;T&gt;</tt> and <tt>QPtrDictIterator&lt;T&gt;</tt> have been renamed Q3PtrDict&lt;T&gt; and Q3PtrDictIterator&lt;T&gt; and have been moved to the Qt3Support library. They have been replaced by the more modern QHash&lt;Key, T&gt; and QMultiHash&lt;Key, T&gt; classes and their associated iterator classes.</p>
<p>When porting old code that uses Q3PtrDict&lt;T&gt; to Qt 4, there are four classes that you can use:</p>
<ul>
<li>QMultiHash&lt;void *, T *&gt;</li>
<li>QMultiHash&lt;void *, T&gt;</li>
<li>QHash&lt;void *, T *&gt;</li>
<li>QHash&lt;void *, T&gt;</li>
</ul>
<p>(You can naturally use other types than <tt>void *</tt> for the key type, e.g&#x2e; <tt>QWidget *</tt>.)</p>
<p>To port Q3PtrDict&lt;T&gt; to Qt 4, read the <a href="porting4.html#qdict-section">section on </tt>QDict&lt;T&gt;</tt></a>, mentally substituting <tt>void *</tt> for <a href="porting4.html#qstring"><tt>QString</tt></a>.</p>
<a name="qptrlist-section"></a><a name="qptrlist-t"></a>
<h2>QPtrList&lt;T&gt;</h2>
<p>QPtrList&lt;T&gt;, QPtrListIterator&lt;T&gt;, and QPtrListStdIterator&lt;T&gt; have been moved to the Qt3Support library. They have been replaced by the more modern QList and QLinkedList classes and their associated iterator classes.</p>
<p>When porting to Qt 4, you have the choice of using QList&lt;T&gt; or QLinkedList&lt;T&gt; as alternatives to QValueList&lt;T&gt;. QList&lt;T&gt; has an index-based API and provides very fast random access (QList::operator[]), whereas QLinkedList&lt;T&gt; has an iterator-based API.</p>
<p>The following table summarizes the API differences between QPtrList&lt;T&gt; and QList&lt;T *&gt;:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrList function</th><th>QList equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QPtrList::contains(const T *)</td><td>QList::count(T *)</td></tr>
<tr valign="top" class="even"><td>QPtrList::containsRef(const T *)</td><td>QList::count(T *)</td></tr>
<tr valign="top" class="odd"><td>QPtrList::find(const T *)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>QPtrList::findRef(const T *)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>QPtrList::getFirst()</td><td>QList::first()</td></tr>
<tr valign="top" class="even"><td>QPtrList::getLast()</td><td>QList::last()</td></tr>
<tr valign="top" class="odd"><td>QPtrList::inSort(const T *)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QPtrList::remove(const T *)</td><td>QList::removeAll(T *)</td></tr>
<tr valign="top" class="odd"><td>QPtrList::remove(uint)</td><td>QList::removeAt(int)</td></tr>
<tr valign="top" class="even"><td>QPtrList::removeNode(QLNode *)</td><td>N/A</td></tr>
<tr valign="top" class="odd"><td>QPtrList::removeRef(const T *)</td><td>QList::removeAll(T *)</td></tr>
<tr valign="top" class="even"><td>QPtrList::sort()</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>QPtrList::takeNode(QLNode *)</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QPtrList::toVector(QGVector *)</td><td>See remark below</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>QPtrList::toVector(QGVector *) can be replaced by QVector::resize() and qCopy().<p>For example, if you have code like</p>
<pre><font color="#404040">        QPtrList&lt;QWidget&gt; list;
        ..&#x2e;
        QPtrVector&lt;QWidget&gt; vector;
        list.toVector(&amp;vector);</font></pre>
<p>you can rewrite it as</p>
<pre>        QList&lt;QWidget *&gt; list;
        ...
        QVector&lt;QWidget *&gt; vector;
        vector.resize(list.size());
        qCopy(list.begin(), list.end(), vector.begin());</pre>
</li>
<li>QPtrList::sort() relied on the virtual comparedItems() to sort items. In Qt 4, you can use qSort() instead and pass your &quot;compare item&quot; function as an argument.</li>
<li>QPtrList::find(const T *) returns an iterator, whereas QList::indexOf(T *) returns an index. To convert an index into an iterator, add the index to QList::begin().</li>
<li>QPtrList::removeFirst() and QPtrList::removeLast() return a <tt>bool</tt> that indicates whether the element was removed or not. The corresponding QList functions return <tt>void</tt>. You can achieve the same result by calling QList::isEmpty() before attempting to remove an item.</li>
</ol>
<p>If you use QPtrList's auto-delete feature (by calling QPtrList::setAutoDelete(true)), you need to do some more work. You have two options: Either you call <tt>delete</tt> yourself whenever you remove an item from the container, or you can use QList&lt;T&gt; instead of QList&lt;T *&gt; (i.e&#x2e; store values directly instead of pointers to values). Here, we'll see when to call <tt>delete</tt>.</p>
<p>The following table summarizes the idioms that you need to watch out for if you want to call <tt>delete</tt> yourself.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrList idiom</th><th>QList idiom</th></tr></thead>
<tr valign="top" class="odd"><td><pre>        list.replace(index, value);</pre>
</td><td><pre>        delete list[index];
        list[index] = value;</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        list.removeFirst();</pre>
</td><td><pre>        delete list.takeFirst();</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        list.removeLast();</pre>
</td><td><pre>        delete list.takeLast();</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        list.remove(index);</pre>
</td><td><pre>        delete list.takeAt(index);</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        list.remove(value);</pre>
</td><td><pre>        int i = list.indexOf(value);
        if (i != -1)
            delete list.takeAt(i);</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        list.remove();</pre>
<p>(removes the current item)</p>
</td><td><pre>        QMutableListIterator&lt;T *&gt; i;
        ...
        delete i.value();
        i.remove();</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        list.clear();</pre>
<p>(also called from QPtrList's destructor)</p>
</td><td><pre>        while (!list.isEmpty())
            delete list.takeFirst();</pre>
<p>In 99% of cases, the following idiom also works:</p>
<pre>        qDeleteAll(list);
        list.clear();</pre>
<p>However, it may lead to crashes if <tt>list</tt> is referenced from the value type's destructor, because <tt>list</tt> contains dangling pointers until clear() is called.</p>
</td></tr>
</table></p>
<p>Be aware that QPtrList's destructor automatically calls clear(). If you have a QPtrList data member in a custom class and use the auto-delete feature, you will need to call <tt>delete</tt> on all the items in the container from your class destructor to avoid a memory leak.</p>
<p>QPtrList had the concept of a &quot;current item&quot;, which could be used for traversing the list without using an iterator. When porting to Qt 4, you can use the Java-style QListIterator&lt;T *&gt; (or QMutableListIterator&lt;T *&gt;) class instead. The following table summarizes the API differences:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrList function</th><th>QListIterator equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QPtrList::at()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QPtrList::current()</td><td>QMutableListIterator::value()</td></tr>
<tr valign="top" class="odd"><td>QPtrList::currentNode()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QPtrList::findNext(const T *)</td><td>QListIterator::findNext(const T *)</td></tr>
<tr valign="top" class="odd"><td>QPtrList::findNextRef(const T *)</td><td>QListIterator::findNext(const T *)</td></tr>
<tr valign="top" class="even"><td>QPtrList::first()</td><td>QPtrList::toFront()</td></tr>
<tr valign="top" class="odd"><td>QPtrList::last()</td><td>QPtrList::toBack()</td></tr>
<tr valign="top" class="even"><td>QPtrList::next()</td><td>QPtrList::next()</td></tr>
<tr valign="top" class="odd"><td>QPtrList::prev()</td><td>QPtrList::previous()</td></tr>
<tr valign="top" class="even"><td>QPtrList::remove()</td><td>QMutableListIterator::remove()</td></tr>
<tr valign="top" class="odd"><td>QPtrList::take()</td><td>QMutableListIterator::remove()</td></tr>
</table></p>
<p>Be aware that QListIterator has a different way of iterating than QPtrList. A typical loop with QPtrList looks like this:</p>
<pre>        QPtrList&lt;QWidget&gt; list;
        ...
        while (list.current() != 0) {
            do_something(list.current());
            list.next();
        }</pre>
<p>Here's the equivalent QListIterator loop:</p>
<pre>        QList&lt;QWidget *&gt; list;
        ...
        QListIterator&lt;QWidget *&gt; i(list);
        while (i.hasNext())
            do_something(i.next());</pre>
<p>Finally, QPtrListIterator&lt;T&gt; must also be ported. There are no fewer than four iterator classes that can be used as a replacement: QList::const_iterator, QList::iterator, QListIterator, and QMutableListIterator. The most straightforward class to use when porting is QMutableListIterator&lt;T *&gt; (if you modify the list through the iterator) or QListIterator&lt;T *&gt; (if you don't). The following table summarizes the API differences:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrListIterator function</th><th>Qt 4 equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QPtrListIterator::atFirst()</td><td>!QListIterator::hasPrevious() (notice the <tt>!</tt>)</td></tr>
<tr valign="top" class="even"><td>QPtrListIterator::atLast()</td><td>!QListIterator::hasNext() (notice the <tt>!</tt>)</td></tr>
<tr valign="top" class="odd"><td>QPtrListIterator::count()</td><td>QList::count() or QList::size()</td></tr>
<tr valign="top" class="even"><td>QPtrListIterator::current()</td><td>QMutableListIterator::value()</td></tr>
<tr valign="top" class="odd"><td>QPtrListIterator::isEmpty()</td><td>QList::isEmpty()</td></tr>
<tr valign="top" class="even"><td>QPtrListIterator::toFirst()</td><td>QListIterator::toFront()</td></tr>
<tr valign="top" class="odd"><td>QPtrListIterator::toLast()</td><td>QListIterator::toBack()</td></tr>
<tr valign="top" class="even"><td>QPtrListIterator::operator()</td><td>QMutableListIterator::value()</td></tr>
<tr valign="top" class="odd"><td>QPtrListIterator::operator*()</td><td>QMutableListIterator::value()</td></tr>
</table></p>
<p>Again, be aware that QListIterator has a different way of iterating than QPtrList. A typical loop with QPtrList looks like this:</p>
<pre>        QPtrList&lt;QWidget&gt; list;
        ...
        QPtrListIterator&lt;QWidget&gt; i;
        while (i.current() != 0) {
            do_something(i.current());
            i.next();
        }</pre>
<p>Here's the equivalent QListIterator loop:</p>
<pre>        QList&lt;QWidget *&gt; list;
        ...
        QListIterator&lt;QWidget *&gt; i(list);
        while (i.hasNext())
            do_something(i.next());</pre>
<p>Finally, QPtrListStdIterator&lt;T&gt; must also be ported. This is easy, because QList also provides STL-style iterators (QList::iterator and QList::const_iterator).</p>
<a name="qptrqueue-t"></a>
<h2>QPtrQueue&lt;T&gt;</h2>
<p>QPtrQueue has been moved to the Qt3Support library. It has been replaced by the more modern QQueue class.</p>
<p>The following table summarizes the differences between QPtrQueue&lt;T&gt; and QQueue&lt;T *&gt;:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrQueue function</th><th>QQueue equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QPtrQueue::autoDelete()</td><td>See discussion below</td></tr>
<tr valign="top" class="even"><td>QPtrQueue::count()</td><td>QQueue::count() or QQueue::size() (equivalent)</td></tr>
<tr valign="top" class="odd"><td>QPtrQueue::current()</td><td>QQueue::head()</td></tr>
<tr valign="top" class="even"><td>QPtrQueue::remove()</td><td>QQueue::dequeue()</td></tr>
<tr valign="top" class="odd"><td>QPtrQueue::setAutoDelete()</td><td>See discussion below</td></tr>
</table></p>
<p>If you use QPtrQueue's auto-delete feature (by calling QPtrQueue::setAutoDelete(true)), you need to do some more work. You have two options: Either you call <tt>delete</tt> yourself whenever you remove an item from the container, or you can use QQueue&lt;T&gt; instead of QQueue&lt;T *&gt; (i.e&#x2e; store values directly instead of pointers to values). Here, we will show when to call <tt>delete</tt>.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrQueue idiom</th><th>QQueue idiom</th></tr></thead>
<tr valign="top" class="odd"><td><pre>        queue.dequeue();</pre>
</td><td><pre>        delete queue.dequeue();</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        queue.remove();</pre>
</td><td><pre>        delete queue.dequeue();</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        queue.clear();</pre>
<p>(also called from QPtrQueue's destructor)</p>
</td><td><pre>        while (!queue.isEmpty())
            delete queue.dequeue();</pre>
<p>In 99% of cases, the following idiom also works:</p>
<pre>        qDeleteAll(queue);
        queue.clear();</pre>
<p>However, it may lead to crashes if <tt>queue</tt> is referenced from the value type's destructor, because <tt>queue</tt> contains dangling pointers until clear() is called.</p>
</td></tr>
</table></p>
<a name="qptrstack-t"></a>
<h2>QPtrStack&lt;T&gt;</h2>
<p>QPtrStack has been moved to the Qt3Support library. It has been replaced by the more modern QStack class.</p>
<p>The following table summarizes the differences between QPtrStack&lt;T&gt; and QStack&lt;T *&gt;:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrStack function</th><th>QStack equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QPtrStack::autoDelete()</td><td>See discussion below</td></tr>
<tr valign="top" class="even"><td>QPtrStack::count()</td><td>QStack::count() or QStack::size() (equivalent)</td></tr>
<tr valign="top" class="odd"><td>QPtrStack::current()</td><td>QStack::top()</td></tr>
<tr valign="top" class="even"><td>QPtrStack::remove()</td><td>QStack::pop()</td></tr>
<tr valign="top" class="odd"><td>QPtrStack::setAutoDelete()</td><td>See discussion below</td></tr>
</table></p>
<p>If you use QPtrStack's auto-delete feature (by calling QPtrStack::setAutoDelete(true)), you need to do some more work. You have two options: Either you call <tt>delete</tt> yourself whenever you remove an item from the container, or you can use QStack&lt;T&gt; instead of QStack&lt;T *&gt; (i.e&#x2e; store values directly instead of pointers to values). Here, we will show when to call <tt>delete</tt>.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrStack idiom</th><th>QStack idiom</th></tr></thead>
<tr valign="top" class="odd"><td><pre>        stack.pop();</pre>
</td><td><pre>        delete stack.pop();</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        stack.remove();</pre>
</td><td><pre>        delete stack.pop();</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        stack.clear();</pre>
<p>(also called from QPtrStack's destructor)</p>
</td><td><pre>        while (!stack.isEmpty())
            delete stack.pop();</pre>
<p>In 99% of cases, the following idiom also works:</p>
<pre>        qDeleteAll(stack);
        stack.clear();</pre>
<p>However, it may lead to crashes if <tt>stack</tt> is referenced from the value type's destructor, because <tt>stack</tt> contains dangling pointers until clear() is called.</p>
</td></tr>
</table></p>
<a name="qptrvector-t"></a>
<h2>QPtrVector&lt;T&gt;</h2>
<p>QPtrVector&lt;T&gt; has been moved to Qt3Support. It has been replaced by the more modern QVector class.</p>
<p>When porting to Qt 4, you can use QVector&lt;T *&gt; as an alternative to QPtrVector&lt;T&gt;. The APIs of QPtrVector&lt;T&gt; and QVector&lt;T *&gt; are somewhat similar. The main issue is that QPtrVector supports auto-delete whereas QVector doesn't.</p>
<p>The following table summarizes the API differences between the two classes:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrVector function</th><th>QVector equivalent</th></tr></thead>
<tr valign="top" class="odd"><td>QPtrVector::autoDelete()</td><td>See discussion below</td></tr>
<tr valign="top" class="even"><td>QPtrVector::bsearch(const T *)</td><td>qBinaryFind()</td></tr>
<tr valign="top" class="odd"><td>QPtrVector::contains(const T *)</td><td>QVector::count(T *)</td></tr>
<tr valign="top" class="even"><td>QPtrVector::containsRef(const T *)</td><td>QVector::count(T *)</td></tr>
<tr valign="top" class="odd"><td>QPtrVector::count()</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>QPtrVector::insert(uint, T *)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>QPtrVector::isNull()</td><td>N/A</td></tr>
<tr valign="top" class="even"><td>QPtrVector::remove(uint)</td><td>See remark below</td></tr>
<tr valign="top" class="odd"><td>QPtrVector::setAutoDelete()</td><td>See discussion below</td></tr>
<tr valign="top" class="even"><td>QPtrVector::sort()</td><td>qSort()</td></tr>
<tr valign="top" class="odd"><td>QPtrVector::take(uint)</td><td>See remark below</td></tr>
<tr valign="top" class="even"><td>QPtrVector::toList(QGList *)</td><td>QList::QList(const QVector &amp;)</td></tr>
</table></p>
<p>Remarks:</p>
<ol type="1">
<li>QPtrVector::insert(uint, T *) sets an item to store a certain pointer value. This is <i>not</i> the same as QVector::insert(int, T *), which creates space for the item by moving following items by one position. Use <tt>vect[i] = ptr</tt> to set a QVector item to a particular value.</li>
<li>QPtrVector::remove(uint) sets an item to be 0. This is <i>not</i> the same as QVector::removeAt(int), which entirely erases the item, reducing the size of the vector. Use <tt>vect[i] = 0</tt> to set a QVector item to 0.</li>
<li>Likewise, QPtrVector::take(uint) sets an item to be 0 and returns the previous value of the item. Again, this is easy to achieve using QVector::operator[]().</li>
<li>QPtrVector::count() returns the number of non-null items in the vector, whereas QVector::count() (like QVector::size()) returns the number of items (null or non-null) in the vector. Fortunately, it's not too hard to simulate QPtrVector::count().<p>For example, if you have code like</p>
<pre><font color="#404040">        int numValidItems = vect.count();</font></pre>
<p>you can rewrite it as</p>
<pre>        int numValidItems = vect.size() - vect.count(0);</pre>
</li>
</ol>
<p>If you use QVector's auto-delete feature (by calling QVector::setAutoDelete(true)), you need to do some more work. You have two options: Either you call <tt>delete</tt> yourself whenever you remove an item from the container, or you use QVector&lt;T&gt; instead of QVector&lt;T *&gt; (i.e&#x2e; store values directly instead of pointers to values). Here, we'll see when to call <tt>delete</tt>.</p>
<p>The following table summarizes the idioms that you need to watch out for if you want to call <tt>delete</tt> yourself.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>QPtrVector idiom</th><th>QVector idiom</th></tr></thead>
<tr valign="top" class="odd"><td><pre>        vect.insert(i, ptr);</pre>
</td><td><pre>        delete vect[i];
        vect[i] = ptr;</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        vect.remove(i);</pre>
</td><td><pre>        delete vect[i];
        vect[i] = 0;</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        T *ptr = vect.take(i);</pre>
</td><td><pre>        T *ptr = vect[i];
        vect[i] = 0;</pre>
</td></tr>
<tr valign="top" class="even"><td><pre>        vect.resize(n)</pre>
</td><td><pre>        while (n &gt; vect.size())
            vect.append(0);
        while (n &lt; vect.size() {
            T *ptr = vect.last();
            vect.remove(vect.size() - 1);
            delete ptr;
        }</pre>
</td></tr>
<tr valign="top" class="odd"><td><pre>        vect.clear();</pre>
<p>(also called from QPtrVector's destructor)</p>
</td><td><pre>        for (int i = 0; i &lt; vect.size(); ++i)
            T *ptr = vect[i];
            vect[i] = 0;
            delete ptr;
        }</pre>
<p>In 99% of cases, the following idiom also works:</p>
<pre>        qDeleteAll(vect);
        vect.clear();</pre>
<p>However, it may lead to crashes if <tt>vect</tt> is referenced from the value type's destructor, because <tt>vect</tt> contains dangling pointers until clear() is called.</p>
</td></tr>
</table></p>
<p>Be aware that QPtrVector's destructor automatically calls clear(). If you have a QPtrVector data member in a custom class and use the auto-delete feature, you will need to call <tt>delete</tt> on all the items in the container from your class destructor to avoid a memory leak.</p>
<a name="qpushbutton"></a>
<h2>QPushButton</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qrangecontrol"></a>
<h2>QRangeControl</h2>
<p>In Qt 3, various &quot;range control&quot; widgets (<a href="gui/QDial.html"><tt>QDial</tt></a>, <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>, <a href="gui/QSlider.html"><tt>QSlider</tt></a>, and QSpin) inherited from both <a href="gui/QWidget.html"><tt>QWidget</tt></a> and <tt>QRangeControl</tt>.</p>
<p>In Qt 4, <tt>QRangeControl</tt> has been replaced with the new <a href="gui/QAbstractSlider.html"><tt>QAbstractSlider</tt></a> and <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> classes, which inherit from <a href="gui/QWidget.html"><tt>QWidget</tt></a> and provides similar functionality. Apart from eliminating unnecessary multiple inheritance, the new design allows <a href="gui/QAbstractSlider.html"><tt>QAbstractSlider</tt></a> to provide signals, slots, and properties.</p>
<p>The old <tt>QRangeControl</tt> class has been renamed Q3RangeControl and moved to the Qt3Support library, together with the (undocumented) <tt>QSpinWidget</tt> class.</p>
<p>If you use <tt>QRangeControl</tt> as a base class in your application, you can switch to use <a href="gui/QAbstractSlider.html"><tt>QAbstractSlider</tt></a> or <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">        class VolumeControl : public QWidget, public QRangeControl
        {
            ..&#x2e;
        protected:
            void valueChange() {
                update();
                emit valueChanged(value());
            }
            void rangeChange() {
                update();
            }
            void stepChange() {
                update();
            }
        };</font></pre>
<p>you can rewrite it as</p>
<pre>        class VolumeControl : public QAbstractSlider
        {
            ...
        protected:
            void sliderChange(SliderChange change) {
                update();
                if (change == SliderValueChange)
                    emit valueChanged(value());
            }
        };</pre>
<a name="qregexp"></a>
<h2>QRegExp</h2>
<p>The search() and searchRev() functions have been renamed to indexIn() and lastIndexIn() respectively.</p>
<a name="qregion"></a>
<h2>QRegion</h2>
<p>The following changes have been made to <a href="gui/QRegion.html"><tt>QRegion</tt></a> in Qt 4:</p>
<ul>
<li>There is no longer any difference between a <i>null</i> region and an <i>empty</i> region. Use isEmpty() in most places where you would have used a null <a href="gui/QRegion.html"><tt>QRegion</tt></a>.</li>
<li>QRegion::rects() used to return a QMemArray&lt;<a href="core/QRect.html"><tt>QRect</tt></a>&gt;. It now returns a QVector&lt;<a href="core/QRect.html"><tt>QRect</tt></a>&gt;.</li>
</ul>
<a name="qscrollbar"></a>
<h2>QScrollBar</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qscrollview"></a>
<h2>QScrollView</h2>
<p>The <tt>QScrollView</tt> class has been renamed Q3ScrollView and moved to the Qt3Support library. It has been replaced by the <a href="gui/QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and <a href="gui/QScrollArea.html"><tt>QScrollArea</tt></a> classes.</p>
<p>Note that Qt 4 in general uses the QScrollArea::widget() function where Qt 3 used QScrollView::viewport(). The rationale for this is that it is no longer possible to draw directly on a scroll area. The QScrollArea::widget() function returns the widget set on the scroll area.</p>
<p><tt>QScrollView</tt> was designed to work around the 16-bit limitation on widget coordinates found on most window systems. In Qt 4, this is done transparently for <i>all</i> widgets, so there is no longer a need for such functionality in <tt>QScrollView</tt>. For that reason, the new <a href="gui/QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and <a href="gui/QScrollArea.html"><tt>QScrollArea</tt></a> classes are much more lightweight, and concentrate on handling scroll bars.</p>
<a name="qserversocket"></a>
<h2>QServerSocket</h2>
<p>The <tt>QServerSocket</tt> class has been renamed Q3ServerSocket and moved to the Qt3Support library. In Qt 4, it has been replaced by <a href="network/QTcpServer.html"><tt>QTcpServer</tt></a>.</p>
<p>With Q3ServerSocket, connections are accepted by reimplementing a virtual function (Q3ServerSocket::newConnection()). With <a href="network/QTcpServer.html"><tt>QTcpServer</tt></a>, on the other hand, you don't need to subclass. Instead, simply connect to the QTcpServer::newConnection() signal.</p>
<a name="qsettings"></a>
<h2>QSettings</h2>
<p>The <a href="core/QSettings.html"><tt>QSettings</tt></a> class has been rewritten to be more robust and to respect existing standards (e.g&#x2e;, the INI file format). The API has also been extensively revised. The old API is still provided when Qt 3 support is enabled.</p>
<p>Since the format and location of settings have changed between Qt 3 and Qt 4, the Qt 4 version of your application won't recognize settings written using Qt 3.</p>
<a name="qshared"></a>
<h2>QShared</h2>
<p>The <tt>QShared</tt> class has been obsoleted by the more powerful QSharedData and QSharedDataPointer as a means of creating custom implicitly shared classes. It has been renamed Q3Shared moved to the Qt3Support library.</p>
<p>An easy way of porting to Qt 4 is to include this class into your project and to use it instead of <tt>QShared</tt>:</p>
<pre>        struct Shared
        {
            Shared() : count(1) {}
            void ref() { ++count; }
            bool deref() { return !--count; }
            uint count;
        };</pre>
<p>If possible, we recommend that you use QSharedData and QSharedDataPointer instead. They provide thread-safe reference counting and handle all the reference counting behind the scenes, eliminating the risks of forgetting to increment or decrement the reference count.</p>
<a name="qsignal"></a>
<h2>QSignal</h2>
<p>The <a href="porting4.html#qsignal"><tt>QSignal</tt></a> class has been renamed to Q3Signal and moved to the Qt3Support library. The preferred approach is to create your own <a href="core/QObject.html"><tt>QObject</tt></a> subclass with a signal that has the desired signature. Alternatively, you can call QMetaObject::invokeMethod() if you want to invoke a slot.</p>
<a name="qsimplerichtext"></a>
<h2>QSimpleRichText</h2>
<p>The <tt>QSimpleRichText</tt> class has been renamed Q3SimpleRichText and moved to the Qt3Support library.</p>
<p>See <a href="richtext.html">Rich Text Processing</tt></a> for an overview of the Qt 4 rich text classes.</p>
<a name="qslider"></a>
<h2>QSlider</h2>
<p>The QSlider::sliderStart() and QSlider::sliderRect() functions have been removed. You can retrieve this information using QAbstractSlider::sliderPosition() and QStyle::querySubControlMetrics(), respectively.</p>
<p>In addition, the direction of a vertical <a href="gui/QSlider.html"><tt>QSlider</tt></a> has changed, i.e&#x2e; the bottom is now the minimum, and the top the maximum. You can use the QAbstractSlider::invertedAppearance property to control this behavior.</p>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QSlider.html"><tt>QSlider</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qsocket"></a>
<h2>QSocket</h2>
<p>The <tt>QSocket</tt> class has been renamed Q3Socket and moved to the Qt3Support library. In Qt 4, it has been replaced by the <a href="network/QTcpSocket.html"><tt>QTcpSocket</tt></a> class, which inherits most of its functionality from <a href="network/QAbstractSocket.html"><tt>QAbstractSocket</tt></a>.</p>
<a name="qsocketdevice"></a>
<h2>QSocketDevice</h2>
<p>The <tt>QSocketDevice</tt> class has been renamed Q3SocketDevice and moved to the Qt3Support library. In Qt 4, there is no direct equivalent to Q3SocketDevice:</p>
<ul>
<li>If you use Q3SocketDevice in a thread to perform blocking network I/O (a technique encouraged by the <i>Qt Quarterly</i> article <a href="http://doc.trolltech.com/qq/qq09-networkthread.html">Unblocking Networking</tt></a>), you can now use <a href="network/QTcpSocket.html"><tt>QTcpSocket</tt></a>, <a href="network/QFtp.html"><tt>QFtp</tt></a>, or <a href="network/QHttp.html"><tt>QHttp</tt></a> instead, which can now be used from non-GUI threads.</li>
<li>If you use Q3SocketDevice for UDP, you can now use <a href="network/QUdpSocket.html"><tt>QUdpSocket</tt></a> instead.</li>
<li>If you use Q3SocketDevice for other uses, Qt 4 offers no alternative right now. However, there is a <tt>QAbstractSocketEngine</tt> internal class that offers a low-level socket API similar to Q3SocketDevice. Should the need for such functionality arise in Qt 4 applications, we will consider making this class public in a future release.</li>
</ul>
<a name="qsortedlist"></a>
<h2>QSortedList</h2>
<p>The <a href="porting4.html#qsortedlist"><tt>QSortedList</tt></a>&lt;T&gt; class has been deprecated since Qt 3.0&#x2e; In Qt 4, it has been moved to the Qt3Support library.</p>
<p>In new code, we recommend that you use QList&lt;T&gt; instead and use <tt>qSort</tt> to sort the items.</p>
<a name="qsplitter"></a>
<h2>QSplitter</h2>
<p>The function setResizeMode() has been moved into Qt3Support. Set the stretch factor in the widget's size policy to get equivalent functionality.</p>
<p>The obsolete function drawSplitter() has been removed. Use QStyle::drawPrimitive() to acheive similar functionality.</p>
<a name="qspinbox"></a>
<h2>QSpinBox</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qsqlcursor"></a>
<h2>QSqlCursor</h2>
<p>The <tt>QSqlCursor</tt> class has been renamed Q3SqlCursor and moved to the Qt3Support library. In Qt 4, you can use <a href="sql/QSqlQuery.html"><tt>QSqlQuery</tt></a>, <a href="sql/QSqlQueryModel.html"><tt>QSqlQueryModel</tt></a>, or <a href="sql/QSqlTableModel.html"><tt>QSqlTableModel</tt></a>, depending on whether you want a low-level or a high-level interface for accessing databases.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qsqldatabase"></a>
<h2>QSqlDatabase</h2>
<p><a href="sql/QSqlDatabase.html"><tt>QSqlDatabase</tt></a> is now a smart pointer that is passed around by value. Simply replace all <a href="sql/QSqlDatabase.html"><tt>QSqlDatabase</tt></a> pointers by <a href="sql/QSqlDatabase.html"><tt>QSqlDatabase</tt></a> objects.</p>
<a name="qsqleditorfactory"></a>
<h2>QSqlEditorFactory</h2>
<p>The <tt>QSqlEditorFactory</tt> class has been renamed Q3SqlEditorFactory and moved to Qt3Support.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qsqlerror"></a>
<h2>QSqlError</h2>
<p>The enum <tt>Type</tt> was renamed to <tt>ErrorType</tt>, The values were renamed as well:</p>
<ul>
<li>None - use NoError instead</li>
<li>Connection - use ConnectionError instead</li>
<li>Statement - use StatementError instead</li>
<li>Transaction - use TransactionError instead</li>
<li>Unknown - use UnknownError instead</li>
</ul>
<a name="qsqlfieldinfo"></a>
<h2>QSqlFieldInfo</h2>
<p>The <a href="porting4.html#qsqlfieldinfo"><tt>QSqlFieldInfo</tt></a> class has been moved to Qt3Support. Its functionality is now provided by the <a href="sql/QSqlField.html"><tt>QSqlField</tt></a> class.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qsqlform"></a>
<h2>QSqlForm</h2>
<p>The <tt>QSqlForm</tt> class has been renamed Q3SqlForm and moved to the Qt3Support library.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qsqlpropertymap"></a>
<h2>QSqlPropertyMap</h2>
<p>The <tt>QSqlPropertyMap</tt> class has been renamed Q3SqlPropertyMap moved to the Qt3Support library.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qsqlquery"></a>
<h2>QSqlQuery</h2>
<p>QSqlQuery::prev() was renamed to QSqlQuery::previous(). There is a function call for compatibility, but if you subclassed <a href="sql/QSqlQuery.html"><tt>QSqlQuery</tt></a>, you have to reimplement previous() instead of prev().</p>
<a name="qsqlrecord"></a>
<h2>QSqlRecord</h2>
<p><a href="sql/QSqlRecord.html"><tt>QSqlRecord</tt></a> behaves like a vector now, QSqlRecord::insert() will actually insert a new field instead of replacing the existing one.</p>
<a name="qsqlrecordinfo"></a>
<h2>QSqlRecordInfo</h2>
<p>The <a href="porting4.html#qsqlrecordinfo"><tt>QSqlRecordInfo</tt></a> class has been moved to Qt3Support. Its functionality is now provided by the <a href="sql/QSqlRecord.html"><tt>QSqlRecord</tt></a> class.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qsqlselectcursor"></a>
<h2>QSqlSelectCursor</h2>
<p>The <tt>QSqlSelectCursor</tt> class has been renamed Q3SqlSelectCursor and moved to the Qt3Support library.</p>
<p>See <tt>QtSql Module</tt> for an overview of the new SQL classes.</p>
<a name="qstoreddrag"></a>
<h2>QStoredDrag</h2>
<p>The <tt>QStoredDrag</tt> class has been renamed Q3StoredDrag and moved to the Qt3Support library. In Qt 4, use <a href="gui/QMimeData.html"><tt>QMimeData</tt></a> instead and call QMimeData::setData() to set the data.</p>
<p>See <a href="porting4-dnd.html">Porting to Qt 4 (Drag and Drop)</tt></a> for a comparison between the drag and drop APIs in Qt 3 and Qt 4.</p>
<a name="qstr-i-list"></a>
<h2>QStr(I)List</h2>
<p>The QStrList and QStrIList convenience classes have been deprecated since Qt 2.0&#x2e; In Qt 4, they have been moved to the Qt3Support library. If you used any of these, we recommend that you use <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> or QList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; instead.</p>
<a name="qstr-i-vec"></a>
<h2>QStr(I)Vec</h2>
<p>The QStrVec and QStrIVec convenience classes have been deprecated since Qt 2.0&#x2e; In Qt 4, they have been moved to Qt3Support. If you used any of these, we recommend that you use <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> or QList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; instead.</p>
<a name="qstring"></a>
<h2>QString</h2>
<p>Here are the main issues to be aware of when porting <a href="porting4.html#qstring"><tt>QString</tt></a> to Qt 4:</p>
<ol type="1">
<li>The QString::QString(QChar) constructor performed implicit conversion in Qt 3. Now, you will need a cast to convert a QChar to a <a href="porting4.html#qstring"><tt>QString</tt></a>.</li>
<li>The QString::QString(const <a href="core/QByteArray.html"><tt>QByteArray</tt></a> &amp;) constructor used to stop at the first '\0' it encountered, for compatibility with Qt 1. This quirk has now been fixed; in Qt 4, the resulting <a href="porting4.html#qstring"><tt>QString</tt></a> always has the same length as the <a href="core/QByteArray.html"><tt>QByteArray</tt></a> that was passed to the constructor.</li>
<li>The QString::null static constant has been deprecated in Qt 4. For compatibility, Qt 4 provides a QString::null symbol that behaves more or less the same as the old constant. The new idiom is to write <a href="porting4.html#qstring"><tt>QString</tt></a> instead of QString::null, or to call clear().<p>For example, if you have code like</p>
<pre><font color="#404040">            str1 = QString::null;
            if (str2 == QString::null)
                do_something(QString::null);</font></pre>
<p>you can rewrite it as</p>
<pre>            str1.clear();
            if (str2.isNull())
                do_something(QString());</pre>
<p>In new code, we recommend that you don't rely on the distinction between a null string and a (non-null) empty string. See Distinction Between Null and Empty Strings</tt> for details.</p>
</li>
<li>QString::latin1() and QString::ascii() have been replaced with QString::toLatin1() and QString::toAscii(), which return a <a href="core/QByteArray.html"><tt>QByteArray</tt></a> instead of a (non-reentrant) <tt>const char *</tt>. For consistency, QString::utf8() and QString::local8Bit(), which already returned a <a href="core/QByteArray.html"><tt>QByteArray</tt></a> (actually a <tt>QCString</tt>), have been renamed QString::toUtf8() and QString::toLocal8Bit().<p>To obtain a <tt>const char *</tt> pointer to ASCII or Latin-1 data, use QString::toAscii() or QString::toLatin1() to obtain a <a href="core/QByteArray.html"><tt>QByteArray</tt></a> containing the data, then call QByteArray::constData() to access the character data directly. Note that the pointer returned by this function is only valid for the lifetime of the byte array; you should avoid taking a pointer to the data contained in temporary objects.</p>
<pre>        QString greeting = &quot;Hello&quot;;
        const char *badData = greeting.toAscii().constData(); <span class="comment">// data is invalid</span>
        QByteArray asciiData = greeting.toAscii();
        const char *goodData = asciiData.constData();</pre>
<p>In the above example, the <tt>goodData</tt> pointer is valid for the lifetime of the <tt>asciiData</tt> byte array. If you need to keep a copy of the data in a non-Qt data structure, use standard C memory allocation and string copying functions to do so <i>before</i> destroying the byte array.</p>
</li>
<li>QString::at() returned a non-const reference, whereas the new QString::at() returns a const value. Code like<pre>        str.at(0) = 'X';</pre>
<p>will no longer compile. Instead, use QString::operator[]:</p>
<pre>        str[0] = 'X';</pre>
</li>
<li>The QString::contains(<i>x</i>) function (where <i>x</i> is a character or a string) has been renamed QString::count(<i>x</i>). In addition, there now exists a set of QString::contains() functions that returns a boolean value. Replace old calls to contains() with either count() or contains(), depending on whether you care about the specific number of occurrences of a character in the string or only care about whether the string contains that character or not.</li>
<li>Many functions in <a href="porting4.html#qstring"><tt>QString</tt></a> had a <tt>bool</tt> parameter that specified case sensitivity. In Qt 4, in the interest of code readability and maintainability, the <tt>bool</tt> parameters have been replaced by the Qt::CaseSensitivity enum, which can take the values Qt::CaseSensitive and Qt::CaseInsensitive.<p>For example, if you have code like</p>
<pre><font color="#404040">            if (url.startsWith(&quot;http:&quot;, false))
                ..&#x2e;</font></pre>
<p>you can rewrite it as</p>
<pre>            if (url.startsWith(&quot;http:&quot;, Qt::CaseInsensitive))
                ...</pre>
</li>
<li>The QString::setExpand(uint, QChar) function, which already was obsolete in Qt 3, is no longer available. Use QString::operator[] instead.<p>For example, if you have code like</p>
<pre><font color="#404040">            str.setExpand(32, '$');</font></pre>
<p>you can rewrite it as</p>
<pre>            str[32] = '$';</pre>
</li>
<li>The <tt>QT_NO_ASCII_CAST</tt> and <tt>QT_NO_CAST_ASCII</tt> macros have been renamed <tt>QT_NO_CAST_TO_ASCII</tt> and <tt>QT_NO_CAST_FROM_ASCII</tt>, respectively.</li>
<li>The QString::data() used to return the same as QString::ascii(). It now returns a pointer to the Unicode data stored in the <a href="porting4.html#qstring"><tt>QString</tt></a> object. Call QString::ascii() if you want the old behavior.</li>
<li>QString::arg() now converts two-digit place markers, allowing up to 99 place markers to be used in any given string.</li>
<li>Comparisons between QStrings and <tt>NULL</tt> in order to determine whether strings are empty are no longer allowed. Use isEmpty() instead.</li>
</ol>
<a name="qstringlist"></a>
<h2>QStringList</h2>
<p><a href="porting4.html#qstringlist"><tt>QStringList</tt></a> now inherits from QList&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>&gt; and can no longer be converted to a QValueList&lt;<a href="porting4.html#qstring"><tt>QString</tt></a>&gt;. Since QValueList inherits QList a cast will work as expected.</p>
<p>This change implies some API incompatibilities for <a href="porting4.html#qstringlist"><tt>QStringList</tt></a>. For example, at() returns the string, not an iterator. See the <a href="porting4.html#qvaluelist-section">section on </tt>QValueList</a> for details.</p>
<p>The static QStringList::split() function for splitting strings into lists of smaller strings has been replaced by QString::split(), which returns a <a href="porting4.html#qstringlist"><tt>QStringList</tt></a>.</p>
<a name="qstyle"></a>
<h2>QStyle</h2>
<p>The <a href="gui/QStyle.html"><tt>QStyle</tt></a> API has been overhauled and improved. Most of the information on why this change was done is described in <a href="qt4-styles.html">the </tt>QStyle overview</tt></a>.</p>
<p>Since <a href="gui/QStyle.html"><tt>QStyle</tt></a> is mostly used internally by Qt's widgets and styles and since it is not essential to the good functioning of an application, there is no compatibility path. This means that we have changed many enums and functions and the qt3to4 porting tool will not change much in your qstyle code. To ease the pain, we list some of the major changes here.</p>
<p><a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> has taken on a more central role and is no longer an optional argument, please see the <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> documentation for more information.</p>
<p>The QStyle::StyleFlags have been renamed QStyle::StateFlags and are now prefixed State_ instead of Style_, in addition the Style_ButtonDefault flag has moved to <a href="gui/QStyleOptionButton.html"><tt>QStyleOptionButton</tt></a>.</p>
<p>The QStyle::PrimitiveElement enumeration has undergone extensive change. Some of the enums were moved to QStyle::ControlElement, some were removed and all were renamed. This renaming is not done by the qt3to4 porting tool, so you must do it yourself. The table below shows how things look now.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Old name</th><th>New name</th><th>Remark</th></tr></thead>
<tr valign="top" class="odd"><td><tt>PE_ButtonCommand</tt></td><td>QStyle::PE_PanelButtonCommand</td></tr>
<tr valign="top" class="even"><td><tt>PE_ButtonDefault</tt></td><td>QStyle::PE_FrameDefaultButton</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ButtonBevel</tt></td><td>QStyle::PE_PanelButtonBevel</td></tr>
<tr valign="top" class="even"><td><tt>PE_ButtonTool</tt></td><td>QStyle::PE_PanelButtonTool</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ButtonDropDown</tt></td><td>QStyle::PE_IndicatorButtonDropDown</td></tr>
<tr valign="top" class="even"><td><tt>PE_FocusRect</tt></td><td>QStyle::PE_FrameFocusRect</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ArrowUp</tt></td><td>QStyle::PE_IndicatorArrowUp</td></tr>
<tr valign="top" class="even"><td><tt>PE_ArrowDown</tt></td><td>QStyle::PE_IndicatorArrowDown</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ArrowRight</tt></td><td>QStyle::PE_IndicatorArrowRight</td></tr>
<tr valign="top" class="even"><td><tt>PE_ArrowLeft</tt></td><td>QStyle::PE_IndicatorArrowLeft</td></tr>
<tr valign="top" class="odd"><td><tt>PE_SpinBoxUp</tt></td><td>QStyle::PE_IndicatorSpinUp</td></tr>
<tr valign="top" class="even"><td><tt>PE_SpinBoxDown</tt></td><td>QStyle::PE_IndicatorSpinDown</td></tr>
<tr valign="top" class="odd"><td><tt>PE_SpinBoxPlus</tt></td><td>QStyle::PE_IndicatorSpinPlus</td></tr>
<tr valign="top" class="even"><td><tt>PE_SpinBoxMinus</tt></td><td>QStyle::PE_IndicatorSpinMinus</td></tr>
<tr valign="top" class="odd"><td><tt>PE_SpinBoxSlider</tt></td><td>QStyle::CE_SpinBoxSlider</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="even"><td><tt>PE_Indicator</tt></td><td>QStyle::PE_IndicatorCheckBox</td></tr>
<tr valign="top" class="odd"><td><tt>PE_IndicatorMask</tt></td><td>N/A</td><td>use QStyle::styleHint() to retrieve mask</td></tr>
<tr valign="top" class="even"><td><tt>PE_ExclusiveIndicator</tt></td><td>QStyle::PE_IndicatorRadioButton</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ExclusiveIndicatorMask</tt></td><td>N/A</td><td>use QStyle::styleHint() to retrieve mask</td></tr>
<tr valign="top" class="even"><td><tt>PE_DockWindowHandle</tt></td><td>QStyle::PE_IndicatorToolBarHandle</td></tr>
<tr valign="top" class="odd"><td><tt>PE_DockWindowSeparator</tt></td><td>QStyle::PE_Q3DockWindowSeparator</td></tr>
<tr valign="top" class="even"><td><tt>PE_DockWindowResizeHandle</tt></td><td>QStyle::PE_IndicatorDockWindowResizeHandle</td></tr>
<tr valign="top" class="odd"><td><tt>PE_DockWindowTitle</tt></td><td>QStyle::CE_DockWindowTitle</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="even"><td><tt>PE_Splitter</tt></td><td>QStyle::CE_Splitter</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_Panel</tt></td><td>QStyle::PE_Frame</td></tr>
<tr valign="top" class="even"><td><tt>PE_PanelMenu</tt></td><td>QStyle::PE_FrameMenu</td></tr>
<tr valign="top" class="odd"><td><tt>PE_PanelMenuBar</tt></td><td>QStyle::PE_PanelMenuBar</td></tr>
<tr valign="top" class="even"><td><tt>PE_PanelDockWindow</tt></td><td>QStyle::PE_FrameDockWindow</td></tr>
<tr valign="top" class="odd"><td><tt>PE_TabBarBase</tt></td><td>QStyle::PE_FrameTabBarBase</td></tr>
<tr valign="top" class="even"><td><tt>PE_HeaderSection</tt></td><td>QStyle::CE_HeaderSection</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_HeaderArrow</tt></td><td>QStyle::PE_IndicatorHeaderArrow</td></tr>
<tr valign="top" class="even"><td><tt>PE_StatusBarSection</tt></td><td>QStyle::PE_FrameStatusBar</td></tr>
<tr valign="top" class="odd"><td><tt>PE_Separator</tt></td><td>QStyle::PE_Q3Separator</td></tr>
<tr valign="top" class="even"><td><tt>PE_SizeGrip</tt></td><td>QStyle::CE_SizeGrip</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_CheckMark</tt></td><td>QStyle::PE_IndicatorMenuCheckMark</td></tr>
<tr valign="top" class="even"><td><tt>PE_ScrollBarAddLine</tt></td><td>QStyle::CE_ScrollBarAddLine</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ScrollBarSubLine</tt></td><td>QStyle::CE_ScrollBarSubLine</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="even"><td><tt>PE_ScrollBarAddPage</tt></td><td>QStyle::CE_ScrollBarAddPage</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ScrollBarSubPage</tt></td><td>QStyle::CE_ScrollBarSubPage</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="even"><td><tt>PE_ScrollBarSlider</tt></td><td>QStyle::CE_ScrollBarSlider</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ScrollBarFirst</tt></td><td>QStyle::CE_ScrollBarFirst</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="even"><td><tt>PE_ScrollBarLast</tt></td><td>QStyle::CE_ScrollBarLast</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ProgressBarChunk</tt></td><td>QStyle::PE_IndicatorProgressChunk</td></tr>
<tr valign="top" class="even"><td><tt>PE_PanelLineEdit</tt></td><td>QStyle::PE_FrameLineEdit</td></tr>
<tr valign="top" class="odd"><td><tt>PE_PanelTabWidget</tt></td><td>QStyle::PE_FrameTabWidget</td></tr>
<tr valign="top" class="even"><td><tt>PE_WindowFrame</tt></td><td>QStyle::PE_FrameWindow</td></tr>
<tr valign="top" class="odd"><td><tt>PE_CheckListController</tt></td><td>QStyle::PE_Q3CheckListController</td></tr>
<tr valign="top" class="even"><td><tt>PE_CheckListIndicator</tt></td><td>QStyle::PE_Q3CheckListIndicator</td></tr>
<tr valign="top" class="odd"><td><tt>PE_CheckListExclusiveIndicato\o</tt> QStyle::PE_Q3CheckListExclusiveIndicator</td></tr>
<tr valign="top" class="even"><td><tt>PE_PanelGroupBox</tt></td><td>QStyle::PE_FrameGroupBox</td></tr>
<tr valign="top" class="odd"><td><tt>PE_TreeBranch</tt></td><td>QStyle::PE_IndicatorBranch</td></tr>
<tr valign="top" class="even"><td><tt>PE_RubberBand</tt></td><td>QStyle::CE_RubberBand</td><td>uses QStyle::drawControl()</td></tr>
<tr valign="top" class="odd"><td><tt>PE_PanelToolBar</tt></td><td>QStyle::PE_PanelToolBar</td></tr>
<tr valign="top" class="even"><td><tt>PE_ToolBarHandle</tt></td><td>QStyle::PE_IndicatorToolBarHandle</td></tr>
<tr valign="top" class="odd"><td><tt>PE_ToolBarSeparator</tt></td><td>QStyle::PE_IndicatorToolBarSeparator</td></tr>
</table></p>
<p>The QStyle::drawControlMask() and QStyle::drawComplexControlMask() functions have been removed. They are replaced with a style hint.</p>
<p>The QStyle::drawItem() overloads that took both a pixmap and a string have been removed. Use QStyle::drawItemText() and QStyle::drawItemPixmap() directly.</p>
<p>The QStyle::itemRect() overload that took both a pixmap and a string is also removed, use either QStyle::itemTextRect() or QStyle::itemPixmapRect() instead.</p>
<a name="qstylesheet"></a>
<h2>QStyleSheet</h2>
<p>The <a href="porting4.html#qstylesheet"><tt>QStyleSheet</tt></a> and QStyleSheetItem classes have been renamed Q3StyleSheet and Q3StyleSheetItem, and have been moved to the Qt3Support library.</p>
<p>See <a href="richtext.html">Rich Text Processing</tt></a> for an overview of the Qt 4 rich text classes, and <a href="stylesheet.html">Qt Style Sheets</tt></a> for a description of CSS-like style sheet support in Qt 4.2 and above.</p>
<a name="qsyntaxhighlighter"></a>
<h2>QSyntaxHighlighter</h2>
<p>The <tt>QSyntaxHighlighter</tt> class from Qt 3 has been renamed Q3SyntaxHighlighter and moved to the Qt3Support library. Since Qt 4.1, it has been replaced by a new <a href="gui/QSyntaxHighlighter.html"><tt>QSyntaxHighlighter</tt></a> class based on Qt 4's new rich text engine.</p>
<a name="qtabbar"></a>
<h2>QTabBar</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qtabdialog"></a>
<h2>QTabDialog</h2>
<p>The <tt>QTabDialog</tt> class is no longer part of the public Qt API. It has been renamed Q3TabDialog and moved to Qt3Support. In Qt 4 applications, you can easily obtain the same result by combining a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a> with a <a href="gui/QDialog.html"><tt>QDialog</tt></a> and provide <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>s yourself.</p>
<p>See also the dialogs/tabdialog</tt> example, which shows how to implement tab dialogs in Qt 4.</p>
<a name="qtabwidget"></a>
<h2>QTabWidget</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qtable"></a>
<h2>QTable</h2>
<p>The <tt>QTable</tt>, <tt>QTableItem</tt>, <tt>QComboTableItem</tt>, <tt>QCheckTableItem</tt>, and <tt>QTableSelection</tt> classes have been renamed Q3Table, Q3TableItem, Q3ComboTableItem, Q3CheckTableItem, and Q3TableSelection and moved to the Qt3Support library. New Qt applications should use the new <a href="gui/QTableWidget.html"><tt>QTableWidget</tt></a> or <a href="gui/QTableView.html"><tt>QTableView</tt></a> class instead.</p>
<p>Some of these classes behave differently with respect to the way they handle <tt>NULL</tt> pointers. For example, Q3TableItem::setPixmap() no longer accepts <tt>NULL</tt> or 0 to indicate that the item should contain a null pixmap; in this case, a null pixmap should be constructed and passed explicitly to the function.</p>
<p>See <a href="model-view-programming.html">Model/View Programming</tt></a> for an overview of the new item view classes.</p>
<a name="qtextdrag"></a>
<h2>QTextDrag</h2>
<p>The <tt>QTextDrag</tt> class has been renamed Q3TextDrag and moved to the Qt3Support library. In Qt 4, use <a href="gui/QMimeData.html"><tt>QMimeData</tt></a> instead and call QMimeData::setText() to set the data.</p>
<p>See <a href="porting4-dnd.html">Porting to Qt 4 (Drag and Drop)</tt></a> for a comparison between the drag and drop APIs in Qt 3 and Qt 4.</p>
<a name="qtextedit"></a>
<h2>QTextEdit</h2>
<p>The old <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> and <a href="gui/QTextBrowser.html"><tt>QTextBrowser</tt></a> classes have been renamed Q3TextEdit and Q3TextBrowser, and have been moved to Qt3Support. The new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> and <a href="gui/QTextBrowser.html"><tt>QTextBrowser</tt></a> have a somewhat different API.</p>
<p>The <tt>QTextEdit::setWrapPolicy()</tt> function has been renamed to setWordWrapMode() and the <tt>QTextEdit::setWrapColumnOrWidth()</tt> function has been renamed to setLineWrapColumnOrWidth(). The Q3TextEdit::setWrapPolicy() and Q3TextEdit::setWrapColumnOrWidth() still provide this functionality in the Q3TextEdit class.</p>
<p>See <a href="richtext.html">Rich Text Processing</tt></a> for an overview of the Qt 4 rich text classes.</p>
<a name="qtextistream"></a>
<h2>QTextIStream</h2>
<p>The <a href="porting4.html#qtextistream"><tt>QTextIStream</tt></a> convenience class is no longer provided in Qt 4. Use <a href="core/QTextStream.html"><tt>QTextStream</tt></a> directly instead.</p>
<a name="qtextostream"></a>
<h2>QTextOStream</h2>
<p>The <a href="porting4.html#qtextostream"><tt>QTextOStream</tt></a> convenience class is no longer provided in Qt 4. Use <a href="core/QTextStream.html"><tt>QTextStream</tt></a> directly instead.</p>
<a name="qtextostreamiterator"></a>
<h2>QTextOStreamIterator</h2>
<p>The undocumented <tt>QTextOStreamIterator</tt> class has been removed from the Qt library. If you need it in your application, feel free to copy the source code from the Qt 3 <tt>&lt;qtl.h&gt;</tt> header file.</p>
<a name="qtextstream"></a>
<h2>QTextStream</h2>
<p><a href="core/QTextStream.html"><tt>QTextStream</tt></a> has undergone a number of API and implementation enhancements, and some of the changes affect <a href="core/QTextStream.html"><tt>QTextStream</tt></a>'s behavior:</p>
<ul>
<li><a href="core/QTextStream.html"><tt>QTextStream</tt></a> now uses buffered writing, which means that you need to call QTextStream::flush(), or use the streaming manipulators <tt>endl</tt> or <tt>flush</tt> if you need <a href="core/QTextStream.html"><tt>QTextStream</tt></a> to flush its write buffer. The stream is flushed automatically if <a href="core/QTextStream.html"><tt>QTextStream</tt></a> is deleted or when the device is closed.</li>
<li><a href="core/QTextStream.html"><tt>QTextStream</tt></a> now uses buffered reading, so if you read a line from the stream, <a href="core/QTextStream.html"><tt>QTextStream</tt></a> will read as much as it can from the device to fill up its internal read buffer. This speeds up reading significantly, but Qt 3 code that mixed <a href="core/QTextStream.html"><tt>QTextStream</tt></a> access and direct device access may need to be updated.</li>
<li>While <a href="core/QTextStream.html"><tt>QTextStream</tt></a> in Qt 3 always translated end-of-line characters from Windows style (&quot;\r\n&quot;) to Unix style (&quot;\n&quot;) on Windows, <a href="core/QTextStream.html"><tt>QTextStream</tt></a> in Qt 4 only does this on devices opened with the <tt>QIODevice::Text</tt> mode (formerly <tt>IO_Translate</tt>).</li>
</ul>
<p>Note that when using a <a href="core/QTextStream.html"><tt>QTextStream</tt></a> on a <a href="core/QFile.html"><tt>QFile</tt></a> in Qt 4, calling QIODevice::reset() on the <a href="core/QFile.html"><tt>QFile</tt></a> will not have the expected result because <a href="core/QTextStream.html"><tt>QTextStream</tt></a> now buffers the file. Use the QTextStream::seek() function instead.</p>
<a name="qtextview"></a>
<h2>QTextView</h2>
<p>The <tt>QTextView</tt> class has been renamed Q3TextView and moved to the Qt3Support library.</p>
<a name="qtimeedit"></a>
<h2>QTimeEdit</h2>
<p>The <a href="gui/QTimeEdit.html"><tt>QTimeEdit</tt></a> class in Qt 4 is a convenience class based on <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a>. The old class has been renamed Q3TimeEdit and moved to the Qt3Support library.</p>
<p>See <a href="porting4.html#virtual-functions">Virtual Functions</tt></a> for a list of <tt>QTimeEdit</tt> virtual member functions in Qt 3 that are no longer virtual in Qt 4.</p>
<a name="qtimer"></a>
<h2>QTimer</h2>
<p>Windows restricts the granularity of timers, but starting with Qt 4, we emulate a finer time resolution. On Windows XP we use the multimedia timer API, which gives us 1 millisecond resolution for <a href="core/QTimer.html"><tt>QTimer</tt></a>.</p>
<p>Note that other versions of Windows have a lower timer resolution, and that code relying on underlying system timer restrictions encounters no such limitations using Qt 4 (e.g&#x2e;, setting an interval of 0 millisecond results in Qt occupying all of the processor time when no GUI events need processing).</p>
<a name="qtoolbar"></a>
<h2>QToolBar</h2>
<p>The old <tt>QToolBar</tt> class, which worked with the old <tt>QMainWindow</tt> and <tt>QDockArea</tt> classes and inherited from <tt>QDockWindow</tt>, has been renamed Q3ToolBar and moved to Qt3Support. Note that, when using Q3ToolBar, the toolbar's actions must be Q3Action</tt>s.</p>
<p>Use the new <a href="gui/QToolBar.html"><tt>QToolBar</tt></a> class in new applications.</p>
<a name="qtoolbutton"></a>
<h2>QToolButton</h2>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QToolBar.html"><tt>QToolBar</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<p>Note that many of the properties that could previously be set in the constructor must now be set separately.</p>
<a name="qtooltip"></a>
<h2>QToolTip</h2>
<p>The QToolTip::setGloballyEnabled() function no longer exists. Tooltips can be disabled by installing an event filter</tt> on qApp (the unique <a href="gui/QApplication.html"><tt>QApplication</tt></a> object) to block events of type QEvent::ToolTip.</p>
<a name="quridrag"></a>
<h2>QUriDrag</h2>
<p>The <tt>QUriDrag</tt> class has been renamed Q3UriDrag and moved to the Qt3Support library. In Qt 4, use <a href="gui/QMimeData.html"><tt>QMimeData</tt></a> instead and call QMimeData::setUrl() to set the URL.</p>
<p>See <a href="porting4-dnd.html">Porting to Qt 4 (Drag and Drop)</tt></a> for a comparison between the drag and drop APIs in Qt 3 and Qt 4.</p>
<a name="qurl"></a>
<h2>QUrl</h2>
<p>The <a href="core/QUrl.html"><tt>QUrl</tt></a> class has been rewritten from scratch in Qt 4 to be more standard-compliant. The old <a href="core/QUrl.html"><tt>QUrl</tt></a> class has been renamed Q3Url and moved to the Qt3Support library.</p>
<p>The new <a href="core/QUrl.html"><tt>QUrl</tt></a> class provides an extensive list of compatibility functions to ease porting from Q3Url to <a href="core/QUrl.html"><tt>QUrl</tt></a>. A few functions require you to change your code:</p>
<ul>
<li>Q3Url::Q3Url(const Q3Url &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool) can be simulated by combining the URLs manually (using QString::operator+(), for example).</li>
<li>Q3Url::setEncodedPathAndQuery(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) is replaced by QUrl::setPath() and QUrl::setEncodedQuery().</li>
<li>Q3Url::encodedPathAndQuery() is replaced by QUrl::path() and QUrl::encodedQuery().</li>
<li>Q3Url::isLocalFile() can be simulated by checking that QUrl::protocol() is &quot;file&quot;.</li>
<li>Q3Url::toString(bool, bool) is replaced by QUrl::toString(int), where the <tt>int</tt> parameter specifies a combination of formatting options</tt>.</li>
</ul>
<a name="qurloperator"></a>
<h2>QUrlOperator</h2>
<p>The <tt>QUrlOperator</tt> class is no longer part of the public Qt API. It has been renamed Q3UrlOperator and moved to Qt3Support.</p>
<p>In Qt 4 applications, you can use classes like <a href="network/QFtp.html"><tt>QFtp</tt></a> and <a href="network/QHttp.html"><tt>QHttp</tt></a> directly to perform file-related actions on a remote host.</p>
<a name="qvaluelist-section"></a><a name="qvaluelist-t"></a>
<h2>QValueList&lt;T&gt;</h2>
<p>The QValueList&lt;T&gt; class has been replaced by QList&lt;T&gt; and QLinkedList&lt;T&gt; in Qt 4. As a help when porting older Qt applications, the Qt3Support library contains a QValueList&lt;T&gt; class implemented in terms of the new QLinkedList&lt;T&gt;. Similarly, it contains QValueListIterator&lt;T&gt; and QValueListConstIterator&lt;T&gt; classes implemented in terms of QLinkedList&lt;T&gt;::iterator and QLinkedList&lt;T&gt;::const_iterator.</p>
<p>When porting to Qt 4, you have the choice of using QList&lt;T&gt; or QLinkedList&lt;T&gt; as alternatives to QValueList&lt;T&gt;. QList&lt;T&gt; has an index-based API and provides very fast random access (QList::operator[]), whereas QLinkedList&lt;T&gt; has an iterator-based API.</p>
<p>Here's a list of problem functions:</p>
<ul>
<li>QValueList(const std::list&lt;T&gt; &amp;) doesn't exist in QList or QLinkedList. You can simulate it by calling append() in a loop.</li>
<li>QValueList::insert(iterator, size_type, const T&amp; x) doesn't exist in QList or QLinkedList. Call insert() repeatedly instead.</li>
<li>QValueList::fromLast() doesn't exist in QList or QLinkedList. Use QValueList::end() instead.<p>For example, if you have code like</p>
<pre><font color="#404040">        for (QValueList&lt;T&gt;::iterator i = list.fromLast(); i != list.begin(); --i)
            do_something(*i);</font></pre>
<p>you can rewrite it as</p>
<pre>        QLinkedList&lt;T&gt;::iterator i = list.end();
        while (i != list.begin()) {
            --i; <span class="comment">// decrement i before using it</span>
            do_something(*i);
        }</pre>
</li>
<li>QValueList::append() and QValueList::prepend() return an iterator to the inserted item. QList's and QLinkedList's corresponding functions don't, but it's not a problem because QValueList::prepend() always returns begin() and append() always returns QValueList::end() - 1.</li>
<li>QValueList::at(<i>i</i>) return an iterator to the item at index <i>i</i>. This corresponds to QList::begin() + <i>i</i>.</li>
<li>QValueList::contains(const T &amp;) corresponds to QList::count(const T &amp;) and QLinkedList::count(const T &amp;).</li>
</ul>
<a name="qvaluevector-t"></a>
<h2>QValueVector&lt;T&gt;</h2>
<p>The QValueVector&lt;T&gt; class has been replaced by QVector&lt;T&gt; in Qt 4. As a help when porting older Qt applications, the Qt3Support library contains a Q3ValueVector&lt;T&gt; class implemented in terms of the new QVector&lt;T&gt;.</p>
<p>When porting from QValueVector&lt;T&gt; to QVector&lt;T&gt;, you might run into the following incompatibilities:</p>
<ul>
<li>QValueVector(const std::vector&lt;T&gt; &amp;) doesn't exist in QVector. You can simulate it by calling QVector::append()} in a loop.</li>
<li>QValueVector::resize(int, const T &amp;) doesn't exist in QVector. If you want the new items to be initialized with a particular value, use QVector::insert() instead.</li>
<li>QValueVector::at() on a non-const vector returns a non-const reference. This corresponds to QVector::operator[]().</li>
<li>Both QValueVector::at() functions have an <i>ok</i> parameter of type <tt>bool *</tt> that is set to true if the index is within bounds. This functionality doesn't exist in QVector; instead, check the index against QVector::size() yourself.</li>
</ul>
<p>See Generic Containers</tt> for an overview of the Qt 4 container classes.</p>
<a name="qvariant"></a>
<h2>QVariant</h2>
<p>Some changes to the rest of the Qt library have implications on <a href="porting4.html#qvariant"><tt>QVariant</tt></a>:</p>
<ol type="1">
<li>The <tt>QVariant::ColorGroup</tt> enum value is defined only if <tt>QT3_SUPPORT</tt> is defined.</li>
<li>The <tt>QVariant::IconSet</tt> enum value has been renamed QVariant::Icon.</li>
<li>The <tt>QVariant::CString</tt> enum value is now a synonym for QVariant::ByteArray.</li>
</ol>
<p>Also, the <a href="porting4.html#qvariant"><tt>QVariant</tt></a>(bool, int) constructor has been replaced by <a href="porting4.html#qvariant"><tt>QVariant</tt></a>(bool). Old code like <a href="porting4.html#qvariant"><tt>QVariant</tt></a>(true, 0) should be replaced with <a href="porting4.html#qvariant"><tt>QVariant</tt></a>(true); otherwise, the <a href="porting4.html#qvariant"><tt>QVariant</tt></a>(int, void *) overload might accidentally be triggered.</p>
<a name="qvbox"></a>
<h2>QVBox</h2>
<p>The <tt>QVBox</tt> class is now only available as Q3VBox in Qt 4. You can achieve the same result as <tt>QVBox</tt> by creating a <a href="gui/QWidget.html"><tt>QWidget</tt></a> with a vertical layout:</p>
<p>For example, if you have code like</p>
<pre><font color="#404040">    QVBox *vbox = new QVBox;
    QPushButton *child1 = new QPushButton(vbox);
    QPushButton *child2 = new QPushButton(vbox);</font></pre>
<p>you can rewrite it as</p>
<pre>    QWidget *vbox = new QWidget;
    QPushButton *child1 = new QPushButton;
    QPushButton *child2 = new QPushButton;

    QVBoxLayout *layout = new QVBoxLayout;
    layout-&gt;addWidget(child1);
    layout-&gt;addWidget(child2);
    vbox-&gt;setLayout(layout);</pre>
<p>Note that child widgets are not automatically placed into the widget's layout; you will need to manually add each widget to the <a href="gui/QVBoxLayout.html"><tt>QVBoxLayout</tt></a>.</p>
<a name="qvgroupbox"></a>
<h2>QVGroupBox</h2>
<p>The <tt>QVGroupBox</tt> class has been renamed Q3VGroupBox and moved to the Qt3Support library. Qt 4 does not provide a specific replacement class for <tt>QVGroupBox</tt> since <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> is designed to be a generic container widget. As a result, you need to supply your own layout for any child widgets.</p>
<p>See <a href="porting4.html#qgroupbox"><tt>#QGroupBox</tt></a> for more information about porting code that uses group boxes.</p>
<a name="qwhatsthis"></a>
<h2>QWhatsThis</h2>
<p>The <a href="gui/QWhatsThis.html"><tt>QWhatsThis</tt></a> class has been redesigned in Qt 4. The old <tt>QWhatsThis</tt> class is available as Q3WhatsThis in Qt3Support.</p>
<a name="qwidget"></a>
<h2>QWidget</h2>
<p>Widget background painting has been greatly improved, supporting flicker-free updates and making it possible to have semi-transparent widgets. This renders the following background handling functions obsolete:</p>
<ul>
<li>QWidget::repaint(bool noErase) - the <tt>noErase</tt> boolean parameter is gone</li>
<li>QWidget::setBackgroundMode(BackgroundMode m)</li>
<li>QWidget::backgroundBrush() const</li>
<li>QWidget::setBackgroundPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;pm)</li>
<li>QWidget::backgroundPixmap() const</li>
<li>QWidget::setBackgroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;c)</li>
<li>QWidget::backgroundColor() const</li>
<li>QWidget::foregroundColor() const</li>
<li>QWidget::eraseColor() const</li>
<li>QWidget::setEraseColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;c)</li>
<li>QWidget::erasePixmap() const</li>
<li>QWidget::setErasePixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;p)</li>
<li>QWidget::paletteForegroundColor()</li>
<li>QWidget::setPaletteForegroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;c)</li>
<li>QWidget::paletteBackgroundColor()</li>
<li>QWidget::setPaletteBackgroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;c)</li>
<li>QWidget::paletteBackgroundPixmap() const</li>
<li>QWidget::setPaletteBackgroundPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;p)</li>
<li>QWidget::erase()</li>
<li>QWidget::erase(const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;r)</li>
<li>QWidget::setBackgroundOrigin( BackgroundOrigin )</li>
<li>QWidget::BackgroundOrigin backgroundOrigin() const</li>
<li>QWidget::backgroundOffset()</li>
</ul>
<p>A widget now receives change events in its QWidget::changeEvent() handler. This makes the following virtual change handlers obsolete:</p>
<ul>
<li>QWidget::styleChange - use QEvent::StyleChange</li>
<li>QWidget::enabledChange - use QEvent::EnabledChange</li>
<li>QWidget::paletteChange - use QEvent::PaletteChange</li>
<li>QWidget::fontChange - use QEvent::FontChange</li>
<li>QWidget::windowActivationChange - use QEvent::ActivationChange</li>
<li>QWidget::languageChange - use QEvent::LanguageChange</li>
</ul>
<p>The following functions were slots, but are no more:</p>
<ul>
<li>QWidget::clearFocus()</li>
<li>QWidget::setMouseTracking()</li>
<li>QWidget::stackUnder(<a href="gui/QWidget.html"><tt>QWidget</tt></a>*)</li>
<li>QWidget::move(int x, int y)</li>
<li>QWidget::move(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;)</li>
<li>QWidget::resize(int w, int h)</li>
<li>QWidget::resize(const <a href="core/QSize.html"><tt>QSize</tt></a> &amp;)</li>
<li>QWidget::setGeometry(int x, int y, int w, int h)</li>
<li>QWidget::setGeometry(const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;)</li>
<li>QWidget::adjustSize()</li>
<li>QWidget::update(int x, int y, int w, int h)</li>
<li>QWidget::update(const <a href="core/QRect.html"><tt>QRect</tt></a>&amp;)</li>
<li>QWidget::repaint(bool erase)</li>
<li>QWidget::repaint(int x, int y, int w, int h, bool erase)</li>
<li>QWidget::repaint(const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, bool erase)</li>
<li>QWidget::repaint(const <a href="gui/QRegion.html"><tt>QRegion</tt></a> &amp;, bool erase)</li>
<li>QWidget::setCaption(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</li>
<li>QWidget::setIcon(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</li>
<li>QWidget::setIconText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</li>
</ul>
<p>The following functions were incorrectly marked as virtual:</p>
<ul>
<li>QWidget::close(bool alsoDelete)</li>
<li>QWidget::create(WId, bool, bool)</li>
<li>QWidget::destroy(bool)</li>
<li>QWidget::move(int x, int y)</li>
<li>QWidget::reparent(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *parent, WFlags, const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;, bool)</li>
<li>QWidget::resize(int w, int h)</li>
<li>QWidget::setAcceptDrops(bool on)</li>
<li>QWidget::setActiveWindow()</li>
<li>QWidget::setAutoMask(bool)</li>
<li>QWidget::setBackgroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</li>
<li>QWidget::setBackgroundMode(BackgroundMode)</li>
<li>QWidget::setBackgroundOrigin(BackgroundOrigin)</li>
<li>QWidget::setBackgroundPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</li>
<li>QWidget::setCaption(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</li>
<li>QWidget::setCursor(const <a href="gui/QCursor.html"><tt>QCursor</tt></a> &amp;)</li>
<li>QWidget::setEnabled(bool)</li>
<li>QWidget::setEraseColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</li>
<li>QWidget::setErasePixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</li>
<li>QWidget::setFocus()</li>
<li>QWidget::setFocusPolicy(FocusPolicy)</li>
<li>QWidget::setFocusProxy(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</li>
<li>QWidget::setFont(const <a href="gui/QFont.html"><tt>QFont</tt></a> &amp;)</li>
<li>QWidget::setGeometry(const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;)</li>
<li>QWidget::setGeometry(int x, int y, int w, int h)</li>
<li>QWidget::setIcon(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</li>
<li>QWidget::setIconText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</li>
<li>QWidget::setKeyCompression(bool)</li>
<li>QWidget::setMask(const <a href="gui/QBitmap.html"><tt>QBitmap</tt></a> &amp;)</li>
<li>QWidget::setMask(const <a href="gui/QRegion.html"><tt>QRegion</tt></a> &amp;)</li>
<li>QWidget::setMaximumSize(int maxw, int maxh)</li>
<li>QWidget::setMicroFocusHint(int x, int y, int w, int h, bool, <a href="gui/QFont.html"><tt>QFont</tt></a> *f)</li>
<li>QWidget::setMinimumSize(int minw, int minh)</li>
<li>QWidget::setMouseTracking(bool enable)</li>
<li>QWidget::setPalette(const <a href="gui/QPalette.html"><tt>QPalette</tt></a> &amp;)</li>
<li>QWidget::setPaletteBackgroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</li>
<li>QWidget::setPaletteBackgroundPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</li>
<li>QWidget::setSizeIncrement(int w, int h)</li>
<li>QWidget::setSizePolicy(<a href="gui/QSizePolicy.html"><tt>QSizePolicy</tt></a>)</li>
<li>QWidget::setUpdatesEnabled(bool enable)</li>
<li>QWidget::setWState(uint)</li>
<li>QWidget::showFullScreen()</li>
<li>QWidget::showMaximized()</li>
<li>QWidget::showMinimized()</li>
<li>QWidget::showNormal()</li>
<li>QWidget::unsetCursor()</li>
</ul>
<p>The internal clearWState() function was removed. Use QWidget::setWindowState() instead.</p>
<p>setWFlags() was renamed QWidget::setWindowFlags().</p>
<p>See <a href="porting4.html#properties">Properties</tt></a> for a list of <a href="gui/QWidget.html"><tt>QWidget</tt></a> properties in Qt 3 that have changed in Qt 4.</p>
<a name="qwidgetfactory"></a>
<h2>QWidgetFactory</h2>
<p>The <tt>QWidgetFactory</tt> class has been replaced by QFormBuilder in Qt 4.</p>
<a name="qwidgetintdict"></a>
<h2>QWidgetIntDict</h2>
<p>The <a href="porting4.html#qwidgetintdict"><tt>QWidgetIntDict</tt></a> class was a synonym for QIntDict&lt;<a href="gui/QWidget.html"><tt>QWidget</tt></a>&gt;. It is no longer available in Qt 4. If you link against Qt3Support, you can use QIntDict&lt;<a href="gui/QWidget.html"><tt>QWidget</tt></a>&gt; instead; otherwise, see the <a href="porting4.html#qdict-section">section on </tt>QDict&lt;T&gt;</tt></a>.</p>
<a name="qwidgetlist-section"></a><a name="qwidgetlist"></a>
<h2>QWidgetList</h2>
<p>In Qt 3, the <a href="porting4.html#qwidgetlist"><tt>QWidgetList</tt></a> class was a typedef for QPtrList&lt;<a href="gui/QWidget.html"><tt>QWidget</tt></a>&gt;. In Qt 4, it is a typedef for QList&lt;<a href="gui/QWidget.html"><tt>QWidget</tt></a> *&gt;. See the <a href="porting4.html#qptrlist-section">section on </tt>QPtrList&lt;T&gt;</tt></a>.</p>
<a name="qwidgetplugin"></a>
<h2>QWidgetPlugin</h2>
<p>The <a href="porting4.html#qwidgetplugin"><tt>QWidgetPlugin</tt></a> class is no longer available in Qt 4. To create custom widget plugins, subclass QDesignerCustomWidgetInterface to provide information about the custom widget, and build a plugin in the way described in the Custom Widget Plugin</tt> example.</p>
<a name="qwidgetstack"></a>
<h2>QWidgetStack</h2>
<p>The <a href="porting4.html#qwidgetstack"><tt>QWidgetStack</tt></a> class is no longer part of the Qt public API. It has been renamed Q3WidgetStack and moved to Qt3Support. In Qt 4 applications, you can use <a href="gui/QStackedWidget.html"><tt>QStackedWidget</tt></a> instead to obtain the same results.</p>
<a name="qwizard"></a>
<h2>QWizard</h2>
<p>The <tt>QWizard</tt> class is no longer part of the Qt public API. It has been renamed Q3Wizard and moved to Qt3Support. In Qt 4 applications, you can obtain the same result by combining a <a href="gui/QStackedWidget.html"><tt>QStackedWidget</tt></a> with a <a href="gui/QDialog.html"><tt>QDialog</tt></a> and provide <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>s yourself.</p>
<p>There is also a <tt>QtWizard</tt> solution available from Trolltech. The new class was designed to work both for linear wizards and for wizards with more complex structures which let users reach different pages depending on the options they select. Based on the feedback we get, <tt>QtWizard</tt> may be considered for inclusion in a future Qt release.</p>
<a name="qworkspace"></a>
<h2>QWorkspace</h2>
<p>The <tt>QWorkspace</tt> in Qt 4 class requires explicit adding of MDI windows with QWorkspace::addWindow().</p>
<a name="virtual-functions"></a><a name="virtual-functions"></a>
<h2>Virtual Functions</h2>
<p>Virtual functions that changed their signature in Qt 4:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 function signature</th><th>Qt 4 function signature</th></tr></thead>
<tr valign="top" class="odd"><td>int QAccessibleInterface::navigate(NavDirection, int) const</td><td>int QAccessibleInterface::navigate(RelationFlag, int, <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> **) const</td></tr>
<tr valign="top" class="even"><td>bool QApplication::winEventFilter(MSG *)</td><td>bool QApplication::winEventFilter(MSG *, long *)</td></tr>
<tr valign="top" class="odd"><td>Function: Offset QIODevice::at() const</td><td>Function: Q_LONGLONG QIODevice::pos() const</td></tr>
<tr valign="top" class="even"><td>bool QIODevice::at(Offset)</td><td>bool QIODevice::seek(Q_LONGLONG)</td></tr>
<tr valign="top" class="odd"><td>bool QIODevice::open(int)</td><td>bool QIODevice::open(OpenMode)</td></tr>
<tr valign="top" class="even"><td>Q_LONG QIODevice::readBlock(char *, Q_ULONG)</td><td>Q_LONGLONG QIODevice::readData(char *, Q_LONGLONG)</td></tr>
<tr valign="top" class="odd"><td>Q_LONG QIODevice::writeBlock(const char *, Q_ULONG)</td><td>Q_LONGLONG QIODevice::writeData(const char *, Q_LONGLONG)</td></tr>
<tr valign="top" class="even"><td>const char * QImageFormatType::formatName() const</td><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QImageFormatType::formatName() const</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> * QLineEdit::createPopupMenu()</td><td><a href="gui/QMenu.html"><tt>QMenu</tt></a> * QLineEdit::createPopupMenu()</td></tr>
<tr valign="top" class="even"><td>bool QMacMime::canConvert(const char *, int)</td><td>bool QMacMime::canConvert(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td></tr>
<tr valign="top" class="odd"><td>QValueList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; QMacMime::convertFromMime(<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, const char *, int)</td><td>QList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; QMacMime::convertFromMime(<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td></tr>
<tr valign="top" class="even"><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QMacMime::convertToMime(QValueList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; data, const char *, int)</td><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QMacMime::convertToMime(QList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; data, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td></tr>
<tr valign="top" class="odd"><td>const char * QMacMime::convertorName()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QMacMime::convertorName()</td></tr>
<tr valign="top" class="even"><td>int QMacMime::flavorFor(const char *)</td><td>int QMacMime::flavorFor(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="odd"><td>const char * QMacMime::mimeFor(int)</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QMacMime::mimeFor(int)</td></tr>
<tr valign="top" class="even"><td>QMetaObject * QObject::metaObject() const</td><td>const QMetaObject * QObject::metaObject() const</td></tr>
<tr valign="top" class="odd"><td>bool QScreen::onCard(unsigned char *) const</td><td>bool QScreen::onCard(const unsigned char *) const</td></tr>
<tr valign="top" class="even"><td>bool QScreen::onCard(unsigned char *, ulong &amp;) const</td><td>bool QScreen::onCard(const unsigned char *, ulong &amp;) const</td></tr>
<tr valign="top" class="odd"><td>int QSpinBox::mapTextToValue(bool *)</td><td>int QSpinBox::mapTextToValue(<a href="porting4.html#qstring"><tt>QString</tt></a> *, QValidator::State *) const</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSpinBox::mapValueToText(int)</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSpinBox::mapValueToText(int) const</td></tr>
<tr valign="top" class="odd"><td>bool QSqlDriver::open(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td><td>bool QSqlDriver::open(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstringlist"><tt>QStringList</tt></a> QSqlDriver::tables(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td><a href="porting4.html#qstringlist"><tt>QStringList</tt></a> QSqlDriver::tables(QSql::TableType) const</td></tr>
<tr valign="top" class="odd"><td>bool QSqlQuery::prev()</td><td>bool QSqlQuery::previous()</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QSqlResult::data(int)</td><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QSqlResult::data(int)</td></tr>
<tr valign="top" class="odd"><td>bool QSqlResult::fetchPrev()</td><td>bool QSqlResult::fetchPrevious()</td></tr>
<tr valign="top" class="even"><td>void QStyle::drawComplexControl(ComplexControl, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, const <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> &amp;, SFlags, SCFlags, SCFlags, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td>void QStyle::drawComplexControl(ComplexControl, const <a href="gui/QStyleOptionComplex.html"><tt>QStyleOptionComplex</tt></a> *, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="odd"><td>void QStyle::drawComplexControlMask(ComplexControl, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td>void QStyle::drawComplexControlMask(ComplexControl, const <a href="gui/QStyleOptionComplex.html"><tt>QStyleOptionComplex</tt></a> *, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td>void QStyle::drawControl(ControlElement, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, const <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> &amp;, SFlags, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td>void QStyle::drawControl(ControlElement, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="odd"><td>void QStyle::drawControlMask(ControlElement, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td>void QStyle::drawControlMask(ControlElement, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td>void QStyle::drawItem(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, int, const <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> &amp;, bool, const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> *, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, const <a href="gui/QColor.html"><tt>QColor</tt></a> *) const</td><td>void QStyle::drawItem(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, int, const <a href="gui/QPalette.html"><tt>QPalette</tt></a> &amp;, bool, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, const <a href="gui/QColor.html"><tt>QColor</tt></a> *) const</td></tr>
<tr valign="top" class="odd"><td>void QStyle::drawPrimitive(PrimitiveElement, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, const <a href="porting4.html#qcolorgroup"><tt>QColorGroup</tt></a> &amp;, SFlags, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td>void QStyle::drawPrimitive(PrimitiveElement, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, <a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td><a href="core/QRect.html"><tt>QRect</tt></a> QStyle::itemRect(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, int, bool, const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> *, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int) const</td><td><a href="core/QRect.html"><tt>QRect</tt></a> QStyle::itemRect(const <a href="gui/QFontMetrics.html"><tt>QFontMetrics</tt></a> &amp;, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, int, bool, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int) const</td></tr>
<tr valign="top" class="odd"><td>int QStyle::pixelMetric(PixelMetric, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td><td>int QStyle::pixelMetric(PixelMetric, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td><a href="stylesheet-reference.html#subcontrols"><tt>SubControl</tt></a> QStyle::querySubControl(ComplexControl, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td><a href="stylesheet-reference.html#subcontrols"><tt>SubControl</tt></a> QStyle::hitTestComplexControl(ComplexControl, const <a href="gui/QStyleOptionComplex.html"><tt>QStyleOptionComplex</tt></a> *, const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="odd"><td><a href="core/QRect.html"><tt>QRect</tt></a> QStyle::querySubControlMetrics(ComplexControl, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, <a href="stylesheet-reference.html#subcontrols"><tt>SubControl</tt></a>, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td><a href="core/QRect.html"><tt>QRect</tt></a> QStyle::subControlRect(ComplexControl, const <a href="gui/QStyleOptionComplex.html"><tt>QStyleOptionComplex</tt></a> *, <a href="stylesheet-reference.html#subcontrols"><tt>SubControl</tt></a>, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td><a href="core/QSize.html"><tt>QSize</tt></a> QStyle::sizeFromContents(ContentsType, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="core/QSize.html"><tt>QSize</tt></a> &amp;, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td><a href="core/QSize.html"><tt>QSize</tt></a> QStyle::sizeFromContents(ContentsType, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, const <a href="core/QSize.html"><tt>QSize</tt></a> &amp;, const <a href="gui/QFontMetrics.html"><tt>QFontMetrics</tt></a> &amp;, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="odd"><td>int QStyle::styleHint(StyleHint, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;, <a href="gui/QStyleHintReturn.html"><tt>QStyleHintReturn</tt></a> *) const</td><td>int QStyle::styleHint(StyleHint, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, <a href="gui/QStyleHintReturn.html"><tt>QStyleHintReturn</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td><a href="gui/QPixmap.html"><tt>QPixmap</tt></a> QStyle::stylePixmap(StylePixmap, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> &amp;) const</td><td><a href="gui/QPixmap.html"><tt>QPixmap</tt></a> QStyle::standardPixmap(StandardPixmap, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="odd"><td><a href="core/QRect.html"><tt>QRect</tt></a> QStyle::subRect(SubRect, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td><td><a href="core/QRect.html"><tt>QRect</tt></a> QStyle::subRect(SubRect, const <a href="gui/QStyleOption.html"><tt>QStyleOption</tt></a> *, const <a href="gui/QFontMetrics.html"><tt>QFontMetrics</tt></a> &amp;, const <a href="gui/QWidget.html"><tt>QWidget</tt></a> *) const</td></tr>
<tr valign="top" class="even"><td>void QStyle::unPolish(<a href="gui/QApplication.html"><tt>QApplication</tt></a> *)</td><td>void QStyle::unpolish(<a href="gui/QApplication.html"><tt>QApplication</tt></a> *)</td></tr>
<tr valign="top" class="odd"><td>void QStyle::unPolish(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>void QStyle::unpolish(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qcstring"><tt>QCString</tt></a> QTextCodec::fromUnicode(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int &amp;) const</td><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QTextCodec::fromUnicode(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int &amp;) const</td></tr>
<tr valign="top" class="odd"><td>QValueList&lt;int&gt; QTextCodecPlugin::mibEnums() const</td><td>QList&lt;int&gt; QTextCodecPlugin::mibEnums() const</td></tr>
<tr valign="top" class="even"><td>void QTextDrag::setSubtype(const <a href="porting4.html#qcstring"><tt>QCString</tt></a> &amp;)</td><td>void QTextDrag::setSubtype(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qcstring"><tt>QCString</tt></a> QTextEncoder::fromUnicode(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int &amp;)</td><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QTextEncoder::fromUnicode(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int &amp;)</td></tr>
<tr valign="top" class="even"><td>void QUriDrag::setUris(QStrList)</td><td>void QUriDrag::setUris(const QList&lt;<a href="core/QByteArray.html"><tt>QByteArray</tt></a>&gt; &amp; list)</td></tr>
<tr valign="top" class="odd"><td>void QUrlInfo::setSize(uint)</td><td>void QUrlInfo::setSize(Q_LONGLONG)</td></tr>
<tr valign="top" class="even"><td>bool QWindowsMime::canConvert(const char *, int)</td><td>bool QWindowsMime::canConvert(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td></tr>
<tr valign="top" class="odd"><td>int QWindowsMime::cfFor(const char *)</td><td>int QWindowsMime::cfFor(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td></tr>
<tr valign="top" class="even"><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QWindowsMime::convertFromMime(<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, const char *, int)</td><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QWindowsMime::convertFromMime(const <a href="core/QByteArray.html"><tt>QByteArray</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td></tr>
<tr valign="top" class="odd"><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QWindowsMime::convertToMime(<a href="core/QByteArray.html"><tt>QByteArray</tt></a>, const char *, int)</td><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QWindowsMime::convertToMime(const <a href="core/QByteArray.html"><tt>QByteArray</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td></tr>
<tr valign="top" class="even"><td>const char * QWindowsMime::convertorName()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QWindowsMime::convertorName()</td></tr>
<tr valign="top" class="odd"><td>void QWSMouseHandler::calibrate(QWSPointerCalibrationData *)</td><td>void QWSMouseHandler::calibrate(const QWSPointerCalibrationData *)</td></tr>
<tr valign="top" class="even"><td>bool QWidget::macEvent(MSG *)</td><td>bool QWidget::macEvent(EventHandlerCallRef, EventRef)</td></tr>
<tr valign="top" class="odd"><td>bool QWidget::winEvent(MSG *)</td><td>bool QWidget::winEvent(MSG *, long *)</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlContentHandler::errorString()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlContentHandler::errorString() const</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlDTDHandler::errorString()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlDTDHandler::errorString() const</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlDeclHandler::errorString()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlDeclHandler::errorString() const</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlEntityResolver::errorString()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlEntityResolver::errorString() const</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlErrorHandler::errorString()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlErrorHandler::errorString() const</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlInputSource::data()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlInputSource::data() const</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlLexicalHandler::errorString()</td><td><a href="porting4.html#qstring"><tt>QString</tt></a> QXmlLexicalHandler::errorString() const</td></tr>
<tr valign="top" class="odd"><td>int QXmlLocator::columnNumber()</td><td>int QXmlLocator::columnNumber() const</td></tr>
<tr valign="top" class="even"><td>int QXmlLocator::lineNumber()</td><td>int QXmlLocator::lineNumber() const</td></tr>
</table></p>
<p>Virtual functions that are not virtual in Qt 4:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Qt 3 function</th><th>Comment</th></tr></thead>
<tr valign="top" class="odd"><td>void QAccessibleInterface::clearSelection()</td><td>Port to the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>int QAccessibleInterface::controlAt(int, int) const</td><td>Port to the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QAccessibleInterface::doDefaultAction(int)</td><td>Port to the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>QMemArray&lt;int&gt; QAccessibleInterface::selection() const</td><td>Port to the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QAccessibleInterface::setFocus(int)</td><td>Port to the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>bool QAccessibleInterface::setSelected(int, bool, bool)</td><td>Port to the new <a href="gui/QAccessibleInterface.html"><tt>QAccessibleInterface</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QAction::addTo(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QAction::addedTo(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, <a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QAction::addedTo(int, <a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> *)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>bool QAction::removeFrom(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QAction::setAccel(const <a href="gui/QKeySequence.html"><tt>QKeySequence</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QAction::setEnabled(bool)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QAction::setIconSet(const <a href="gui/QIcon.html"><tt>QIcon</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QAction::setMenuText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QAction::setOn(bool)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QAction::setStatusTip(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QAction::setText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QAction::setToggleAction(bool)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QAction::setToolTip(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QAction::setWhatsThis(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3Action instead or port to the new <a href="gui/QAction.html"><tt>QAction</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QButton::drawButton(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *)</td><td>Use Q3Button instead or reimplement QButton::paintEvent().</td></tr>
<tr valign="top" class="even"><td>void QButton::drawButtonLabel(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *)</td><td>Use Q3Button instead or reimplement QButton::paintEvent().</td></tr>
<tr valign="top" class="odd"><td>void QButton::setAccel(const <a href="gui/QKeySequence.html"><tt>QKeySequence</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QButton::setAutoRepeat(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QButton::setDown(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QButton::setPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QButton::setState(ToggleState)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QButton::setText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use the QAbstractButton::setText() setter function.</td></tr>
<tr valign="top" class="odd"><td>void QButton::setToggleType(ToggleType)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QButtonGroup::moveFocus(int)</td><td>Use the QWidget::setFocus() setter function.</td></tr>
<tr valign="top" class="odd"><td>void QButtonGroup::setButton(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QButtonGroup::setExclusive(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QButtonGroup::setRadioButtonExclusive(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QComboBox::setAutoCompletion(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QComboBox::setAutoResize(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QComboBox::setCurrentItem(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QComboBox::setCurrentText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QComboBox::setFont(const <a href="gui/QFont.html"><tt>QFont</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QComboBox::setInsertionPolicy(Policy)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QComboBox::setLineEdit(<a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QComboBox::setListBox(<a href="porting4.html#qlistbox"><tt>QListBox</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QComboBox::setMaxCount(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QComboBox::setPalette(const <a href="gui/QPalette.html"><tt>QPalette</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QComboBox::setSizeLimit(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QComboBox::setValidator(const <a href="gui/QValidator.html"><tt>QValidator</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QDateEdit::fix()</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDateEdit::sectionFormattedText(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDateEdit::setAutoAdvance(bool)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDateEdit::setDate(const <a href="core/QDate.html"><tt>QDate</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDateEdit::setDay(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDateEdit::setMaxValue(const <a href="core/QDate.html"><tt>QDate</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDateEdit::setMinValue(const <a href="core/QDate.html"><tt>QDate</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDateEdit::setMonth(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDateEdit::setOrder(Order)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDateEdit::setRange(const <a href="core/QDate.html"><tt>QDate</tt></a> &amp;, const <a href="core/QDate.html"><tt>QDate</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDateEdit::setSeparator(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDateEdit::setYear(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDateTimeEdit::setAutoAdvance(bool)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDateTimeEdit::setDateTime(const <a href="core/QDateTime.html"><tt>QDateTime</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDial::rangeChange()</td><td>Reimplement QDial::sliderChange() instead.</td></tr>
<tr valign="top" class="odd"><td>void QDial::repaintScreen(const <a href="core/QRect.html"><tt>QRect</tt></a> *)</td><td>Reimplement QDial::paintEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QDial::setNotchTarget(double)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QDial::setNotchesVisible(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QDial::setTracking(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QDial::setValue(int)</td><td>Use QDial::sliderChange() instead.</td></tr>
<tr valign="top" class="even"><td>void QDial::setWrapping(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QDial::valueChange()</td><td>Use QDial::sliderChange() instead.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDir::absFilePath(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDir::absPath() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDir::canonicalPath() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::cd(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDir::cdUp()</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDir::convertToAbs()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDir::dirName() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>QStrList QDir::encodedEntryList(int, int) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>QStrList QDir::encodedEntryList(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, int) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>const QFileInfoList * QDir::entryInfoList(int, int) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>const QFileInfoList * QDir::entryInfoList(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, int) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstringlist"><tt>QStringList</tt></a> QDir::entryList(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, int) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstringlist"><tt>QStringList</tt></a> QDir::entryList(int, int) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::exists() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDir::exists(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDir::filePath(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDir::isReadable() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::isRelative() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDir::isRoot() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::mkdir(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDir::operator!=() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::operator==() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDir::path() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::remove(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDir::rename(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDir::rmdir(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDir::setFilter(int)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDir::setMatchAllDirs(bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDir::setNameFilter(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDir::setPath(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDir::setSorting(int)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDns::setLabel(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3Dns instead.</td></tr>
<tr valign="top" class="even"><td>void QDns::setLabel(const <a href="network/QHostAddress.html"><tt>QHostAddress</tt></a> &amp;)</td><td>Use Q3Dns instead.</td></tr>
<tr valign="top" class="odd"><td>void QDns::setRecordType(RecordType)</td><td>Use Q3Dns instead.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::dock()</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::setCloseMode(int)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::setFixedExtentHeight(int)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::setFixedExtentWidth(int)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::setHorizontallyStretchable(bool)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::setMovingEnabled(bool)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::setNewLine(bool)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::setOffset(int)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::setOpaqueMoving(bool)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::setOrientation(Orientation)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::setResizeEnabled(bool)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::setVerticallyStretchable(bool)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QDockWindow::setWidget(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QDockWindow::undock()</td><td>Use Q3DockWindow instead or port to the new <a href="gui/QDockWidget.html"><tt>QDockWidget</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomAttr::name() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomElement.html"><tt>QDomElement</tt></a> QDomAttr::ownerElement() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDomAttr::setValue(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomAttr::specified() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomAttr::value() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDomCharacterData::appendData(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomCharacterData::data() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDomCharacterData::deleteData(unsigned, unsigned)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDomCharacterData::insertData(unsigned, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>uint QDomCharacterData::length() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDomCharacterData::replaceData(unsigned, unsigned, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDomCharacterData::setData(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomCharacterData::substringData(unsigned, unsigned)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNamedNodeMap.html"><tt>QDomNamedNodeMap</tt></a> QDomDocumentType::entities() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomDocumentType::internalSubset() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomDocumentType::name() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNamedNodeMap.html"><tt>QDomNamedNodeMap</tt></a> QDomDocumentType::notations() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomDocumentType::publicId() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomDocumentType::systemId() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNamedNodeMap.html"><tt>QDomNamedNodeMap</tt></a> QDomElement::attributes() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNodeList.html"><tt>QDomNodeList</tt></a> QDomElement::elementsByTagName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNodeList.html"><tt>QDomNodeList</tt></a> QDomElement::elementsByTagNameNS(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomEntity::notationName() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomEntity::publicId() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomEntity::systemId() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomDocument.html"><tt>QDomDocument</tt></a> QDomImplementation::createDocument(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="xml/QDomDocumentType.html"><tt>QDomDocumentType</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomDocumentType.html"><tt>QDomDocumentType</tt></a> QDomImplementation::createDocumentType(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomImplementation::hasFeature(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>QDomImplementation::~QDomImplementation()</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::appendChild(const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNamedNodeMap.html"><tt>QDomNamedNodeMap</tt></a> QDomNode::attributes() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNodeList.html"><tt>QDomNodeList</tt></a> QDomNode::childNodes() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::cloneNode(bool) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::firstChild() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::hasAttributes() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::hasChildNodes() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::insertAfter(const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;, const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::insertBefore(const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;, const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isAttr() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isCDATASection() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isCharacterData() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isComment() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isDocument() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isDocumentFragment() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isDocumentType() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isElement() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isEntity() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isEntityReference() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isNotation() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isProcessingInstruction() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QDomNode::isSupported(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QDomNode::isText() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::lastChild() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomNode::localName() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomNode::namespaceURI() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::nextSibling() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomNode::nodeName() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>QDomNode::NodeType QDomNode::nodeType() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomNode::nodeValue() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDomNode::normalize()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomDocument.html"><tt>QDomDocument</tt></a> QDomNode::ownerDocument() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::parentNode() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomNode::prefix() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::previousSibling() const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::removeChild(const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNode::replaceChild(const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;, const <a href="xml/QDomNode.html"><tt>QDomNode</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QDomNode::setNodeValue(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDomNode::setPrefix(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>QDomNode::~QDomNode()</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="xml/QDomNode.html"><tt>QDomNode</tt></a> QDomNodeList::item(int) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>uint QDomNodeList::length() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>QDomNodeList::~QDomNodeList()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomProcessingInstruction::data() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QDomProcessingInstruction::setData(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QDomProcessingInstruction::target() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>int QEventLoop::enterLoop()</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>int QEventLoop::exec()</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QEventLoop::exit(int)</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QEventLoop::exitLoop()</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QEventLoop::hasPendingEvents() const</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>int QEventLoop::loopLevel() const</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QEventLoop::processEvents(ProcessEventsFlags)</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QEventLoop::registerSocketNotifier(<a href="core/QSocketNotifier.html"><tt>QSocketNotifier</tt></a> *)</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QEventLoop::unregisterSocketNotifier(<a href="core/QSocketNotifier.html"><tt>QSocketNotifier</tt></a> *)</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QEventLoop::wakeUp()</td><td>Port to the new <a href="core/QAbstractEventDispatcher.html"><tt>QAbstractEventDispatcher</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QFrame::drawContents(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *)</td><td>Use Q3Frame or reimplement QFrame::paintEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QFrame::drawFrame(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *)</td><td>Use Q3Frame or reimplement QFrame::paintEvent() instead.</td></tr>
<tr valign="top" class="odd"><td>void QFrame::frameChanged()</td><td>Use Q3Frame or reimplement QFrame::resizeEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QFrame::setFrameRect(const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QFrame::setFrameStyle(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QFrame::setLineWidth(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QFrame::setMargin(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QFrame::setMidLineWidth(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QGridLayout::setColStretch(int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QGridLayout::setRowStretch(int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QGroupBox::setAlignment(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QGroupBox::setColumnLayout(int, Orientation)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QGroupBox::setTitle(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>QHostAddress::~QHostAddress()</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>int QIODevice::getch()</td><td>Port to the new <a href="core/QIODevice.html"><tt>QIODevice</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>int QIODevice::putch(int)</td><td>Port to the new <a href="core/QIODevice.html"><tt>QIODevice</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QIODevice::readAll()</td><td>Port to the new <a href="core/QIODevice.html"><tt>QIODevice</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>Q_LONG QIODevice::readLine(char *, Q_ULONG)</td><td>Port to the new <a href="core/QIODevice.html"><tt>QIODevice</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>int QIODevice::ungetch(int)</td><td>Port to the new <a href="core/QIODevice.html"><tt>QIODevice</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QIcon::setPixmap(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, Size, Mode, State)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QIcon::setPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;, Size, Mode, State)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>QIcon::~QIcon()</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QLabel::setAlignment(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLabel::setAutoResize(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLabel::setBuddy(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLabel::setMovie(const <a href="gui/QMovie.html"><tt>QMovie</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLabel::setNum(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLabel::setNum(double)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLabel::setPicture(const <a href="gui/QPicture.html"><tt>QPicture</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLabel::setPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLabel::setText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qlayoutiterator"><tt>QLayoutIterator</tt></a> QLayout::iterator()</td><td>Port to the new <a href="gui/QLayout.html"><tt>QLayout</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QLayout::setAutoAdd(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLayout::setMargin(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLayout::setMenuBar(<a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLayout::setSpacing(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qlayoutiterator"><tt>QLayoutIterator</tt></a> QLayoutItem::iterator()</td><td>Port to the new <a href="gui/QLayoutItem.html"><tt>QLayoutItem</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QLayoutItem::setAlignment(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>bool QLibrary::unload()</td><td>Never used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::clear()</td><td>Connect to QLineEdit::textChanged() instead.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::clearValidator()</td><td>Never used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::copy() const</td><td>Never used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::cut()</td><td>Never used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::deselect()</td><td>Connect to QLineEdit::selectionChanged() instead.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::insert(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Connect to QLineEdit::textChanged() instead.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::paste()</td><td>Connect to QLineEdit::textChanged() instead.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::redo()</td><td>Never used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::selectAll()</td><td>Connect to QLineEdit::selectionChanged() instead.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::setAlignment(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::setCursorPosition(int)</td><td>Connect to QLineEdit::cursorPositionChanged() instead.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::setDragEnabled(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::setEchoMode(EchoMode)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::setFrame(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::setMaxLength(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::setReadOnly(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::setSelection(int, int)</td><td>Connect to QLineEdit::selectionChanged() instead.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::setText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Connect to QLineEdit::textChanged() instead.</td></tr>
<tr valign="top" class="even"><td>void QLineEdit::setValidator(const <a href="gui/QValidator.html"><tt>QValidator</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QLineEdit::undo()</td><td>Never used in a polymorphic way by Qt.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::addDockWindow(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *, Dock, bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::addDockWindow(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, Dock, bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::customize()</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QMainWindow::isCustomizable() const</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::moveDockWindow(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *, Dock)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::moveDockWindow(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *, Dock, bool, int, int)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::removeDockWindow(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::setAppropriate(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *, bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::setCentralWidget(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::setDockEnabled(<a href="porting4.html#qdockwindow"><tt>QDockWindow</tt></a> *, Dock, bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::setDockEnabled(Dock, bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::setDockMenuEnabled(bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::setDockWindowsMovable(bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::setOpaqueMoving(bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::setRightJustification(bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::setUpLayout()</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMainWindow::setUsesBigPixmaps(bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMainWindow::setUsesTextLabel(bool)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>bool QMainWindow::showDockMenu(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;)</td><td>Port to the new <a href="gui/QMainWindow.html"><tt>QMainWindow</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMenuBar::activateItemAt(int)</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMenuBar::menuContentsChanged()</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMenuBar::menuDelPopup(<a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> *)</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMenuBar::menuInsPopup(<a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> *)</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMenuBar::menuStateChanged()</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMenuBar::setId(int, int)</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QMenuBar::setSeparator(Separator)</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QMenuBar::updateItem(int)</td><td>Port to the new <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>QMutex::~QMutex()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QObject::checkConnectArgs(const char *, const <a href="core/QObject.html"><tt>QObject</tt></a> *, const char *)</td><td>Reimplementing this function is no longer possible.</td></tr>
<tr valign="top" class="odd"><td>const char * QObject::className() const</td><td>Reimplementing this function is no longer supported.</td></tr>
<tr valign="top" class="even"><td>void QObject::insertChild(<a href="core/QObject.html"><tt>QObject</tt></a> *)</td><td>Reimplement QObject::childEvent() instead and handle QEvent::ChildAdded events.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QObject::property(const char *) const</td><td>Reimplementing this function is no longer supported.</td></tr>
<tr valign="top" class="even"><td>void QObject::removeChild(<a href="core/QObject.html"><tt>QObject</tt></a> *)</td><td>Reimplement QObject::childEvent() instead and handle QEvent::ChildRemoved events.</td></tr>
<tr valign="top" class="odd"><td>void QObject::setName(const char *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>bool QObject::setProperty(const char *, const <a href="porting4.html#qvariant"><tt>QVariant</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>bool QPaintDevice::cmd(int , <a href="gui/QPainter.html"><tt>QPainter</tt></a> * , QPDevCmdParam *)</td><td>Port to the new <a href="gui/QPaintEngine.html"><tt>QPaintEngine</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>Qt::HANDLE QPaintDevice::handle() const</td><td>Port to the new <a href="gui/QPaintDevice.html"><tt>QPaintDevice</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>HDC QPaintDevice::handle() const</td><td>Port to the new <a href="gui/QPaintDevice.html"><tt>QPaintDevice</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QPopupMenu::activateItemAt(int)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QPopupMenu::menuContentsChanged()</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QPopupMenu::menuDelPopup(<a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> *)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QPopupMenu::menuInsPopup(<a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> *)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QPopupMenu::menuStateChanged()</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QPopupMenu::setActiveItem(int)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QPopupMenu::setCheckable(bool)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QPopupMenu::setId(int, int)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QPopupMenu::updateItem(int)</td><td>Port to the new <a href="gui/QMenu.html"><tt>QMenu</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>int QPrinter::resolution() const</td><td>Call QPrinter::setResolution() to change the resolution.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setColorMode(ColorMode)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setCreator(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setDocName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setFromTo(int, int)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setFullPage(bool)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setMinMax(int, int)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setNumCopies(int)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setOrientation(Orientation)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setOutputFileName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setOutputToFile(bool)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setPageOrder(PageOrder)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setPageSize(PageSize)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setPaperSource(PaperSource)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setPrintProgram(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setPrinterName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QPrinter::setPrinterSelectionOption(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="even"><td>void QPrinter::setResolution(int)</td><td>Subclass <a href="gui/QPrintEngine.html"><tt>QPrintEngine</tt></a> instead.</td></tr>
<tr valign="top" class="odd"><td>void QProcess::addArgument(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QProcess::closeStdin()</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>bool QProcess::launch(const <a href="core/QByteArray.html"><tt>QByteArray</tt></a> &amp; buf, <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> *)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>bool QProcess::launch(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp; buf, <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> *)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QProcess::readLineStderr()</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QProcess::readLineStdout()</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QProcess::readStderr()</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td><a href="core/QByteArray.html"><tt>QByteArray</tt></a> QProcess::readStdout()</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>void QProcess::setArguments(const <a href="porting4.html#qstringlist"><tt>QStringList</tt></a> &amp;)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QProcess::setWorkingDirectory(const <a href="core/QDir.html"><tt>QDir</tt></a> &amp;)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>bool QProcess::start(<a href="porting4.html#qstringlist"><tt>QStringList</tt></a> *)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QProcess::writeToStdin(const <a href="core/QByteArray.html"><tt>QByteArray</tt></a> &amp;)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>bool QProgressBar::setIndicator(<a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, int)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QProgressBar::setProgress(int)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>void QProgressBar::setTotalSteps(int)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QPushButton::setAutoDefault(bool)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>void QPushButton::setDefault(bool)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="even"><td>void QPushButton::setIsMenuButton(bool)</td><td>Not used polymorphically in Qt.</td></tr>
<tr valign="top" class="odd"><td>void QPushButton::setOn(bool)</td><td>Connect to QPushButton::toggled(bool) instead.</td></tr>
<tr valign="top" class="even"><td>void QRadioButton::setChecked(bool)</td><td>Connect to QRadioButton::toggled(bool) instead.</td></tr>
<tr valign="top" class="odd"><td>uchar * QScreen::cache(int , int)</td><td>Port to the new QScreen API.</td></tr>
<tr valign="top" class="even"><td>void QScreen::set(unsigned int , unsigned int , unsigned int , unsigned)</td><td>Port to the new QScreen API.</td></tr>
<tr valign="top" class="odd"><td>void QScreen::uncache(uchar *)</td><td>Port to the new QScreen API.</td></tr>
<tr valign="top" class="even"><td>void QScrollBar::setOrientation(Orientation)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QScrollBar::setTracking(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSignalMapper::setMapping(const <a href="core/QObject.html"><tt>QObject</tt></a> *, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSignalMapper::setMapping(const <a href="core/QObject.html"><tt>QObject</tt></a> *, int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSlider::rangeChange()</td><td>Reimplement QSlider::sliderChange() instead.</td></tr>
<tr valign="top" class="odd"><td>void QSlider::setOrientation(Orientation)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSlider::setPalette(const <a href="gui/QPalette.html"><tt>QPalette</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSlider::setTickInterval(int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSlider::setTickmarks(TickSetting)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSlider::setTracking(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSlider::setValue(int)</td><td>Reimplement QSlider::sliderChange() instead.</td></tr>
<tr valign="top" class="odd"><td>void QSlider::valueChange()</td><td>Reimplement QSlider::sliderChange() instead.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSpinBox::cleanText() const</td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::interpretText()</td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSpinBox::prefix() const</td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::rangeChange()</td><td>Reimplement QSpinBox::sliderChange() instead.</td></tr>
<tr valign="top" class="even"><td>void QSpinBox::selectAll()</td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::setButtonSymbols(ButtonSymbols)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSpinBox::setPrefix(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::setSpecialValueText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSpinBox::setSuffix(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::setValidator(const <a href="gui/QValidator.html"><tt>QValidator</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSpinBox::setValue(int)</td><td>Connect to QSpinBox::valueChanged().</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::setWrapping(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSpinBox::stepDown()</td><td>Reimplement QSpinBox::stepBy() instead.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::stepUp()</td><td>Reimplement QSpinBox::stepBy() instead.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSpinBox::suffix() const</td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QSpinBox::updateDisplay()</td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QSpinBox::valueChange()</td><td>Reimplement QSpinBox::sliderChange() instead.</td></tr>
<tr valign="top" class="odd"><td>void QSplitter::drawSplitter(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *, QCOORD, QCOORD, QCOORD, QCOORD)</td><td>Reimplement QStyle::drawPrimitive() instead and handle QStyle::PE_Splitter.</td></tr>
<tr valign="top" class="even"><td>void QSplitter::setOpaqueResize(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSplitter::setOrientation(Orientation)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSplitter::setResizeMode(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, ResizeMode)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSqlDatabase::setDatabaseName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSqlDatabase::setHostName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSqlDatabase::setPassword(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QSqlDatabase::setPort(int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QSqlDatabase::setUserName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td><a href="sql/QSqlQuery.html"><tt>QSqlQuery</tt></a> QSqlDriver::createQuery() const</td><td>Port to the new <a href="sql/QSqlDriver.html"><tt>QSqlDriver</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSqlDriver::nullText() const</td><td>Port to the new <a href="sql/QSqlDriver.html"><tt>QSqlDriver</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="sql/QSqlRecord.html"><tt>QSqlRecord</tt></a> QSqlDriver::record(const <a href="sql/QSqlQuery.html"><tt>QSqlQuery</tt></a> &amp;) const</td><td>Port to the new <a href="sql/QSqlDriver.html"><tt>QSqlDriver</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qsqlrecordinfo"><tt>QSqlRecordInfo</tt></a> QSqlDriver::recordInfo(const <a href="sql/QSqlQuery.html"><tt>QSqlQuery</tt></a> &amp;) const</td><td>Port to the new <a href="sql/QSqlDriver.html"><tt>QSqlDriver</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qsqlrecordinfo"><tt>QSqlRecordInfo</tt></a> QSqlDriver::recordInfo(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Port to the new <a href="sql/QSqlDriver.html"><tt>QSqlDriver</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QSqlError::setDatabaseText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlError::setDriverText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlError::setNumber(int)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlError::setType(int)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qsqlerror"><tt>QSqlError::</tt></a>~<a href="porting4.html#qsqlerror"><tt>QSqlError</tt></a></td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlField::setName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlField::setNull()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlField::setReadOnly(bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlField::setValue(const <a href="porting4.html#qvariant"><tt>QVariant</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QSqlField::value() const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>QSqlField::~QSqlField()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlFieldInfo::setCalculated(bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlFieldInfo::setGenerated(bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlFieldInfo::setTrim(bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qsqlfieldinfo"><tt>QSqlFieldInfo::</tt></a>~<a href="porting4.html#qsqlfieldinfo"><tt>QSqlFieldInfo</tt></a></td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlIndex::append(const <a href="sql/QSqlField.html"><tt>QSqlField</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlIndex::append(const <a href="sql/QSqlField.html"><tt>QSqlField</tt></a> &amp;, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlIndex::setCursorName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlIndex::setDescending(int, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlIndex::setName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QSqlQuery::value(int) const</td><td>Exists as a non-virtual function.</td></tr>
<tr valign="top" class="even"><td>void QSqlRecord::append(const <a href="sql/QSqlField.html"><tt>QSqlField</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlRecord::clear()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlRecord::clearValues(bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlRecord::insert(int, const <a href="sql/QSqlField.html"><tt>QSqlField</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlRecord::remove(int)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlRecord::setGenerated(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlRecord::setGenerated(int, bool)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlRecord::setNull(int)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlRecord::setNull(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QSqlRecord::setValue(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qvariant"><tt>QVariant</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QSqlRecord::setValue(int, const <a href="porting4.html#qvariant"><tt>QVariant</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QSqlRecord::toString(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstringlist"><tt>QStringList</tt></a> QSqlRecord::toStringList(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QSqlRecord::value(int) const</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qvariant"><tt>QVariant</tt></a> QSqlRecord::value(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qsqlrecord"><tt>QSqlRecord::</tt></a>~<a href="porting4.html#qsqlrecord"><tt>QSqlRecord</tt></a></td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QStyle::polishPopupMenu(<a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> *)</td><td>Reimplement QStyle::polish(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *) instead.</td></tr>
<tr valign="top" class="odd"><td>int QTabBar::addTab(QTab *)</td><td>Reimplement QTabBar::tabInserted() instead.</td></tr>
<tr valign="top" class="even"><td>int QTabBar::insertTab(QTab *, int)</td><td>Reimplement QTabBar::tabInserted() instead.</td></tr>
<tr valign="top" class="odd"><td>void QTabBar::layoutTabs()</td><td>Reimplement QTabBar::tabLayoutChange() instead.</td></tr>
<tr valign="top" class="even"><td>void QTabBar::paint(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *, QTab *, bool) const</td><td>Reimplement QTabBar::paintEvent() instead.</td></tr>
<tr valign="top" class="odd"><td>void QTabBar::paintLabel(<a href="gui/QPainter.html"><tt>QPainter</tt></a> *, const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;, QTab *, bool) const</td><td>Reimplement QTabBar::paintEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QTabBar::removeTab(QTab *)</td><td>Reimplement QTabBar::tabRemoved() instead.</td></tr>
<tr valign="top" class="odd"><td>QTab * QTabBar::selectTab(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;) const</td><td>Reimplement QTabBar::mousePressEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QTabBar::setCurrentTab(int)</td><td>Connect to the QTabBar::currentChanged() signal.</td></tr>
<tr valign="top" class="odd"><td>void QTabBar::setCurrentTab(QTab *)</td><td>Connect to the QTabBar::currentChanged() signal.</td></tr>
<tr valign="top" class="even"><td>void QTabBar::setShape(Shape)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QTabBar::setTabEnabled(int, bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QTabWidget::addTab(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Reimplement QTabWidget::tabInserted() instead.</td></tr>
<tr valign="top" class="odd"><td>void QTabWidget::addTab(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="gui/QIcon.html"><tt>QIcon</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Reimplement QTabWidget::tabInserted() instead.</td></tr>
<tr valign="top" class="even"><td>void QTabWidget::addTab(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, QTab *)</td><td>Reimplement QTabWidget::tabInserted() instead.</td></tr>
<tr valign="top" class="odd"><td>void QTabWidget::insertTab(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="gui/QIcon.html"><tt>QIcon</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td><td>Reimplement QTabWidget::tabInserted() instead.</td></tr>
<tr valign="top" class="even"><td>void QTabWidget::insertTab(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td><td>Reimplement QTabWidget::tabInserted() instead.</td></tr>
<tr valign="top" class="odd"><td>void QTabWidget::insertTab(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, QTab *, int)</td><td>Reimplement QTabWidget::tabInserted() instead.</td></tr>
<tr valign="top" class="even"><td>void QTabWidget::removePage(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Reimplement QTabWidget::tabRemoved() instead.</td></tr>
<tr valign="top" class="odd"><td>void QTabWidget::showPage(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Connect to QTabWidget::currentChanged() instead.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::append(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::clear()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::clearParagraphBackground(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::copy()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> * QTextEdit::createPopupMenu(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qpopupmenu"><tt>QPopupMenu</tt></a> * QTextEdit::createPopupMenu()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::cut()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::del()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::doKeyboardAction(KeyboardAction)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::ensureCursorVisible()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>bool QTextEdit::find(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool, bool, bool, int *, int *)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>bool QTextEdit::focusNextPrevChild(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>int QTextEdit::heightForWidth(int) const</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::insert(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool, bool, bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::insertAt(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int, int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::insertParagraph(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::moveCursor(CursorAction, bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::paste()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::pasteSubType(const <a href="porting4.html#qcstring"><tt>QCString</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::placeCursor(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;, <a href="gui/QTextCursor.html"><tt>QTextCursor</tt></a> *)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::redo()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::removeParagraph(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::removeSelectedText(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::removeSelection(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::scrollToAnchor(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::scrollToBottom()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::selectAll(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setAlignment(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setBold(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setCurrentFont(const <a href="gui/QFont.html"><tt>QFont</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setCursorPosition(int, int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setFamily(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setItalic(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setLinkUnderline(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setMimeSourceFactory(<a href="porting4.html#qmimesourcefactory"><tt>QMimeSourceFactory</tt></a> *)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setModified(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setOverwriteMode(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setPaper(const <a href="gui/QBrush.html"><tt>QBrush</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setParagraphBackgroundColor(int, const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setPointSize(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setReadOnly(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setSelection(int, int, int, int, int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setSelectionAttributes(int, const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;, bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setStyleSheet(<a href="porting4.html#qstylesheet"><tt>QStyleSheet</tt></a> *)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setTabStopWidth(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setTextFormat(TextFormat)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setUnderline(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setUndoDepth(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setUndoRedoEnabled(bool)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setVerticalAlignment(VerticalAlignment)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setWordWrap(WordWrap)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::setWrapColumnOrWidth(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::setWrapPolicy(WrapPolicy)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::sync()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::undo()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::zoomIn()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::zoomIn(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::zoomOut(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTextEdit::zoomOut()</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTextEdit::zoomTo(int)</td><td>Use Q3TextEdit or port to the new <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QTimeEdit::sectionFormattedText(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTimeEdit::setAutoAdvance(bool)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTimeEdit::setHour(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTimeEdit::setMaxValue(const <a href="core/QTime.html"><tt>QTime</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTimeEdit::setMinValue(const <a href="core/QTime.html"><tt>QTime</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTimeEdit::setMinute(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTimeEdit::setRange(const <a href="core/QTime.html"><tt>QTime</tt></a> &amp;, const <a href="core/QTime.html"><tt>QTime</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTimeEdit::setSecond(int)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QTimeEdit::setSeparator(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td>void QTimeEdit::setTime(const <a href="core/QTime.html"><tt>QTime</tt></a> &amp;)</td><td>Port to the new <a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QToolBar::clear()</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QToolBar::setLabel(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QToolBar::setStretchableWidget(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QToolButton::setIconSet(const <a href="gui/QIcon.html"><tt>QIcon</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QToolButton::setOn(bool)</td><td>Connect to QToolButton::toggled(bool) instead.</td></tr>
<tr valign="top" class="odd"><td>void QToolButton::setTextLabel(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;, bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QToolButton::setToggleButton(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QToolButton::setUsesBigPixmap(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QToolButton::setUsesTextLabel(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QToolTip::maybeTip(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;)</td><td>Port to the new <a href="gui/QToolTip.html"><tt>QToolTip</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QUrl::addPath(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QUrl::cdUp()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>bool QUrl::parse(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QUrl::reset()</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QUrl::setEncodedPathAndQuery(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QUrl::setFileName(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QUrl::setHost(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QUrl::setPassword(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QUrl::setPath(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QUrl::setPort(int)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QUrl::setProtocol(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QUrl::setQuery(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>void QUrl::setRef(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>void QUrl::setUser(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Value type.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QUrl::toString(bool, bool) const</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qurl"><tt>QUrl::</tt></a>~<a href="porting4.html#qurl"><tt>QUrl</tt></a></td><td>Value type.</td></tr>
<tr valign="top" class="even"><td>QWaitCondition::~QWaitCondition()</td><td>Value type.</td></tr>
<tr valign="top" class="odd"><td>bool QWhatsThis::clicked(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Port to the new <a href="gui/QWhatsThis.html"><tt>QWhatsThis</tt></a> API.</td></tr>
<tr valign="top" class="even"><td><a href="porting4.html#qstring"><tt>QString</tt></a> QWhatsThis::text(const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;)</td><td>Port to the new <a href="gui/QWhatsThis.html"><tt>QWhatsThis</tt></a> API.</td></tr>
<tr valign="top" class="odd"><td><a href="porting4.html#qwhatsthis"><tt>QWhatsThis::</tt></a>~<a href="porting4.html#qwhatsthis"><tt>QWhatsThis</tt></a></td><td>Port to the new <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> API.</td></tr>
<tr valign="top" class="even"><td>void QWidget::adjustSize()</td><td>Reimplement QWidget::sizeHint() instead.</td></tr>
<tr valign="top" class="odd"><td>bool QWidget::close(bool)</td><td>Reimplement QWidget::closeEvent().</td></tr>
<tr valign="top" class="even"><td>void QWidget::create(WId, bool, bool)</td><td>Not supported in Qt 4.</td></tr>
<tr valign="top" class="odd"><td>bool QWidget::customWhatsThis() const</td><td>Not supported in Qt 4.</td></tr>
<tr valign="top" class="even"><td>void QWidget::destroy(bool, bool)</td><td>Not supported in Qt 4.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::enabledChange(bool)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::EnabledChange.</td></tr>
<tr valign="top" class="even"><td>void QWidget::fontChange(const <a href="gui/QFont.html"><tt>QFont</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::FontChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::imComposeEvent(QIMEvent *)</td><td>Reimplement QWidget::inputMethodEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QWidget::imEndEvent(QIMEvent *)</td><td>Reimplement QWidget::inputMethodEvent() instead.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::imStartEvent(QIMEvent *)</td><td>Reimplement QWidget::inputMethodEvent() instead.</td></tr>
<tr valign="top" class="even"><td>void QWidget::move(int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::paletteChange(const <a href="gui/QPalette.html"><tt>QPalette</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::PaletteChange and/or QEvent::ApplicationPaletteChange.</td></tr>
<tr valign="top" class="even"><td>void QWidget::polish()</td><td>Reimplement event() and handle the QEvent::Polish event type.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::reparent(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *, WFlags, const <a href="core/QPoint.html"><tt>QPoint</tt></a> &amp;, bool)</td><td>Reimplement QWidget::event() and handle QEvent::Reparent.</td></tr>
<tr valign="top" class="even"><td>void QWidget::resize(int, int)</td><td>Reimplement QWidget::resizeEvent() instead.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setAcceptDrops(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setActiveWindow()</td><td>Reimplement QWidget::changeEvent() and handle QEvent::ActivationChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setAutoMask(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setBackgroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setBackgroundMode(BackgroundMode)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setBackgroundOrigin(BackgroundOrigin)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setBackgroundPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setCaption(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::WindowTitleChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setCursor(const <a href="gui/QCursor.html"><tt>QCursor</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setEnabled(bool)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::EnabledChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setEraseColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setErasePixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setFocus()</td><td>Reimplement QWidget::focusInEvent() or QWidget::focusOutEvent().</td></tr>
<tr valign="top" class="even"><td>void QWidget::setFocusPolicy(FocusPolicy)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setFocusProxy(<a href="gui/QWidget.html"><tt>QWidget</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setFont(const <a href="gui/QFont.html"><tt>QFont</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::FontChange and/or QEvent::ApplicationFontChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setGeometry(int, int, int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setGeometry(const <a href="core/QRect.html"><tt>QRect</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setIcon(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::WindowIconChange.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setIconText(const <a href="porting4.html#qstring"><tt>QString</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::IconTextChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setKeyCompression(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setMask(const <a href="gui/QRegion.html"><tt>QRegion</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setMask(const <a href="gui/QBitmap.html"><tt>QBitmap</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setMaximumSize(int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setMicroFocusHint(int, int, int, int, bool, <a href="gui/QFont.html"><tt>QFont</tt></a> *)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setMinimumSize(int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setMouseTracking(bool)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::MouseTrackingChange.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setPalette(const <a href="gui/QPalette.html"><tt>QPalette</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::PaletteChange and/or QEvent::ApplicationPaletteChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setPaletteBackgroundColor(const <a href="gui/QColor.html"><tt>QColor</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setPaletteBackgroundPixmap(const <a href="gui/QPixmap.html"><tt>QPixmap</tt></a> &amp;)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setSizeIncrement(int, int)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setSizePolicy(<a href="gui/QSizePolicy.html"><tt>QSizePolicy</tt></a>)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::setUpdatesEnabled(bool)</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::setWFlags(WFlags)</td><td>Setter.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::showMaximized()</td><td>Reimplement QWidget::changeEvent() and handle QEvent::WindowStateChange.</td></tr>
<tr valign="top" class="even"><td>void QWidget::showMinimized()</td><td>Reimplement QWidget::changeEvent() and handle QEvent::WindowStateChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::showNormal()</td><td>Reimplement QWidget::changeEvent() and handle QEvent::WindowStateChange.</td></tr>
<tr valign="top" class="even"><td>void QWidget::styleChange(<a href="gui/QStyle.html"><tt>QStyle</tt></a> &amp;)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::StyleChange.</td></tr>
<tr valign="top" class="odd"><td>void QWidget::unsetCursor()</td><td>Setter.</td></tr>
<tr valign="top" class="even"><td>void QWidget::windowActivationChange(bool)</td><td>Reimplement QWidget::changeEvent() and handle QEvent::ActivationChange.</td></tr>
</table></p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2007 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt Jambi </div></td>
</tr></table></div></address></body>
</html>