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

virtual canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
virtual dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override

Class QAbstractState:

activeChanged(bool active)

Class QAbstractTransition:


Class QByteArray:

fromStdString(const std::string &str)
toStdString() const

Class QCommandLineParser:

addOptions(const QList<QCommandLineOption> &options)
showVersion()

Class QDebug:


Class QEnableSharedFromThis:


Class QHistoryState:


Class QRegularExpression:

optimize() const

Class QUrl:

fromUserInput(const QString &userInput, const QString &workingDirectory, QUrl::UserInputResolutionOptions options)

Class QWeakPointer:

lock() const
swap(QWeakPointer<T> &other)

Class QString:

splitRef(QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const
splitRef(const QRegExp &rx, QString::SplitBehavior behavior) const
splitRef(const QRegularExpression &re, QString::SplitBehavior behavior) const
splitRef(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const

Class QStringRef:

begin() const
cbegin() const
cend() const
end() const
split(QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const
split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const

Class QStringList:

operator<<(const QList<QString> &other)
operator=(QList<QString> &&other)
operator=(const QList<QString> &other)

Class QVector:

removeAll(const T &t)
removeOne(const T &t)

Class QSysInfo:


Class QOpenGLContext:

nativeHandle() const
setNativeHandle(const QVariant &handle)

Class QOpenGLTexture:

depthStencilMode() const
setDepthStencilMode(QOpenGLTexture::DepthStencilMode mode)
target() const

Class QSurfaceFormat:

defaultFormat()
setDefaultFormat(const QSurfaceFormat &format)

Class QPlatformDrag:

virtual ownsDragObject() const

Class QPlatformWindow:

screenForGeometry(const QRect &newGeometry) const

Class QImageReader:

subType() const
supportedSubTypes() const

Class QImageWriter:

setSubType(const QByteArray &type)
subType() const
supportedSubTypes() const

Class QAbstractVideoBuffer:

mapPlanes(QAbstractVideoBuffer::MapMode mode, int *numBytes, int [4] bytesPerLine, uchar *[4] data)

Class QVideoFrame:

bits(int plane)
bits(int plane) const
bytesPerLine(int plane) const
planeCount() const

Class QSslCertificate:

importPkcs12(QIODevice *device, QSslKey *key, QSslCertificate *certificate, QList<QSslCertificate> *caCertificates, const QByteArray &passPhrase)

Class QSslConfiguration:

sessionProtocol() const

Class QSslSocket:


Class QPrinterInfo:


Class QQuickWindow:

scheduleRenderJob(QRunnable *job, QQuickWindow::RenderStage stage)

Class QSGSimpleTextureNode:

ownsTexture() const
setOwnsTexture(bool owns)

Class QGraphicsSceneMouseEvent:

flags() const
source() const

Class QX11Info:

nextStartupId()
setNextStartupId(const QByteArray &id)

New Global Functions

qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &str)
qHash(const QSslError &key, uint seed)
qHashBits(const void *p, size_t len, uint seed)
qNextPowerOfTwo(quint64 value)
qNextPowerOfTwo(qint64 value)
qNextPowerOfTwo(quint32 value)
qNextPowerOfTwo(qint32 value)

New Macros

Q_LOGGING_CATEGORY(name, string, msgType)
qUtf8Printable(const QString &str)

New Enum Types

enum DepthStencilMode { DepthMode, StencilMode }
enum RenderStage { BeforeSynchronizingStage, AfterSynchronizingStage, BeforeRenderingStage, AfterRenderingStage, AfterSwapStage, NoStage }
enum UserInputResolutionOption { DefaultResolution, AssumeLocalFile }

New Typedefs

typedef const_iterator

New Properties

New QML Types

New QML Properties

New QML Methods

Additions to Other Qt 5 Releases