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
QClearBuffers (Qt3DRender)
QColorMask (Qt3DRender)
QComputeCommand (Qt3DRender)
QCullFace (Qt3DRender)
D
QDepthTest (Qt3DRender)
QDirectionalLight (Qt3DRender)
QDispatchCompute (Qt3DRender)
QDithering (Qt3DRender)
E
QEffect (Qt3DRender)
F
QFrontFace (Qt3DRender)
QFrustumCulling (Qt3DRender)
G
QGeometry (Qt3DRender)
QGeometryRenderer (Qt3DRender)
I
QInputChord (Qt3DInput)
QInputSequence (Qt3DInput)
QInputSettings (Qt3DInput)
L
QLowEnergyAdvertisingData
QLowEnergyAdvertisingParameters
QLowEnergyCharacteristicData
QLowEnergyConnectionParameters
QLowEnergyDescriptorData
QLowEnergyServiceData
QLogicAspect (Qt3DLogic)
M
QMultiSampleAntiAliasing (Qt3DRender)
N
QNodeCreatedChange (Qt3DCore)
QNodeDestroyedChange (Qt3DCore)
QNoDepthMask (Qt3DRender)
P
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)
QSceneLoader (Qt3DRender)
QScissorTest (Qt3DRender)
QSeamlessCubemap (Qt3DRender)
QSortPolicy (Qt3DRender)
QStencilMask (Qt3DRender)
QStencilOperation (Qt3DRender)
QStencilOperationArguments (Qt3DRender)
QStencilTest (Qt3DRender)
QStencilTestArguments (Qt3DRender)
T
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 QProcess:

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

Class QMetaObject:

inherits(const QMetaObject *metaObject) const

Class QUuid:

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

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 QBasicMutex:

isRecursive() const

Class QMutex:

isRecursive() const

Class QByteArray:

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

Class QHash:

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

Class QLocale:

toCurrencyString(double value, const QString &symbol, int precision) 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 QUtf8:

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

Class QFlags:

setFlag(Enum flag, bool on)

Class QIconEngine:

isNull() const

Class Key:

isValid() const

Class QDrag:

cancel()

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 QQmlFileSelector:

selector() const

Class QQmlDebuggingEnabler:

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

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