1 Qt 4.1 introduces many new features as well as many improvements and
2 bugfixes over the 4.0.x series. For more details, see the online
3 documentation which is included in this distribution. The
4 documentation is also available at http://qt.nokia.com/doc/
6 The Qt version 4.1 series is binary compatible with the 4.0.x series.
7 Applications compiled for 4.0 will continue to run with 4.1.
9 ****************************************************************************
11 ****************************************************************************
16 - Introduced widget backing store support, allowing semi-transparent
17 (alpha-blended) child widgets and faster widget painting, as well
18 as solving long-lasting issues with non-rectangular widgets.
20 - Integrated support for rendering Scalable Vector Graphics (SVG)
21 drawings and animations (QtSvg module).
23 - A Portable Document Format (PDF) backend for Qt's printing system.
25 - A unit testing framework for Qt applications and libraries.
27 - Modules for extending Qt Designer and dynamic user interface
30 - Additional features for developers using OpenGL, such as support
31 for pixel and sample buffers.
33 - A flexible syntax highlighting class based on the Scribe rich text
36 - Support for network proxy servers using the SOCKS5 protocol.
38 - Support for OLE verbs and MIME data handling in ActiveQt.
40 - Support for universal binaries on Mac OS X.
45 - Added support for editing menu bars and tool bars.
47 - Added support for adding comments to string properties.
49 - Added new static QtUiTools library with improved
50 QUiLoader API for loading designer forms at run-time.
52 - Added support for namespaces in uic generated code.
54 - Added support for dock widgets in main windows.
56 - Added support for editing table, tree and list widgets.
58 - Improved palette editing and resource support.
63 - Added QTestLib, the Qt Unit Testing Library. See the "QTestLib"
64 chapter in the Qt documentation for more information.
66 - Users of older versions of QtTestLib can use the updater utility in
67 tools/qtestlib/updater to convert existing autotests to work with
73 Added boost compatible syntax for declaring signals and slots. If you
74 define the macro QT_NO_KEYWORDS, "Q_SIGNALS" and "Q_SLOTS" are
75 recognized as keywords instead of the default "signals" and "slots".
76 Added a new keyword to qmake to enable this macro: CONFIG += no_keywords.
81 QAxServer now supports mime-type handling - a ActiveX control can be
82 registered to handle a certain file extension and mime-type, in which
83 case QAxBindable::load and QAxBindable::save can be reimplemented to
89 Added support for linking static plugins into the application.
91 Qt 3 to 4 Porting Tool
92 ----------------------
94 Q(V|H)BoxLayout and QGridLayout usage is now ported to use
95 Q3(V|H)BoxLayout/Q3GridLayout, to retain the margin/spacing behavior
98 Meta Object Compiler (moc)
99 --------------------------
101 - Added support for const signals.
106 - Added -docPath command line option for easy setting of the
112 - Added support for new FORMS3 profile variable to make it possible
113 to have Qt Designer forms from Qt 3 and Qt 4 in the same project.
115 - Added support for precompiled headers on win32-g++ (MinGW)
120 Added support for Solaris 10 on AMD64 with the compiler provided by
124 ****************************************************************************
126 ****************************************************************************
132 - QTreeWidgetItemIterator
133 Added iterator to help iterating over items in a QTreeWidget.
136 Allows you to provide a subset of a model to a view based on a
140 The QSyntaxHighlighter class allows you to define syntax
143 - QAbstractFileEngine
144 A base class for implementing your own file and directory
145 handling back-end for QFile, QFileInfo and QDir.
147 - QAbstractFileEngineHandler
148 For registering a QAbstractFileEngine subclass with Qt.
151 The default file engine for regular file and directory access
154 - Q3(H|V)BoxLayout and Q3GridLayout
155 Layout classes provided for compatibility that behave the same
156 as the Qt 4 classes but use a zero margin/spacing by default,
159 - Added qFromLittleEndian, qToLittleEndian, qFromBigEndian and
160 qToBigEndian endian helper conversion functions (qendian.h)
162 - Q_EXPORT_PLUGIN2 macro
163 Obsoletes Q_EXPORT_PLUGIN and allows static linking of
167 For enhanced backwards compatibility with Qt 3.
170 For creating and managing OpenGL pixel buffers.
173 For setting up transparent (SOCKS5) networking proxying.
175 - QDirectPainter (Qtopia Core only)
176 Provides direct access to video framebuffer hardware.
186 Fix shortcut and focus for "Alpha channel" spinbox.
189 Added conversion methods to convert from/to STL lists.
192 Fixed operator>>() to read back multiple values associated
193 to a same key correctly.
194 Added constFind(), for finding an item without causing a
198 Const-correctness in const_iterator's operator--(int).
201 The saveState() and restoreState() functions no longer
202 fallback to using the windowTitle property when the objectName
203 property is not set on a QToolBar or QDockWidget; this
204 behavior was undocumented and has been removed.
207 Added Qt 3 compatibility signal visibilityChanged(bool).
210 Class is now fully reentrant.
211 Metatypes can be registered or queried from multiple threads.
212 Added qMetaTypeId<T>(), which returns the meta type ID of T at
216 Added isResettable().
219 Oracle plugin adds support for authentication using external
221 Added isValid() to QSqlError.
224 Added setPriority() and priority(), for querying and setting
225 the priority of a thread.
227 - QTreeWidgetItem/QTreeWidget
228 Added new constructors and addChildren(), insertChildren(),
229 takeChildren(), insertTopLevelItems(), addTopLevelItems to
230 speed up insertion of multiple items.
233 Added the class QTextBlockUserData and added the possibility
234 of storing a state or custom user data in a QTextBlock
235 Added useDesignMetrics property, to enable the use of design
236 metrics for all fonts in a QTextDocument.
239 Added support for setting the font pixel size.
240 Added UserObject to QTextFormat::ObjectTypes enum.
243 The value of QMetaTypeId<T>::Defined indicates whether a given
244 type T is supported by QMetaType.
247 Added setIndexWidget() and indexWidget() which makes it
248 possible to set a widget at a given index.
250 Added a QAbstractItemView::ContiguousSelection mode.
251 Added scrollToTop() and scrollToBottom().
252 Changed signals pressed(), clicked() and doubleClicked() to
253 only emit when the index is valid.
256 Added a SizeHintRole that can be set for each item. The item
257 delegate will now check for this value before computing the
258 size hint based on other item data.
260 Add QModelIndex::operator<() so we are able to use them in
261 QMap and other containers.
263 Added qHash function for QModelIndex.
266 Added cellWidget() and setCellWidget() which makes it possible
267 to set a widget at a specified cell.
269 Added setCurrentCell().
271 Added QTableWidgetItem copy constructors.
275 Added setItemWidget() and itemWidget() which makes it possible
276 to set a widget on an item.
279 Added setItemWidget() and itemWidget() which makes it possible
280 to set a widget on an item.
282 Added QListWidgetItem copy constructors.
284 - QMutableMapIterator
285 Added value() overloads to Java-style iterators that return
286 non-const references.
289 Added mergeCells() and splitCells() to be able to set the row
290 or column span on a table cell.
293 Added standardIcon() which returns a default icon for standard
295 Added State_ReadOnly, which is enabled for read-only widgets.
297 Renamed QStyleOption::init() to initFrom().
298 - QGroupBox is now completely stylable (QStyleOptionGroupBox).
299 - QToolBar is now stylable according to its position in the
300 toolbar dock area (QStyleOptionToolBar).
301 - Indeterminate (busy) progress bars are now animated properly
303 - By popular request, the default toolbar icon size
304 (PM_ToolBarIconSize) in Windows and Plastique styles has
305 been changed to 24 x 24 (instead of 16 x 16 in Windows and
306 32 x 32 in Plastique).
308 Added PM_DockWidgetTitleMargin as pixel metric.
311 Make it possible to use QHash with a type that has no default
315 Made QTableView::setShowGrid() a slot, like in Qt 3.
316 Added setRowHeight() and setColumnWidth().
318 - QTableWidgetSelectionRange
319 Added rowCount() and columnCount() convenience functions.
322 Added support for custom formats in QSettings.
325 Added status(), setStatus() and resetStatus() for improved
327 Added read(qint64 maxlen), for reading parts of a text stream
331 Added support for BlockUnderCursor selection type.
334 Added defaultSectionSize property which tells the default size
335 of the header sections before resizing.
338 Added context menu to the scrollbar with default navigation
342 Added ensureVisible(), which can scroll the scrollarea to make
343 sure a specific point is visible.
346 Added addMSecs(), which adds a number of milliseconds to the QDateTime.
349 Added support for more date/time formats.
350 Now allows multiple sections of the same type.
353 Added handling of buttons with IDs to the buttongroup like in
357 Added peek() for peeking data from a device.
360 Added property tabStopWidth which sets the tab stop width in
362 append(const QString &) is now a public slot.
363 Added support for inserting Unicode control characters through
365 Added property acceptRichText, for whether or not the text
366 edit accepts rich text insertions by the user.
367 Added overwriteMode property.
371 Added support for QRegExp.
374 Added support for vertical progress bars.
377 The name() function has been obsoleted; use format() instead.
378 Added QImageIOHandler::Animation, for determining if the image
379 format supports animation.
380 Added QImageIOHandler::BackgroundColor, for setting the
381 background color for the image loader.
384 Added setBackgroundColor() and backgroundColor(), for setting
385 the background color of an image before it is read.
386 Added supportsAnimation(), for checking if the image format
390 Added support for saving image text.
393 Added dateFormat()/timeFormat() to query the date/time format
394 for the current locale.
395 Added toString() overloads for localized QTime and QDate
397 Added decimalPoint(), groupSeparator(), percent(),
398 zeroDigit(), negativeSign() and exponential(), which provide a
399 means to generate custom number formatting.
402 Added support for reverse name lookups.
405 Added a QString assignment operator
406 Added convenience functions for initializing from a native
408 Added support for the IPv6 scope-id.
411 Added property "embedFonts" for embedding fonts into the
413 Added support for printing to PDF.
414 Added support for custom print and paint engines
417 Added PPK_SuppressSystemPrintStatus, for suppressing the
418 printer progress dialog on Mac OS X.
421 Added fromString() and toString() for initializing a key
422 sequence from, and exporting a key sequence to a QString.
425 Added the port(int) function, which provides a default value
426 for the port if the URL does not define a port.
427 Support for decoding Punycode encoded hostnames in URLs.
428 Made the parser more tolerant for mistakes, and added a
429 ParsingMode flag for selecting strict or tolerant parsing.
430 Added support for the NAMEPREP standard in our i18n domain
434 Added the filter QDir::NoDotAndDotDot, for the
435 special directories "." and "..".
436 Added the filter QDir::AllEntries, for all entries
437 in a directory, including symlinks.
441 Added slots connectToHostImplementation() and
442 disconnectFromHostImplementation() to provide polymorphic
443 behavior for connectToHost() and disconnectFromHost().
446 Added setActiveAction(), which makes the provided action
450 This class has been obsoleted (see QAbstractProxyModel)
453 Now supports three modes of modality: NonModal, WindowModal
454 and ApplicationModal.
455 Added Qt::WindowModality, obsoleted WA_ShowModal and
457 Added Qt::WA_OpaquePaintEvent widget attribute, obsoleting
459 Added boolean autoFillBackground property.
460 Child widgets now always inherit the contents of their parent.
463 Added QPalette::Window (obsoletes Background) and
464 QPalette::WindowText (obsoletes Foreground).
466 - QHttpResponseHeader
467 Added two constructors and the function setStatusLine() for
468 generating a response header.
471 Added count(bool), for counting on and off-bits in a bit
475 Added support for QRegExp
478 Added the property "regExp".
481 Added the property "iconSize", for setting the size of the
485 Added support for inserting Unicode control characters through
489 Added toLong() and toULong().
490 Support for std::string conversions with embedded \0
494 Added translate(), like QRect::translated().
497 Added systemEnvironment(), which returns the environment
498 variables of the calling process.
499 Added exitStatus(), and added a new finished() signal which
500 takes the exit status as a parameter.
503 Made setCurrentIndex() a slot.
506 Added styleString(), for retrieving the style string from a
508 Added support for Myanmar fonts.
511 Added xHeight(), which returns the 'X' height of the font.
514 Added arguments(), which returns a list of command line
515 arguments as a QStringList.
518 Added support for SOCKS5 via setProxy().
521 Added property "bindMode", for binding several sockets to the
522 same address and port.
525 Added support for custom dash pattern styles and miter limits.
526 Added support for QDebug.
529 Added support for QVector and QPair output.
532 Added support for sorting.
535 Gradients in the OpenGL paint engine are now drawn using
536 fragment programs, if the extension is available. Lots of
537 fixes, speedups and tweaks.
540 Platform-Specific changes
541 -------------------------
546 Added support for ClearType text rendering.
549 Added support for long filenames/paths.
554 Added support for freedesktop.org startup notifications.
558 - Added support for universal binaries
559 - Improved support for the VoiceOver accessibility tool in Mac OS X 10.4
567 Upgraded to zlib 1.2.3.
570 Upgraded to FreeType 2.1.10.
573 Upgraded to SQLite 3.2.7