New Classes and Functions in Qt 5.7

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

New Classes

A
AddressInfo (QLowEnergyAdvertisingParameters)
QAbstractActionInput (Qt3DInput)
QAbstractFunctor (Qt3DRender)
QAction (Qt3DInput)
QActionInput (Qt3DInput)
QAlphaCoverage (Qt3DRender)
QAlphaTest (Qt3DRender)
QAnalogAxisInput (Qt3DInput)
QAxis (Qt3DInput)
B
QBlendEquation (Qt3DRender)
QButtonAxisInput (Qt3DInput)
C
QClearBuffers (Qt3DRender)
QColorMask (Qt3DRender)
QComputeCommand (Qt3DRender)
QConeGeometry (Qt3DExtras)
QCuboidGeometry (Qt3DExtras)
QCullFace (Qt3DRender)
QCylinderGeometry (Qt3DExtras)
D
QDepthTest (Qt3DRender)
QDiffuseMapMaterial (Qt3DExtras)
QDiffuseSpecularMapMaterial (Qt3DExtras)
QDirectionalLight (Qt3DRender)
QDispatchCompute (Qt3DRender)
QDithering (Qt3DRender)
E
QEffect (Qt3DRender)
F
QFirstPersonCameraController (Qt3DExtras)
QForwardRenderer (Qt3DExtras)
QFrontFace (Qt3DRender)
QFrustumCulling (Qt3DRender)
G
QGeometry (Qt3DRender)
QGeometryRenderer (Qt3DRender)
QGoochMaterial (Qt3DExtras)
I
QInputChord (Qt3DInput)
QInputSequence (Qt3DInput)
QInputSettings (Qt3DInput)
L
QLogicAspect (Qt3DLogic)
QLowEnergyAdvertisingData
QLowEnergyAdvertisingParameters
QLowEnergyCharacteristicData
QLowEnergyConnectionParameters
QLowEnergyDescriptorData
QLowEnergyServiceData
M
QMorphPhongMaterial (Qt3DExtras)
QMultiSampleAntiAliasing (Qt3DRender)
N
QNodeCreatedChange (Qt3DCore)
QNodeDestroyedChange (Qt3DCore)
QNoDepthMask (Qt3DRender)
QNormalDiffuseMapAlphaMaterial (Qt3DExtras)
QNormalDiffuseMapMaterial (Qt3DExtras)
QNormalDiffuseSpecularMapMaterial (Qt3DExtras)
O
QOrbitCameraController (Qt3DExtras)
P
QPerVertexColorMaterial (Qt3DExtras)
QPhongAlphaMaterial (Qt3DExtras)
QPhongMaterial (Qt3DExtras)
QPickEvent (Qt3DRender)
QPickingSettings (Qt3DRender)
QPickTriangleEvent (Qt3DRender)
QPlaneGeometry (Qt3DExtras)
QPointSize (Qt3DRender)
QPolygonOffset (Qt3DRender)
Q
QQuickStyle
R
QRenderAspect (Qt3DRender)
QRenderPass (Qt3DRender)
QRenderPassFilter (Qt3DRender)
QRenderSettings (Qt3DRender)
QRenderState (Qt3DRender)
QRenderSurfaceSelector (Qt3DRender)
QRenderTarget (Qt3DRender)
QRenderTargetOutput (Qt3DRender)
QRenderTargetSelector (Qt3DRender)
S
QSceneLoader (Qt3DRender)
QScissorTest (Qt3DRender)
QScxmlCompiler
QScxmlCppDataModel
QScxmlDataModel
QScxmlEcmaScriptDataModel
QScxmlError
QScxmlEvent
QScxmlNullDataModel
QScxmlStateMachine
QSeamlessCubemap (Qt3DRender)
QSortPolicy (Qt3DRender)
QSphereGeometry (Qt3DExtras)
QStaticPropertyUpdatedChangeBase (Qt3DCore)
QStaticPropertyValueAddedChangeBase (Qt3DCore)
QStaticPropertyValueRemovedChangeBase (Qt3DCore)
QStencilMask (Qt3DRender)
QStencilOperation (Qt3DRender)
QStencilOperationArguments (Qt3DRender)
QStencilTest (Qt3DRender)
QStencilTestArguments (Qt3DRender)
T
QTechnique (Qt3DRender)
QTechniqueFilter (Qt3DRender)
QTextureData (Qt3DRender)
QTextureImageDataGenerator (Qt3DRender)
QTorusGeometry (Qt3DExtras)
V
QViewport (Qt3DRender)

