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)
W
QWebEngineContextMenuData

New Member Functions

Class QAndroidJniObject:

QAndroidJniObject fromLocalRef(int localRef)

Class QLowEnergyController:

QLowEnergyService *addService(const QLowEnergyServiceData &service, QObject *parent)
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 QMetaObject:

bool inherits(const QMetaObject *metaObject) const

Class QString:

void resize(int size, QChar fillChar)

Class QIODevice:

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

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

Class QBasicMutex:

bool isRecursive() const

Class QUtf8:

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

Class QJsonObject:

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

Class QUuid:

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

Class QDataStream:


Class QProcess:

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

Class QPlatformIntegration:

virtual void beep() const

Class Key:

bool isValid() const

Class QPlatformDrag:

virtual void cancelDrag()

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

void cancel()

Class QIconEngine:

bool isNull() const

Class QMediaPlaylist:

bool moveMedia(int from, int to)

Class QMediaPlaylistProvider:

virtual bool moveMedia(int from, int to)

Class QSslConfiguration:

QSslKey ephemeralServerKey() const

Class QNetworkInterface:

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

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


Class QWebEngineDownloadItem:

QWebEngineDownloadItem::SavePageFormat savePageFormat() const
void setSavePageFormat(QWebEngineDownloadItem::SavePageFormat format)

Class QWebEnginePage:

const QWebEngineContextMenuData &contextMenuData() const
void printToPdf(const QString &filePath, const QPageLayout &pageLayout)
void printToPdf(const QWebEngineCallback<const QByteArray &> &resultCallback, const QPageLayout &pageLayout)
void setWebChannel(QWebChannel *channel, uint worldId)

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

void qAsConst(const T &&t)
void qAsConst(const T &&t)
auto qConstOverload(T memberFunctionPointer)
auto qConstOverload(T memberFunctionPointer)
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 SavePageFormat { UnknownSaveFormat, SingleHtmlSaveFormat, CompleteHtmlSaveFormat, MimeHtmlSaveFormat }

New Typedefs

New Properties

New QML Types

New QML Properties

New QML Methods

Additions to Other Qt 5 Releases