summaryrefslogtreecommitdiff
path: root/doc/src/whatsnew/whatsnew51.qdoc
blob: b37e537946b23a25423426f55fef18027c9253f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file.  Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: http://www.gnu.org/copyleft/fdl.html.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
    \page whatsnew51.html
    \title What's New in Qt 5.1
    \brief Lists the new features in Qt 5.1

    Qt 5.1 introduces many changes for helping developers continue creating
    wonderful applications, easily and with less code. As well in this release,
    focus is placed on bug fixing and new features, while maintaining
    compatibility with Qt 5.0.

    This page is a summary of new features. For specific API changes, the
    \l{List of API Changes} section contains links to new and obsolete classes.

    \section1 New Modules

    New modules add more functionality for developers to use on various
    platforms.

    \list
    \li \l{Qt Quick Controls} - a set of reusable UI controls. Qt 5.1
    targets desktop platforms, while future releases will include more features
    useful on touch devices.

    \li \l{Qt Quick Layouts} - provides layouts for \l{Qt Quick}

    \li \l{Qt X11 Extras} - adds platform specific APIs for X11

    \li \l{Qt Sensors} - provides access to sensor hardware and motion gesture
        recognition both via QML and C++ interfaces. Supports \l Android,
        BlackBerry, \l iOS, and Mer platforms.

    \li \l{Qt Serial Port} - provides an interface for hardware and virtual
        serial ports
    \endlist

    The \l{All Modules} page contains a list of all modules in Qt 5.1.

    \section1 New Supported Platforms

    Qt 5.1 introduces support for following new platforms with technology
    preview status:

    \list
    \li\l{Android}{Qt for Android} (Technology Preview)
    \li\l{iOS}{Qt for iOS} (Technology Preview)
    \endlist

    \section1 Summary of Changes

    \section2 moc
        \list
        \li New keyword in \l Q_PROPERTY(), \c MEMBER, lets you bind a property
        to a class member without requiring to have a getter or a setter.
        \endlist

    \section2 qmake
        \list
        \li On Windows: Added support for specifying application icon
            (via \c{RC_ICONS}).
        \endlist

    \section2 Qt Core
        \list
        \li Added support for SHA3 to QCryptographicHash
        \li Added toInt(), toUInt(), and similar functions to QStringRef
        \li A new threadsafe initialization of global statics through refactored
            \l Q_GLOBAL_STATIC().
        \li A new class, QLockFile, provides locking between processes using a
        file. This lock enables applications to check that there is only one
        instance of it running.
        \li A new class, QSaveFile, provides transaction such as file writing.
        \endlist

    \section2 Qt GUI
        \list
        \li Support for embedding and reparenting of windows created from other
            processes, via QWindow::fromWinId().
        \li QWidget::createWindowContainer() adds the capability to embed
            QWindow instances, such as QQuickView or a QWindow using
            QOpenGLContext, into a QWidget hierarchy.
        \li Support for kerning advances in QRawFont::advancesForGlyphIndexes.
        \li QImageReader and QImageWriter adds the ability to report supported
            MimeTypes.
        \li New input method plugin, QComposeInputContext.
        \li New GTK+ 2.x platformtheme plugin that provides native file, font,
            and color dialogs.
        \li New class, QOpenGLContext::versionFunctions(), provides access to
            all OpenGL functions.
        \li New QOpenGLTimerQuery and QOpenGLTimeMonitor classes.
        \li New QOpenGLDebugLogger class expose KHR_debug extension for easy debugging.
        \li Added support for Geometry, Tessellation Control,
            Tessellation Evaluation, and Compute shaders to QOpenGLShader and
            QOpenGLShaderProgram.
        \li New QOpenGLVertexArrayObject class.
        \endlist

    \section2 Qt Network
        \list
        \li New encrypted() signal to QNetworkAccessManager and QNetworkReply so
            that applications can perform additional checks on the certificate
            chain.
        \li Support for sending intermediate certificates when QSslSocket is
            used as a server and when using client certificates.
        \li Support for SSL session reuse allowing much faster connections to
            servers.
        \endlist

    \section2 Qt QML
        \list
        \li New QQmlApplicationEngine convenience class for QML applications.
        \li New Instantiatior type for generic, dynamic object creation.
        \li New \l{QtQml.Models} module containing \l ListElement, \l ListModel,
            \l DelegateModel, \l DelegateModelGroup, and \l ObjectModel.
        \li New properties for \l Qt.application: arguments, name, and version.
        \endlist

    \section2 Qt Quick
        \list
        \li New threaded render loop for Mac, Linux, and Embedded.
        \li New render loop for windows for smoother animations.
        \li New \l QtQuick.Dialogs module with \l FileDialog and
            \l ColorDialog types.
        \li New \l Window properties: activeFocusItem, minimumWidth,
            minimumHeight, maximumWidth, maximumHeight, visibility,
            contentOrientation, and opacity.
        \li New \l Item property: activeFocusOnTab.
        \li New \l Grid properties: horizontalAlignment, verticalAlignment, and
            effectiveHorizontalAlignment.
        \li New \l TextEdit properties: selectByKeyboard and textDocument
        \li A \l Window declared inside another Window or \l Item will
            automatically be transient for (centered upon) the outer window.
        \endlist

    \section2 Qt WebKit
        \list
        \li JavaScript JIT on Windows 64 bit.
        \li Improved font rendering, kerning enabled by default.
        \li Improved garbage collection.
        \li Support for WOFF fonts.
        \li Support for WebGL without accelerated compositing.
        \li Support for GStreamer 1.0.
        \li Improved perceived page load performance and support for Link
            prefetch.
        \endlist

    \section2 Qt Widgets
        \list
        \li Added property toolTipsVisible in QMenu.
        \endlist

    \section2 Qt Creator Compatibility

    \l{Qt Creator Manual}{Qt Creator} 2.7 complements this Qt release
    with the most prominent new features:

    \list
    \li Improved C++11 code editing support
    \li \l{Qt Creator: Using Qt Quick Designer}{Qt Quick Designer} with full support for Qt Quick
    \li Android \l{Qt Creator: Deploying Applications to Android Devices}{development target}
    \li Experimental QBS and diff integration
    \endlist

    \section2 Other New Features
    \list
    \li Restored support for static Qt builds
    \endlist

    \section1 List of API Changes

    The pages below contain a list of API changes in Qt 5.1
    \list
    \li \l{New Classes and Functions in Qt 5.1}
    \li \l{Obsolete Classes}
    \endlist
*/

/*!
    \page newclasses51.html
    \title New Classes and Functions in Qt 5.1
    \brief A list of new C++ APIs in Qt 5.1

    This page contains a comprehensive list of all new classes and functions
    introduced in Qt 5.1.

    \sincelist 5.1
*/