New Classes and Functions in Qt 5.2

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.2. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

New Namespaces

namespace QBluetooth
namespace QtMac

New Classes

New Member Functions

Class QUrlQuery:

QUrlQuery & operator=(QUrlQuery && other)

Class QMimeType:

QMimeType & operator=(QMimeType && other)

Class QThreadPool:

void clear()

Class QCommandLineOption:

QCommandLineOption & operator=(QCommandLineOption && other)

Class QContiguousCache:

QContiguousCache<T> & operator=(QContiguousCache<T> && other)

Class QEasingCurve:

QEasingCurve & operator=(QEasingCurve && other)

Class QSharedDataPointer:

QSharedDataPointer<T> & operator=(QSharedDataPointer<T> && other)

Class QExplicitlySharedDataPointer:

QExplicitlySharedDataPointer<T> & operator=(QExplicitlySharedDataPointer<T> && other)

Class QStringRef:

QStringRef left(int n) const
QStringRef mid(int position, int n = -1) const
QStringRef right(int n) const

Class QGuiApplication:

Qt::ApplicationState applicationState()
void applicationStateChanged(Qt::ApplicationState state)
void sync()

Class QNativeGestureEvent:

Qt::NativeGestureType gestureType() const
const QPoint globalPos() const
const QPointF & localPos() const
const QPoint pos() const
const QPointF & screenPos() const
qreal value() const
const QPointF & windowPos() const

Class QTouchDevice:

int maximumTouchPoints() const

Class QVector3D:

float & operator[](int i)
float operator[](int i) const

Class QVector2D:

float & operator[](int i)
float operator[](int i) const

Class QVector4D:

float & operator[](int i)
float operator[](int i) const

Class QNetworkAccessManager:

void connectToHost(const QString & hostName, quint16 port = 80)
void connectToHostEncrypted(const QString & hostName, quint16 port = 443, const QSslConfiguration & sslConfiguration = QSslConfiguration::defaultConfiguration())
QStringList supportedSchemes() const
QStringList supportedSchemesImplementation() const

Class QNetworkConfiguration:

BearerType bearerTypeFamily() const

Class QSslConfiguration:

QByteArray sessionTicket() const
int sessionTicketLifeTimeHint() const
void setSessionTicket(const QByteArray & sessionTicket)

Class QQuickWindow:


Class QWebHitTestResult:

QUrl mediaUrl() const

Class QX11Info:

unsigned long getTimestamp()
bool isPlatformX11()

Class QPressureReading:

void setTemperature(qreal temperature)

Class QSerialPort:

Handle handle() const

New Global Functions

quint64 qFloatDistance(double a, double b)
quint32 qFloatDistance(float a, float b)
uint qPopulationCount(quint64 v)
uint qPopulationCount(quint16 v)
uint qPopulationCount(quint8 v)
uint qPopulationCount(quint32 v)

New Macros

New Properties

New QML Types

Additions to Other Qt 5 Releases

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.