New Member Functions

Class QAndroidJniObject:

QAndroidJniObject fromLocalRef(jobject localRef)

Class QBluetoothUuid:

bool operator!=(const QBluetoothUuid &other) const

Class QLowEnergyController:

QLowEnergyService *addService(const QLowEnergyServiceData &service, QObject *parent)
void connectionUpdated(const QLowEnergyConnectionParameters &newParameters)
QLowEnergyController *createCentral(const QBluetoothDeviceInfo &remoteDevice, QObject *parent)
QLowEnergyController *createPeripheral(QObject *parent)
void requestConnectionUpdate(const QLowEnergyConnectionParameters &parameters)
QLowEnergyController::Role role() const
void startAdvertising(const QLowEnergyAdvertisingParameters &parameters, const QLowEnergyAdvertisingData &advertisingData, const QLowEnergyAdvertisingData &scanResponseData)
void stopAdvertising()

Class QBasicMutex:

bool isRecursive() const

Class QBitArray:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QByteArray:

QByteArray &append(int count, char ch)
QByteArray &insert(int i, int count, char ch)
QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)
QByteArray &prepend(int count, char ch)

Class FromBase64Result:

uint qHash(const std::pair<T1, T2> &key, uint seed)

Class QChar:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QDataStream:


Class QDateTime:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QDate:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QFlags:

QFlags<T> &setFlag(Enum flag, bool on)

Class QHash:

QPair<QHash::iterator, QHash::iterator> equal_range(const Key &key)
QPair<QHash::const_iterator, QHash::const_iterator> equal_range(const Key &key) const
QHash::iterator erase(QHash::const_iterator pos)

Class QIODevice:

void channelBytesWritten(int channel, qint64 bytes)
void channelReadyRead(int channel)
void commitTransaction()
int currentReadChannel() const
int currentWriteChannel() const
bool isTransactionStarted() const
int readChannelCount() const
void rollbackTransaction()
void setCurrentReadChannel(int channel)
void setCurrentWriteChannel(int channel)
void startTransaction()
int writeChannelCount() const

Class QJsonObject:

QJsonObject::const_iterator constFind(QLatin1String key) const
bool contains(QLatin1String key) const
QJsonObject::iterator find(QLatin1String key)
QJsonObject::const_iterator find(QLatin1String key) const
QJsonValue operator[](QLatin1String key) const
QJsonValueRef operator[](QLatin1String key)
QJsonValue value(QLatin1String key) const

Class QLocale:

QString toCurrencyString(double value, const QString &symbol, int precision) const

Class QMetaObject:

bool inherits(const QMetaObject *metaObject) const

Class QMutex:

bool isRecursive() const

Class QPair:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QProcess:

QProcess::CreateProcessArgumentModifier createProcessArgumentsModifier() const
void setCreateProcessArgumentsModifier(QProcess::CreateProcessArgumentModifier modifier)

Class QRectF:

QRectF transposed() const

Class QRect:

QRect transposed() const

Class QRegExp:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QSet:

QSet::iterator erase(QSet::const_iterator pos)

Class QSharedPointer:

QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QString:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)
void resize(int size, QChar fillChar)

Class QStringRef:

QStringRef::const_reverse_iterator crbegin() const
QStringRef::const_reverse_iterator crend() const
QChar operator[](int position) const
QStringRef::const_reverse_iterator rbegin() const
QStringRef::const_reverse_iterator rend() const

Class QStringView:

uint qHash(const std::pair<T1, T2> &key, uint seed)

Class QTime:

QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)

Class QUtf8:

