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

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

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

void activeChanged(bool active)

Class QAbstractTransition:


Class QByteArray:

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

Class QImageReader:

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

Class QImageWriter:

void setSubType(const QByteArray &type)
QByteArray subType() const
QList<QByteArray> supportedSubTypes() 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:

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

Class QPlatformDrag:

virtual bool ownsDragObject() const

Class QPlatformWindow:

QPlatformScreen *screenForGeometry(const QRect &newGeometry) const

Class QSslCertificate:

bool importPkcs12(QIODevice *device, QSslKey *key, QSslCertificate *certificate, QList<QSslCertificate> *caCertificates, const QByteArray &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=(const QXmlSchema &other)

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)
uint qHash(const QSslCertificate &key, uint seed)
quint64 qNextPowerOfTwo(quint64 value)
quint64 qNextPowerOfTwo(qint64 value)
quint32 qNextPowerOfTwo(quint32 value)
quint32 qNextPowerOfTwo(qint32 value)

New Enum Types

enum DepthStencilMode { DepthMode, StencilMode }

New Properties

Additions to Other Qt 5 Releases