Fix macplist autotest
[qt-netbsd.git] / dist / changes-4.6.0
blobf9984d379dd36b296735b8dbf035604da2c9f12e
1 Qt 4.6 introduces many new features and improvements as well as bugfixes
2 over the 4.5.x series. For more details, refer to the online documentation
3 included in this distribution. The documentation is also available online:
5   http://qt.nokia.com/doc/4.6
7 The Qt version 4.6 series is binary compatible with the 4.5.x series.
8 Applications compiled for 4.5 will continue to run with 4.6.
10 Some of the changes listed in this file include issue tracking numbers
11 corresponding to tasks in the Task Tracker:
13   http://qt.nokia.com/developer/task-tracker
15 Each of these identifiers can be entered in the task tracker to obtain more
16 information about a particular change.
18 ****************************************************************************
19 *                           General                                        *
20 ****************************************************************************
24 ****************************************************************************
25 *                          Library                                         *
26 ****************************************************************************
28     * [245219] Added QXmlQuery::setFocus(const QString &focus);
30  - QVariant
31     * Many optimisations
32     * Added QVariant::toFloat() and QVariant::toReal()
33     * Added QVariant(float) constructor
35 ****************************************************************************
36 *                      Platform Specific Changes                           *
37 ****************************************************************************
39  - Significant external contribution from Milan Burda for planned removal
40    of (non-unicode) Windows 9x/ME support.
42  - QRegion is no longer a GDI object by default. This means it is no
43    longer subject to gui-thread only nor does it potentially impact
44    the 10.000 GDI object limit per process. By explicitly calling
45    .handle() a GDI object will be created and memory managed by
46    QRegion. The native handle is for reading out only. Any GDI calls
47    made on the HRGN handle will not affect the QRegion.
49 ****************************************************************************
50 * Important Behavior Changes *
51 ****************************************************************************
53  - The experimental Direct3D paint engine has been removed. The reason for
54    this is that Nokia focuses on OpenGL for desktop hardware accelerated
55    rendering.
57  - The default engine used to draw onto OpenGL buffers has changed in
58    Qt 4.6. The QPaintEngine::OpenGL2 engine is now used as the default
59    engine. This *may* cause compatibility problems for applications
60    that use a mix of QPainter and native OpenGL calls to draw into a GL
61    buffer. Use the QGL::setPreferredPaintEngine() function to enforce
62    usage of the old GL paint engine.
64  - When mixing OpenGL and QPainter calls you need to surround your
65    custom OpenGL calls with QPainter::beginNativePainting() and
66    QPainter::endNativePainting().
67    This is to ensure that the paint engine flushes any pending drawing and sets
68    up the GL modelview/projection matrices properly before you can issue custom
69    OpenGL calls, and to let the paint engine synchronize to the painter state
70    before resuming regular QPainter based drawing.
72  - Graphics View has undergone heavy optimization work, and as a result of
73    this work, the following behavior changes were introduced.
75    a) QStyleOptionGraphicsItem::exposedRect now contains the item's bounding
76       rectangle, and QStyleOptionGraphicsItem::matrix is uninitialized by
77       default. You can enable an exact exposed rectangle and a correct matrix
78       by enabling the flag QGraphicsItem::ItemUsesExtendedStyleOptions.
80    b) QStyleOptionGraphicsItem::levelOfDetails is obsoleted and its value is
81       always initialized to 1. Instead you can call
82       QStyleOptionGraphicsItem::levelOfDetailFromTransform(const QTransform &)
83       to determine the level of detail.
85    c) QGraphicsView no longer calls QGraphicsView::drawItems(), and in turn
86       QGraphicsScene::drawItems(), by default. You can get the old behavior
87       back by enabling QGraphicsView::IndirectPainting.
89    d) QGraphicsItem no longer calls itemChange() for position and
90       transformation changes. If you want to receive notifications for changes
91       to the item's position and transformation, you can set the flag
92       QGraphicsItem::ItemSendsGeometryChanges (which is enabled by default by
93       QGraphicsWidget and QGraphicsProxyWidget).
95  - QDesktopWidget on X11 no longer emits the resized(int) signal when screens
96    are added or removed. This was not done on other platforms. Use the
97    screenCountChanged signal instead
99  - QUrl's parser is more strict when for hostnames in URLs. QUrl now
100    enforces STD 3 rules:
102     * each individual hostname section (between dots) must be at most
103       63 ASCII characters in length;
105     * only letters, digits, and the hyphen character are allowed in the
106       ASCII range; letters outside the ASCII range follow the normal
107       IDN rules
109    That means QUrl no longer accepts some URLs that were invalid
110    before, but weren't interpreted as such.
112  - The Unix configure-time check for STL is stricter now in Qt
113    4.6.0. This means some legacy STL implementations may fail to pass
114    the test and, therefore, Qt will automatically disable STL support.
116    This is a binary-compatible change: existing code will continue to
117    work without being recompiled. However, it affects the source code,
118    since some STL-compatibility API will not be enabled.
120    Platforms affected by this change:
121      * solaris-cc-* with the default (Cstd) C++ STL library
122        recommendation: use -library=stlport4
123        See Sun Studio's documentation for the effects of this option
125  - QVariant has now a new implicit constructor that takes a float. This
126    means that code that assigned a float to a variant would create a
127    variant with userType QMetaType::Float, instead of QVariant::Double.