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

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

Class QBluetoothDeviceInfo:

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

Class QSysInfo:

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

Class QString:

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

Class QStringRef:

QVector<QStringRef> split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const
QVector<QStringRef> split(QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const

Class QDebug:

QDebug &resetFormat()

Class QRegularExpression:

void optimize() const

Class QUrl:

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

Class QAbstractProxyModel:

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

Class QCommandLineParser:

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

Class QSurfaceFormat:

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

Class QOpenGLContext:

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

Class QImageReader:

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

Class QPlatformDrag:

virtual bool ownsDragObject() const

Class QPlatformWindow:

QPlatformScreen *screenForGeometry(const QRect &newGeometry) const

Class QOpenGLTexture:

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

Class QImageWriter:

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

Class QAbstractVideoBuffer:

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

Class QVideoFrame:

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

Class QSslSocket:


Class QSslCertificate:

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

Class QSslConfiguration:

QSsl::SslProtocol sessionProtocol() const

Class QHostAddress:

uint qHash(const QSslError &key, uint seed)

Class QPrinterInfo:

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

Class QQuickWindow:

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

Class QSGSimpleTextureNode:

bool ownsTexture() const
void setOwnsTexture(bool owns)

Class QGraphicsSceneMouseEvent:

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

Class QX11Info:

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

Class QXmlSchema:

QXmlSchema &operator=(const QXmlSchema &other)

New Global Functions

QString qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &str)
QString qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &str)
uint qHash(const QSslError &key, uint seed)
uint qHash(const QSslError &key, uint seed)

New Macros

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

New Enum Types

enum CoreConfiguration { UnknownCoreConfiguration, LowEnergyCoreConfiguration, BaseRateCoreConfiguration, BaseRateAndLowEnergyCoreConfiguration }
enum CharacteristicType { DeviceName, Appearance, PeripheralPrivacyFlag, ReconnectionAddress, ..., BarometricPressureTrend }
enum DescriptorType { UnknownDescriptorType, CharacteristicExtendedProperties, CharacteristicUserDescription, ClientCharacteristicConfiguration, ..., EnvironmentalSensingTriggerSetting }
enum DepthStencilMode { DepthMode, StencilMode }
enum RenderStage { BeforeSynchronizingStage, AfterSynchronizingStage, BeforeRenderingStage, AfterRenderingStage, AfterSwapStage, NoStage }
enum UserInputResolutionOption { DefaultResolution, AssumeLocalFile }

New Typedefs

New Properties

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases