New Classes and Functions in Qt 5.4

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

New Classes

New Member Functions

Class QSysInfo:

QString buildAbi()
QString buildCpuArchitecture()
QString currentCpuArchitecture()
QString kernelType()
QString kernelVersion()
QString prettyProductName()
QString productType()
QString productVersion()

Class QDebug:

QDebug &maybeQuote(c)
QDebug &noquote()
QDebug &quote()
QDebug &resetFormat()

Class QUrl:

QUrl fromUserInput(userInput, workingDirectory, options)

Class QAbstractProxyModel:

virtual bool canDropMimeData(data, action, row, column, parent) const
virtual bool dropMimeData(data, action, row, column, parent)

Class QTimer:

void singleShot(msec, functor)
void singleShot(msec, timerType, functor)
void singleShot(msec, timerType, context, functor)
void singleShot(msec, timerType, receiver, method)
void singleShot(msec, context, functor)
void singleShot(msec, receiver, method)

Class QImageReader:

QByteArray subType() const
QList<QByteArray> supportedSubTypes() const

Class QImageWriter:

void setSubType(type)
QByteArray subType() const
QList<QByteArray> supportedSubTypes() const

Class QGuiApplication:

void paletteChanged(palette)
void screenRemoved(screen)

Class QOpenGLContext:

QVariant nativeHandle() const
void setNativeHandle(handle)

Class QPlatformDrag:

virtual bool ownsDragObject() const

Class QPlatformWindow:

QPlatformScreen *screenForGeometry(newGeometry) const

Class QSurfaceFormat:

QSurfaceFormat defaultFormat()
void setDefaultFormat(format)

Class QOpenGLTexture:

DepthStencilMode depthStencilMode() const
void setDepthStencilMode(mode)
Target target() const

Class QSslCertificate:

bool importPkcs12(device, key, certificate, caCertificates, passPhrase)
bool isSelfSigned() const

Class QSslConfiguration:

QSsl::SslProtocol sessionProtocol() const

Class QSslSocket:


Class QPrinterInfo:

QPrinter::DuplexMode defaultDuplexMode() const
QList<QPrinter::DuplexMode> supportedDuplexModes() const

Class QGraphicsSceneMouseEvent:

Qt::MouseEventFlags flags() const
Qt::MouseEventSource source() const

Class QXmlSchema:

QXmlSchema &operator=(other)

New Functions in Namespaces

QFuture<T> run(pool, function, )

New Global Functions

QString qFormatLogMessage(type, context, str)
uint qHash(key, seed)
uint qHash(key, seed)

New Macros

Q_LOGGING_CATEGORY(name, string, msgType)

New Enum Types

enum DepthStencilMode { DepthMode, StencilMode }
enum UserInputResolutionOption { DefaultResolution, AssumeLocalFile }

New Properties

Additions to Other Qt 5 Releases