dist/changes-4.1.0
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     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/
       
     5 
       
     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.
       
     8 
       
     9 ****************************************************************************
       
    10 *                           General                                        *
       
    11 ****************************************************************************
       
    12 
       
    13 Qt library
       
    14 ----------
       
    15 
       
    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.
       
    19 
       
    20 - Integrated support for rendering Scalable Vector Graphics (SVG)
       
    21   drawings and animations (QtSvg module).
       
    22 
       
    23 - A Portable Document Format (PDF) backend for Qt's printing system.
       
    24 
       
    25 - A unit testing framework for Qt applications and libraries.
       
    26 
       
    27 - Modules for extending Qt Designer and dynamic user interface
       
    28   building.
       
    29 
       
    30 - Additional features for developers using OpenGL, such as support
       
    31   for pixel and sample buffers.
       
    32 
       
    33 - A flexible syntax highlighting class based on the Scribe rich text
       
    34   framework.
       
    35 
       
    36 - Support for network proxy servers using the SOCKS5 protocol.
       
    37 
       
    38 - Support for OLE verbs and MIME data handling in ActiveQt.
       
    39 
       
    40 - Support for universal binaries on Mac OS X.
       
    41 
       
    42 Qt Designer
       
    43 -----------
       
    44 
       
    45 - Added support for editing menu bars and tool bars.
       
    46 
       
    47 - Added support for adding comments to string properties.
       
    48 
       
    49 - Added new static QtUiTools library with improved
       
    50   QUiLoader API for loading designer forms at run-time.
       
    51 
       
    52 - Added support for namespaces in uic generated code.
       
    53 
       
    54 - Added support for dock widgets in main windows.
       
    55 
       
    56 - Added support for editing table, tree and list widgets.
       
    57 
       
    58 - Improved palette editing and resource support.
       
    59 
       
    60 QTestLib
       
    61 --------
       
    62 
       
    63 - Added QTestLib, the Qt Unit Testing Library. See the "QTestLib"
       
    64   chapter in the Qt documentation for more information.
       
    65 
       
    66 - Users of older versions of QtTestLib can use the updater utility in
       
    67   tools/qtestlib/updater to convert existing autotests to work with
       
    68   QTestLib.
       
    69 
       
    70 Boost
       
    71 -----
       
    72 
       
    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.
       
    77 
       
    78 ActiveQt
       
    79 --------
       
    80 
       
    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
       
    84 serialize the object.
       
    85 
       
    86 Build system
       
    87 ------------
       
    88 
       
    89 Added support for linking static plugins into the application.
       
    90 
       
    91 Qt 3 to 4 Porting Tool
       
    92 ----------------------
       
    93 
       
    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
       
    96 as in Qt 3.
       
    97 
       
    98 Meta Object Compiler (moc)
       
    99 --------------------------
       
   100 
       
   101 - Added support for const signals.
       
   102 
       
   103 Qt Assistant
       
   104 ------------
       
   105 
       
   106 - Added -docPath command line option for easy setting of the
       
   107   document root path.
       
   108 
       
   109 QMake
       
   110 -----
       
   111 
       
   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.
       
   114 
       
   115 - Added support for precompiled headers on win32-g++ (MinGW)
       
   116 
       
   117 Compilers
       
   118 ---------
       
   119 
       
   120 Added support for Solaris 10 on AMD64 with the compiler provided by
       
   121 Sun.
       
   122 
       
   123 
       
   124 ****************************************************************************
       
   125 *                          Library                                         *
       
   126 ****************************************************************************
       
   127 
       
   128 
       
   129 New classes
       
   130 -----------
       
   131 
       
   132 - QTreeWidgetItemIterator
       
   133         Added iterator to help iterating over items in a QTreeWidget.
       
   134 
       
   135 - QStringFilterModel
       
   136         Allows you to provide a subset of a model to a view based on a
       
   137         regular expression.
       
   138 
       
   139 - QSyntaxHighlighter
       
   140         The QSyntaxHighlighter class allows you to define syntax
       
   141         highlighting rules.
       
   142 
       
   143 - QAbstractFileEngine
       
   144         A base class for implementing your own file and directory
       
   145         handling back-end for QFile, QFileInfo and QDir.
       
   146 
       
   147 - QAbstractFileEngineHandler
       
   148         For registering a QAbstractFileEngine subclass with Qt.
       
   149 
       
   150 - QFSFileEngine
       
   151         The default file engine for regular file and directory access
       
   152         in Qt.
       
   153 
       
   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,
       
   157         just like in Qt 3.
       
   158 
       
   159 - Added qFromLittleEndian, qToLittleEndian, qFromBigEndian and
       
   160   qToBigEndian endian helper conversion functions (qendian.h)
       
   161 
       
   162 - Q_EXPORT_PLUGIN2 macro
       
   163         Obsoletes Q_EXPORT_PLUGIN and allows static linking of
       
   164         plugins.
       
   165 
       
   166 - Q3ComboBox
       
   167         For enhanced backwards compatibility with Qt 3.
       
   168 
       
   169 - QGLPbuffer
       
   170         For creating and managing OpenGL pixel buffers.
       
   171 
       
   172 - QNetworkProxy
       
   173         For setting up transparent (SOCKS5) networking proxying.
       
   174 
       
   175 - QDirectPainter (Qtopia Core only)
       
   176         Provides direct access to video framebuffer hardware.
       
   177 
       
   178 
       
   179 General improvements
       
   180 --------------------
       
   181 
       
   182 - QByteArray
       
   183         Added toLong() and 
       
   184 
       
   185 - QColorDialog
       
   186         Fix shortcut and focus for "Alpha channel" spinbox.
       
   187 
       
   188 - QLinkedList
       
   189         Added conversion methods to convert from/to STL lists.
       
   190 
       
   191 - QMap/QHash
       
   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
       
   195         detach.
       
   196 
       
   197 - QMap/QHash
       
   198         Const-correctness in const_iterator's operator--(int).
       
   199 
       
   200 - QMainWindow
       
   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.
       
   205 
       
   206 - QToolBar
       
   207         Added Qt 3 compatibility signal visibilityChanged(bool).
       
   208 
       
   209 - QMetaType
       
   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
       
   213         compile time.
       
   214 
       
   215 - QMetaProperty
       
   216         Added isResettable().
       
   217 
       
   218 - QSql
       
   219         Oracle plugin adds support for authentication using external
       
   220         credentials.
       
   221         Added isValid() to QSqlError.
       
   222 
       
   223 - QThread
       
   224         Added setPriority() and priority(), for querying and setting
       
   225         the priority of a thread.
       
   226 
       
   227 - QTreeWidgetItem/QTreeWidget
       
   228         Added new constructors and addChildren(), insertChildren(),
       
   229         takeChildren(), insertTopLevelItems(), addTopLevelItems to
       
   230         speed up insertion of multiple items.
       
   231 
       
   232 - QTextDocument
       
   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.
       
   237 
       
   238 - QTextFormat
       
   239         Added support for setting the font pixel size.
       
   240         Added UserObject to QTextFormat::ObjectTypes enum.
       
   241 
       
   242 - QMetaType
       
   243         The value of QMetaTypeId<T>::Defined indicates whether a given
       
   244         type T is supported by QMetaType.
       
   245 
       
   246 - QAbstractItemView
       
   247         Added setIndexWidget() and indexWidget() which makes it
       
   248         possible to set a widget at a given index.
       
   249 
       
   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.
       
   254 
       
   255 - QAbstractItemModel
       
   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.
       
   259 
       
   260         Add QModelIndex::operator<() so we are able to use them in
       
   261         QMap and other containers.
       
   262 
       
   263         Added qHash function for QModelIndex.
       
   264 
       
   265 - QTableWidget
       
   266         Added cellWidget() and setCellWidget() which makes it possible
       
   267         to set a widget at a specified cell.
       
   268 
       
   269         Added setCurrentCell().
       
   270 
       
   271         Added QTableWidgetItem copy constructors.
       
   272 
       
   273 
       
   274 - QTreeWidget
       
   275         Added setItemWidget() and itemWidget() which makes it possible
       
   276         to set a widget on an item.
       
   277 
       
   278 - QListWidget
       
   279         Added setItemWidget() and itemWidget() which makes it possible
       
   280         to set a widget on an item.
       
   281 
       
   282         Added QListWidgetItem copy constructors.
       
   283 
       
   284 - QMutableMapIterator
       
   285         Added value() overloads to Java-style iterators that return
       
   286         non-const references.
       
   287 
       
   288 - QTextTable
       
   289         Added mergeCells() and splitCells() to be able to set the row
       
   290         or column span on a table cell.
       
   291 
       
   292 - QStyle
       
   293         Added standardIcon() which returns a default icon for standard
       
   294         operations.
       
   295         Added State_ReadOnly, which is enabled for read-only widgets.
       
   296 
       
   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
       
   302           in all styles.
       
   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).
       
   307 
       
   308         Added PM_DockWidgetTitleMargin as pixel metric.
       
   309 
       
   310 - QHash
       
   311         Make it possible to use QHash with a type that has no default
       
   312         constructor.
       
   313 
       
   314 - QTableView
       
   315         Made QTableView::setShowGrid() a slot, like in Qt 3.
       
   316         Added setRowHeight() and setColumnWidth().
       
   317 
       
   318 - QTableWidgetSelectionRange
       
   319         Added rowCount() and columnCount() convenience functions.
       
   320 
       
   321 - QSettings
       
   322         Added support for custom formats in QSettings.
       
   323 
       
   324 - QTextStream
       
   325         Added status(), setStatus() and resetStatus() for improved
       
   326         error handling.
       
   327         Added read(qint64 maxlen), for reading parts of a text stream
       
   328         into a QString.
       
   329 
       
   330 - QTextCursor
       
   331         Added support for BlockUnderCursor selection type.
       
   332 
       
   333 - QHeaderView
       
   334         Added defaultSectionSize property which tells the default size
       
   335         of the header sections before resizing.
       
   336 
       
   337 - QScrollBar
       
   338         Added context menu to the scrollbar with default navigation
       
   339         options.
       
   340 
       
   341 - QScrollArea
       
   342         Added ensureVisible(), which can scroll the scrollarea to make
       
   343         sure a specific point is visible.
       
   344 
       
   345 - QDateTime
       
   346         Added addMSecs(), which adds a number of milliseconds to the QDateTime.
       
   347 
       
   348 - QDateTimeEdit
       
   349         Added support for more date/time formats.
       
   350         Now allows multiple sections of the same type.
       
   351 
       
   352 - QButtonGroup
       
   353         Added handling of buttons with IDs to the buttongroup like in
       
   354         Qt 3.
       
   355 
       
   356 - QIODevice
       
   357         Added peek() for peeking data from a device.
       
   358 
       
   359 - QTextEdit
       
   360         Added property tabStopWidth which sets the tab stop width in
       
   361         pixels.
       
   362         append(const QString &) is now a public slot.
       
   363         Added support for inserting Unicode control characters through
       
   364         the context menu.
       
   365         Added property acceptRichText, for whether or not the text
       
   366         edit accepts rich text insertions by the user.
       
   367         Added overwriteMode property.
       
   368 
       
   369 - QDataStream
       
   370         Added skipRawData().
       
   371         Added support for QRegExp.
       
   372 
       
   373 - QProgressBar
       
   374         Added support for vertical progress bars.
       
   375 
       
   376 - QImageIOHandler
       
   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.
       
   382 
       
   383 - QImageReader
       
   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
       
   387         supports animation.
       
   388 
       
   389 - QImageWriter
       
   390         Added support for saving image text.
       
   391 
       
   392 - QLocale
       
   393         Added dateFormat()/timeFormat() to query the date/time format
       
   394         for the current locale.
       
   395         Added toString() overloads for localized QTime and QDate
       
   396         output.
       
   397         Added decimalPoint(), groupSeparator(), percent(),
       
   398         zeroDigit(), negativeSign() and exponential(), which provide a
       
   399         means to generate custom number formatting.
       
   400 
       
   401 - QHostInfo
       
   402         Added support for reverse name lookups.
       
   403 
       
   404 - QHostAddress
       
   405         Added a QString assignment operator
       
   406         Added convenience functions for initializing from a native
       
   407         sockaddr structure.
       
   408         Added support for the IPv6 scope-id.
       
   409 
       
   410 - QPrinter
       
   411         Added property "embedFonts" for embedding fonts into the
       
   412         target document.
       
   413         Added support for printing to PDF.
       
   414         Added support for custom print and paint engines
       
   415 
       
   416 - QPrintEngine
       
   417         Added PPK_SuppressSystemPrintStatus, for suppressing the
       
   418         printer progress dialog on Mac OS X.
       
   419 
       
   420 - QKeySequence
       
   421         Added fromString() and toString() for initializing a key
       
   422         sequence from, and exporting a key sequence to a QString.
       
   423 
       
   424 - QUrl
       
   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
       
   431         name support.
       
   432 
       
   433 - QDir
       
   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.
       
   438 
       
   439 
       
   440 - QAbstractSocket
       
   441         Added slots connectToHostImplementation() and
       
   442         disconnectFromHostImplementation() to provide polymorphic
       
   443         behavior for connectToHost() and disconnectFromHost().
       
   444 
       
   445 - QMenuBar
       
   446         Added setActiveAction(), which makes the provided action
       
   447         active.
       
   448 
       
   449 - QProxyModel
       
   450         This class has been obsoleted (see QAbstractProxyModel)
       
   451 
       
   452 - QWidget
       
   453         Now supports three modes of modality: NonModal, WindowModal
       
   454         and ApplicationModal.
       
   455         Added Qt::WindowModality, obsoleted WA_ShowModal and
       
   456         WA_GroupLeader.
       
   457         Added Qt::WA_OpaquePaintEvent widget attribute, obsoleting
       
   458         Qt::WA_NoBackground.
       
   459         Added boolean autoFillBackground property.
       
   460         Child widgets now always inherit the contents of their parent.
       
   461 
       
   462 - QPalette
       
   463         Added QPalette::Window (obsoletes Background) and
       
   464         QPalette::WindowText (obsoletes Foreground).
       
   465 
       
   466 - QHttpResponseHeader
       
   467         Added two constructors and the function setStatusLine() for
       
   468         generating a response header.
       
   469 
       
   470 - QBitArray
       
   471         Added count(bool), for counting on and off-bits in a bit
       
   472         array.
       
   473 
       
   474 - QVariant
       
   475         Added support for QRegExp
       
   476 
       
   477 - QRegExpValidator
       
   478         Added the property "regExp".
       
   479 
       
   480 - QTabBar
       
   481         Added the property "iconSize", for setting the size of the
       
   482         icons on the tabs.
       
   483 
       
   484 - QLineEdit
       
   485         Added support for inserting Unicode control characters through
       
   486         the context menu.
       
   487 
       
   488 - QString
       
   489         Added toLong() and toULong().
       
   490         Support for std::string conversions with embedded \0
       
   491         characters.
       
   492 
       
   493 - QRegion
       
   494         Added translate(), like QRect::translated().
       
   495 
       
   496 - QProcess
       
   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.
       
   501 
       
   502 - QComboBox
       
   503         Made setCurrentIndex() a slot.
       
   504 
       
   505 - QFontDataBase
       
   506         Added styleString(), for retrieving the style string from a
       
   507         QFontInfo.
       
   508         Added support for Myanmar fonts.
       
   509 
       
   510 - QFontMetrics
       
   511         Added xHeight(), which returns the 'X' height of the font.
       
   512 
       
   513 - QCoreApplication
       
   514         Added arguments(), which returns a list of command line
       
   515         arguments as a QStringList.
       
   516 
       
   517 - QTcpSocket
       
   518         Added support for SOCKS5 via setProxy().
       
   519 
       
   520 - QUdpSocket
       
   521         Added property "bindMode", for binding several sockets to the
       
   522         same address and port.
       
   523 
       
   524 - QPen
       
   525         Added support for custom dash pattern styles and miter limits.
       
   526         Added support for QDebug.
       
   527 
       
   528 - QDebug
       
   529         Added support for QVector and QPair output.
       
   530 
       
   531 - QStringListModel
       
   532         Added support for sorting.
       
   533 
       
   534 - QOpenGLPaintEngine
       
   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.
       
   538 
       
   539 
       
   540 Platform-Specific changes
       
   541 -------------------------
       
   542 
       
   543 Windows:
       
   544 
       
   545 - Painting
       
   546         Added support for ClearType text rendering.
       
   547 
       
   548 - File Engine
       
   549         Added support for long filenames/paths.
       
   550 
       
   551 X11:
       
   552 
       
   553 - QWidget
       
   554         Added support for freedesktop.org startup notifications.
       
   555 
       
   556 Mac OS X:
       
   557 
       
   558 - Added support for universal binaries
       
   559 - Improved support for the VoiceOver accessibility tool in Mac OS X 10.4
       
   560   and later
       
   561 
       
   562 
       
   563 3rd-party libraries
       
   564 -------------------
       
   565 
       
   566 - zlib
       
   567         Upgraded to zlib 1.2.3.
       
   568 
       
   569 - FreeType
       
   570         Upgraded to FreeType 2.1.10.
       
   571 
       
   572 - SQLite
       
   573         Upgraded to SQLite 3.2.7