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:


Class QDebug:


Class QUrl:

fromUserInput(userInput, workingDirectory, options)

Class QAbstractProxyModel:

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

Class QTimer:

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

Class QAbstractState:

activeChanged(active)

Class QAbstractTransition:


Class QHistoryState:


Class QSignalTransition:


Class QState:


Class QStateMachine:

runningChanged(running)

Class QByteArray:

fromStdString(str)
toStdString() const

Class QCommandLineParser:

addOptions(options)
showVersion()

Class QRegularExpression:

optimize() const

Class QEnableSharedFromThis:


Class QWeakPointer:

lock() const
swap(other)

Class QString:

splitRef(sep, behavior, cs) const
splitRef(rx, behavior) const
splitRef(re, behavior) const
splitRef(sep, behavior, cs) const

Class QStringRef:

begin() const
cbegin() const
cend() const
end() const
split(sep, behavior, cs) const
split(sep, behavior, cs) const

Class QStringList:

operator<<(other)
operator=(other)
operator=(other)

Class QVector:


Class QImageWriter:

setSubType(type)
subType() const
supportedSubTypes() const

Class QImageReader:

subType() const
supportedSubTypes() const

Class QGuiApplication:

paletteChanged(palette)
screenRemoved(screen)

Class QOpenGLContext:

nativeHandle() const
setNativeHandle(handle)

Class QPlatformDrag:

virtual ownsDragObject() const

Class QPlatformWindow:

screenForGeometry(newGeometry) const

Class QSurfaceFormat:


Class QOpenGLTexture:


Class QSslCertificate:

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

Class QSslConfiguration:

sessionProtocol() const

Class QSslSocket:


Class QPrinterInfo:


Class QSqlDriver:

dbmsType() const

Class QGraphicsSceneMouseEvent:

flags() const
source() const

Class QXmlSchema:

operator=(other)

New Functions in Namespaces

run(pool, function, )

New Global Functions

qFormatLogMessage(type, context, str)
qHash(key, seed)
qHash(key, seed)
qHashBits(p, len, seed)
qNextPowerOfTwo(value)
qNextPowerOfTwo(value)
qNextPowerOfTwo(value)
qNextPowerOfTwo(value)

New Macros

Q_LOGGING_CATEGORY(name, string, msgType)
qUtf8Printable(str)

New Enum Types

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

New Typedefs

typedef const_iterator

New Properties

Additions to Other Qt 5 Releases