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 bool canDropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent) const
virtual bool dropMimeData(const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent)

Class QAbstractState:

void activeChanged(bool active)

Class QAbstractTransition:


Class QHistoryState:


Class QSignalTransition:


Class QState:


Class QStateMachine:

void runningChanged(bool running)

Class QCommandLineParser:

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

Class QRegularExpression:

void optimize() const

Class QWeakPointer:

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

Class QEnableSharedFromThis:

QSharedPointer<T> sharedFromThis()
QSharedPointer<const T> sharedFromThis() const

Class QStringRef:

const QChar * begin() const
const QChar * cbegin() const
const QChar * cend() const
const QChar * end() const
QVector<QStringRef> split(const QString & sep, QString::SplitBehavior behavior = QString::KeepEmptyParts, Qt::CaseSensitivity cs = Qt::CaseSensitive) const
QVector<QStringRef> split(QChar sep, QString::SplitBehavior behavior = QString::KeepEmptyParts, Qt::CaseSensitivity cs = Qt::CaseSensitive) const

Class QPrinterInfo:

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

Class QGuiApplication:

void paletteChanged(const QPalette & palette)
void screenRemoved(QScreen * screen)

Class QOpenGLContext:

QVariant nativeHandle() const
void setNativeHandle(const QVariant & handle)

Class QSurfaceFormat:

QSurfaceFormat defaultFormat()
void setDefaultFormat(const QSurfaceFormat & format)

Class QOpenGLTexture:

Target target() const

Class QSslCertificate:

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

Class QSslSocket:


Class QQuickWindow:

void scheduleRenderJob(QRunnable * job, RenderStage stage)

Class QJSEngine:

void installTranslatorFunctions(const QJSValue & object = QJSValue())

Class QGraphicsSceneMouseEvent:

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

Class QWinThumbnailToolBar:


Class QX11Info:

QByteArray nextStartupId()
void setNextStartupId(const QByteArray & id)

Class QXmlSchema:

QXmlSchema & operator=(const QXmlSchema & other)

Class QBluetoothDeviceInfo:

QBluetoothDeviceInfo::CoreConfigurations coreConfigurations() const
void setCoreConfigurations(QBluetoothDeviceInfo::CoreConfigurations coreConfigs)

Class QBluetoothTransferReply:

void error(QBluetoothTransferReply::TransferError errorType)

Class QBluetoothUuid:

QString characteristicToString(CharacteristicType uuid)
QString descriptorToString(DescriptorType uuid)
QString protocolToString(ProtocolUuid uuid)

New Functions in Namespaces

QFuture<T> run(QThreadPool * pool, Function function, ...)

New Global Functions

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

New Macros

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

New Enum Types

enum CoreConfiguration { UnknownCoreConfiguration, BaseRateCoreConfiguration, BaseRateAndLowEnergyCoreConfiguration, LowEnergyCoreConfiguration }
enum CharacteristicType { AlertCategoryID, AlertCategoryIDBitMask, AlertLevel, AlertNotificationControlPoint, ..., UnreadAlertStatus }
enum DescriptorType { CharacteristicExtendedProperties, CharacteristicUserDescription, ClientCharacteristicConfiguration, ServerCharacteristicConfiguration, ..., UnknownDescriptorType }

New Typedefs

New Properties

New QML Types

New QML Properties

New QML Signals

New QML Methods

findChild( parent, objectName)

Additions to Other Qt 5 Releases

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.