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

New Member Functions

Class QAndroidJniObject:

fromLocalRef(int localRef)

Class QBluetoothUuid:

operator!=(const QBluetoothUuid &other) const

Class QLowEnergyController:

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

Class QIODevice:


Class QMetaObject:

inherits(const QMetaObject *metaObject) const

Class QProcess:

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

Class QBasicMutex:

isRecursive() const

Class QByteArray:

append(int count, char ch)
insert(int i, int count, char ch)
prepend(int count, char ch)

Class QDataStream:


Class QJsonObject:

constFind(QLatin1String key) const
contains(QLatin1String key) const
find(QLatin1String key)
find(QLatin1String key) const
operator[](QLatin1String key)
operator[](QLatin1String key) const
value(QLatin1String key) const

Class QHash:

equal_range(const Key &key)
equal_range(const Key &key) const
erase(QHash::const_iterator pos)

Class QFlags:

setFlag(Enum flag, bool on)

Class QLocale:

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

Class QMutex:

isRecursive() const

Class QRect:

transposed() const

Class QRectF:

transposed() const

Class QSet:

erase(QSet::const_iterator pos)

Class QString:

resize(int size, QChar fillChar)

Class QStringRef:

crbegin() const
crend() const
operator[](int position) const
rbegin() const
rend() const

Class QUuid:

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

Class QUtf8:

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

Class QDrag:

cancel()

Class QIconEngine:

isNull() const

Class Key:

isValid() const

Class QWheelEvent:

inverted() const

Class QOpenGLFramebufferObject:

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

Class QPlatformDrag:

virtual cancelDrag()

Class QPlatformIntegration:

virtual beep() const

Class QMediaPlaylist:

moveMedia(int from, int to)

Class QMediaPlaylistProvider:

virtual moveMedia(int from, int to)

Class QNetworkInterface:

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

Class QSslConfiguration:


Class QWindowsWindowFunctions:

setWindowActivationBehavior(QWindowsWindowFunctions::WindowActivationBehavior behavior)
setWindowActivationBehaviorIdentifier()

Class QQmlDebuggingEnabler:

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

Class QQmlFileSelector:

selector() const

Class QQuickItem:

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

Class QQuickWebEngineProfile:


Class QMenu:

showTearOffMenu()
showTearOffMenu(const QPoint &pos)

Class QX11Info:


New Functions in Namespaces

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

New Global Functions

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

New Macros

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 Typedefs

New Properties

New QML Types

New QML Properties

New QML Methods

Additions to Other Qt 5 Releases

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