QChar *convertToUnicode(QChar *buffer, const char *chars, int len)

Class QUuid:

QUuid fromCFUUID(CFUUIDRef uuid)
QUuid fromNSUUID(const NSUUID *uuid)
CFUUIDRef toCFUUID() const
NSUUID *toNSUUID() const

Class QCursor:

void swap(QCursor &other)

Class QDrag:

void cancel()

Class QIconEngine:

bool isNull() const

Class QOpenGLFramebufferObject:

void blitFramebuffer(QOpenGLFramebufferObject *target, const QRect &targetRect, QOpenGLFramebufferObject *source, const QRect &sourceRect, GLbitfield buffers, GLenum filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, QOpenGLFramebufferObject::FramebufferRestorePolicy restorePolicy)

Class Key:

bool isValid() const

Class QPlatformDrag:

virtual void cancelDrag()

Class QPlatformIntegration:

virtual void beep() const

Class QWheelEvent:

bool inverted() const

Class QMediaPlaylist:

bool moveMedia(int from, int to)

Class QMediaPlaylistProvider:

virtual bool moveMedia(int from, int to)

Class QNetworkInterface:

int interfaceIndexFromName(const QString &name)
QString interfaceNameFromIndex(int index)

Class QSslConfiguration:

QSslKey ephemeralServerKey() const

Class QWindowsWindowFunctions:

void setWindowActivationBehavior(QWindowsWindowFunctions::WindowActivationBehavior behavior)
const QByteArray setWindowActivationBehaviorIdentifier()

Class QQmlDebuggingEnabler:

bool startDebugConnector(const QString &pluginName, const QVariantHash &configuration)

Class QQmlFileSelector:

QFileSelector *selector() const

Class QQuickItem:

bool isAncestorOf(const QQuickItem *child) const
QPointF mapFromGlobal(const QPointF &point) const
QPointF mapToGlobal(const QPointF &point) const

Class QQuickWebEngineProfile:


Class QMenu:

void showTearOffMenu(const QPoint &pos)
void showTearOffMenu()

Class QX11Info:

bool isCompositingManagerRunning(int screen)

New Functions in Namespaces

QAndroidJniObject androidService()
void hideSplashScreen()
void runOnAndroidThread(const QtAndroid::Runnable &runnable)
void runOnAndroidThreadSync(const QtAndroid::Runnable &runnable, int timeoutMs)

New Global Functions

QDebug operator<<(QDebug debug, const QSharedPointer<T> &ptr)
QDebug operator<<(QDebug debug, const std::multimap<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::map<Key, T, Compare, Alloc> &map)
QDebug operator<<(QDebug debug, const std::list<T, Alloc> &vec)
QDebug operator<<(QDebug debug, const std::vector<T, Alloc> &vec)
void qAsConst(const T &&t)
typename std::add_const<T>::type &qAsConst(T &t)
void qAsConst(const T &&t)
typename std::add_const<T>::type &qAsConst(T &t)
auto qConstOverload(T memberFunctionPointer)
auto qConstOverload(T memberFunctionPointer)
uint qHash(const std::pair<T1, T2> &key, uint seed)
auto qNonConstOverload(T memberFunctionPointer)
auto qNonConstOverload(T memberFunctionPointer)
auto qOverload(T functionPointer)
auto qOverload(T functionPointer)

New Macros

const wchar_t *qUtf16Printable(const QString &str)
const wchar_t *qUtf16Printable(const QString &str)

New Enum Types

enum AttAccessConstraint { AttAuthorizationRequired, AttAuthenticationRequired, AttEncryptionRequired }
enum FloatingPointPrecisionOption { FloatingPointShortest }
enum Role { CentralRole, PeripheralRole }
enum FramebufferRestorePolicy { DontRestoreFramebufferBinding, RestoreFramebufferBindingToDefault, RestoreFrameBufferBinding }
enum WindowActivationBehavior { DefaultActivateWindow, AlwaysActivateWindow }

New Type Aliases

New Properties

New QML Types

New QML Properties

New QML Methods

Additions to Other Qt 5 Releases

© 2024 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.