New Classes and Functions in Qt 5.6

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.6. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

New Classes

New Member Functions

Class QBluetoothSocket:

QBluetooth::SecurityFlags preferredSecurityFlags() const
void setPreferredSecurityFlags(QBluetooth::SecurityFlags flags)

Class QByteArray:

QByteArray::const_reverse_iterator crbegin() const
QByteArray::const_reverse_iterator crend() const
QByteArray::reverse_iterator rbegin()
QByteArray::const_reverse_iterator rbegin() const
QByteArray::reverse_iterator rend()
QByteArray::const_reverse_iterator rend() const

Class FromBase64Result:

uint qHash(const QVector<T> &key, uint seed)
uint qHash(const QList<T> &key, uint seed)
uint qHash(const QRegExp &key, uint seed)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QChar:

bool operator<(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<(const QList<T> &lhs, const QList<T> &rhs)
bool operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<=(const QList<T> &lhs, const QList<T> &rhs)
bool operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>(const QList<T> &lhs, const QList<T> &rhs)
bool operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>=(const QList<T> &lhs, const QList<T> &rhs)
bool operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)

Class QCommandLineParser:

void setOptionsAfterPositionalArgumentsMode(QCommandLineParser::OptionsAfterPositionalArgumentsMode parsingMode)

Class QDebug:

void setVerbosity(int verbosityLevel)
int verbosity() const

Class QDir:

QChar listSeparator()

Class QHash:

QHash::key_iterator keyBegin() const
QHash::key_iterator keyEnd() const
int qGlobalQHashSeed()
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)
void qSetGlobalQHashSeed(int newSeed)

Class QHistoryState:

QAbstractTransition *defaultTransition() const
void defaultTransitionChanged()
void setDefaultTransition(QAbstractTransition *transition)

Class QItemSelectionRange:

void swap(QItemSelectionRange &other)

Class QLinkedList:

QLinkedList::const_reverse_iterator crbegin() const
QLinkedList::const_reverse_iterator crend() const
QLinkedList::reverse_iterator rbegin()
QLinkedList::const_reverse_iterator rbegin() const
QLinkedList::reverse_iterator rend()
QLinkedList::const_reverse_iterator rend() const

Class QList:

const T &constFirst() const
const T &constLast() const
QList::const_reverse_iterator crbegin() const
QList::const_reverse_iterator crend() const
bool operator<(const QList<T> &lhs, const QList<T> &rhs)
bool operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<=(const QList<T> &lhs, const QList<T> &rhs)
bool operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>(const QList<T> &lhs, const QList<T> &rhs)
bool operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>=(const QList<T> &lhs, const QList<T> &rhs)
bool operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
uint qHash(const QList<T> &key, uint seed)
uint qHash(const QRegExp &key, uint seed)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)
QList::reverse_iterator rbegin()
QList::const_reverse_iterator rbegin() const
QList::reverse_iterator rend()
QList::const_reverse_iterator rend() const

Class QLocale:

uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)
void swap(QLocale &other)

Class QMap:

QPair<QMap::const_iterator, QMap::const_iterator> equal_range(const Key &key) const
QMap::key_iterator keyBegin() const
QMap::key_iterator keyEnd() const

Class QMimeType:

uint qHash(const QMimeType &key, uint seed)

Class QMultiHash:

uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QPair:

bool operator<(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<(const QList<T> &lhs, const QList<T> &rhs)
bool operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<=(const QList<T> &lhs, const QList<T> &rhs)
bool operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>(const QList<T> &lhs, const QList<T> &rhs)
bool operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>=(const QList<T> &lhs, const QList<T> &rhs)
bool operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)

Class QPersistentModelIndex:

uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QPointer:

void swap(QPointer<T> &other)

Class QProcess:

void errorOccurred(QProcess::ProcessError error)

Class QRegularExpression:

uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QRegExp:

uint qHash(const QRegExp &key, uint seed)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QSet:

bool intersects(const QSet<T> &other) const

Class QSharedPointer:

QSharedPointer<T> &operator=(QSharedPointer<X> &&other)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QStorageInfo:

int blockSize() const

Class QString:

QString::const_reverse_iterator crbegin() const
QString::const_reverse_iterator crend() const
QString::reverse_iterator rbegin()
QString::const_reverse_iterator rbegin() const
QString::reverse_iterator rend()
QString::const_reverse_iterator rend() const

Class QStringRef:

void truncate(int position)

Class QStringView:

uint qHash(const QVector<T> &key, uint seed)
uint qHash(const QList<T> &key, uint seed)
uint qHash(const QRegExp &key, uint seed)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QSysInfo:

QString machineHostName()

Class QTemporaryDir:

QString errorString() const

Class QTextStream:

QTextStream &operator<<(const QStringRef &string)

Class QUrlQuery:

uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QUuid:

uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)

Class QVarLengthArray:

QVarLengthArray::const_reverse_iterator crbegin() const
QVarLengthArray::const_reverse_iterator crend() const
bool operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)
QVarLengthArray::reverse_iterator rbegin()
QVarLengthArray::const_reverse_iterator rbegin() const
QVarLengthArray::reverse_iterator rend()
QVarLengthArray::const_reverse_iterator rend() const

Class QVector:

void append(T &&value)
const T &constFirst() const
const T &constLast() const
QVector::const_reverse_iterator crbegin() const
QVector::const_reverse_iterator crend() const
void move(int from, int to)
bool operator<(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<(const QList<T> &lhs, const QList<T> &rhs)
bool operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<=(const QList<T> &lhs, const QList<T> &rhs)
bool operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>(const QList<T> &lhs, const QList<T> &rhs)
bool operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>=(const QList<T> &lhs, const QList<T> &rhs)
bool operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
void push_back(T &&value)
uint qHash(const QVector<T> &key, uint seed)
uint qHash(const QList<T> &key, uint seed)
uint qHash(const QRegExp &key, uint seed)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QMimeType &key, uint seed)
QVector::reverse_iterator rbegin()
QVector::const_reverse_iterator rbegin() const
QVector::reverse_iterator rend()
QVector::const_reverse_iterator rend() const

Class QXmlStreamStringRef:

void swap(QXmlStreamStringRef &other)

Class QDBusMessage:

QDBusMessage createTargetedSignal(const QString &service, const QString &path, const QString &interface, const QString &name)

Class QColor:

QColor fromRgba64(ushort r, ushort g, ushort b, ushort a)
QColor fromRgba64(QRgba64 rgba64)
uint qAlpha(QRgba64 rgba64)
uint qBlue(QRgba64 rgba64)
uint qGreen(QRgba64 rgba64)
QRgba64 qPremultiply(QRgba64 rgba64)
uint qRed(QRgba64 rgba64)
QRgba64 qRgba64(quint16 r, quint16 g, quint16 b, quint16 a)
QRgba64 qRgba64(quint64 c)
QRgba64 qUnpremultiply(QRgba64 rgba64)
QRgba64 rgba64() const
void setRgba64(QRgba64 rgba)

Class QFont:

uint qHash(const QMatrix &key, uint seed)
uint qHash(const QTransform &key, uint seed)

Class QGuiApplication:


Class QIcon:

bool isMask() const
void setIsMask(bool isMask)

Class QImage:

QColor pixelColor(const QPoint &position) const
QColor pixelColor(int x, int y) const
void setPixelColor(const QPoint &position, const QColor &color)
void setPixelColor(int x, int y, const QColor &color)

Class QMatrix:

uint qHash(const QMatrix &key, uint seed)
uint qHash(const QTransform &key, uint seed)

Class QOpenGLFramebufferObject:

void addColorAttachment(const QSize &size, GLenum internalFormat)
void addColorAttachment(int width, int height, GLenum internalFormat)
QVector<QSize> sizes() const
GLuint takeTexture(int colorAttachmentIndex)
QVector<GLuint> textures() const
QImage toImage(bool flipped, int colorAttachmentIndex) const

Class QPaintDevice:

qreal devicePixelRatioF() const

Class QPointingDeviceUniqueId:

uint qHash(const QMatrix &key, uint seed)
uint qHash(const QTransform &key, uint seed)

Class QRhiVertexInputBinding:

uint qHash(const QMatrix &key, uint seed)
uint qHash(const QTransform &key, uint seed)

Class QShaderKey:

uint qHash(const QMatrix &key, uint seed)
uint qHash(const QTransform &key, uint seed)

Class QStandardItem:

bool isAutoTristate() const
bool isUserTristate() const
void setAutoTristate(bool tristate)
void setUserTristate(bool tristate)

Class QTextLayout:

void clearFormats()
QVector<QTextLayout::FormatRange> formats() const
void setFormats(const QVector<QTextLayout::FormatRange> &formats)

Class QTransform:

uint qHash(const QTransform &key, uint seed)

Class QMediaPlayer:

void audioRoleChanged(QAudio::Role role)
QList<QAudio::Role> supportedAudioRoles() const

Class QHostAddress:

bool isMulticast() const
void swap(QHostAddress &other)

Class QNetworkReply:

void redirected(const QUrl &url)

Class QNetworkRequest:

int maximumRedirectsAllowed() const
void setMaximumRedirectsAllowed(int maxRedirectsAllowed)

Class QWindowsWindowFunctions:

void setHasBorderInFullScreen(QWindow *window, bool border)
const QByteArray setHasBorderInFullScreenIdentifier()

Class QJSEngine:

void installExtensions(QJSEngine::Extensions extensions, const QJSValue &object)

Class QQmlDebuggingEnabler:

bool connectToLocalDebugger(const QString &socketFileName, QQmlDebuggingEnabler::StartMode mode)

Class QQuickTextureFactory:

QQuickTextureFactory *textureFactoryForImage(const QImage &image)

Class QWebSocket:

void open(const QNetworkRequest &request)
QNetworkRequest request() const

Class QMainWindow:

void resizeDocks(const QList<QDockWidget *> &docks, const QList<int> &sizes, Qt::Orientation orientation)

Class QMenu:

QAction *addAction(const QString &text, Functor functor, const QKeySequence &shortcut)
QAction *addAction(const QString &text, const QObject *context, Functor functor, const QKeySequence &shortcut)
QAction *addAction(const QIcon &icon, const QString &text, Functor functor, const QKeySequence &shortcut)
QAction *addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor, const QKeySequence &shortcut)

Class QSizePolicy:

uint qHash(QSizePolicy key, uint seed)

Class QToolBar:

QAction *addAction(const QString &text, Functor functor)
QAction *addAction(const QString &text, const QObject *context, Functor functor)
QAction *addAction(const QIcon &icon, const QString &text, Functor functor)
QAction *addAction(const QIcon &icon, const QString &text, const QObject *context, Functor functor)

New Global Functions

bool operator<(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<(const QList<T> &lhs, const QList<T> &rhs)
bool operator<(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator<=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator<=(const QList<T> &lhs, const QList<T> &rhs)
bool operator<=(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>(const QList<T> &lhs, const QList<T> &rhs)
bool operator>(const QVector<T> &lhs, const QVector<T> &rhs)
bool operator>=(const QVarLengthArray<T, Prealloc1> &lhs, const QVarLengthArray<T, Prealloc2> &rhs)
bool operator>=(const QList<T> &lhs, const QList<T> &rhs)
bool operator>=(const QVector<T> &lhs, const QVector<T> &rhs)
uint qAlpha(QRgba64 rgba64)
uint qBlue(QRgba64 rgba64)
uint qCountLeadingZeroBits(quint64 v)
uint qCountLeadingZeroBits(quint16 v)
uint qCountLeadingZeroBits(quint8 v)
uint qCountLeadingZeroBits(quint64 v)
uint qCountLeadingZeroBits(quint16 v)
uint qCountLeadingZeroBits(quint8 v)
uint qCountLeadingZeroBits(quint32 v)
uint qCountTrailingZeroBits(quint64 v)
uint qCountTrailingZeroBits(quint16 v)
uint qCountTrailingZeroBits(quint32 v)
uint qCountTrailingZeroBits(quint8 v)
uint qCountTrailingZeroBits(quint64 v)
uint qCountTrailingZeroBits(quint16 v)
uint qCountTrailingZeroBits(quint32 v)
uint qCountTrailingZeroBits(quint8 v)
int qGlobalQHashSeed()
uint qGreen(QRgba64 rgba64)
uint qHash(QSizePolicy key, uint seed)
uint qHash(const QTransform &key, uint seed)
uint qHash(const QMatrix &key, uint seed)
uint qHash(const QKeySequence &key, uint seed)
uint qHash(const QMimeType &key, uint seed)
uint qHash(const QVersionNumber &key, uint seed)
uint qHash(const QUrlQuery &key, uint seed)
uint qHash(const QRegularExpression &key, uint seed)
uint qHash(const QLocale &key, uint seed)
uint qHash(const QRegExp &key, uint seed)
uint qHash(const QList<T> &key, uint seed)
uint qHash(const QVector<T> &key, uint seed)
QRgba64 qPremultiply(QRgba64 rgba64)
uint qRed(QRgba64 rgba64)
QRgba64 qRgba64(quint64 c)
QRgba64 qRgba64(quint16 r, quint16 g, quint16 b, quint16 a)
void qSetGlobalQHashSeed(int newSeed)
QRgba64 qUnpremultiply(QRgba64 rgba64)

New Macros

QTRY_VERIFY2(condition, message)
QTRY_VERIFY2(condition, message)
QTRY_VERIFY2_WITH_TIMEOUT(condition, message, timeout)
QTRY_VERIFY2_WITH_TIMEOUT(condition, message, timeout)
QT_NO_PROCESS_COMBINED_ARGUMENT_START
QT_NO_PROCESS_COMBINED_ARGUMENT_START

New Enum Types

enum Role { UnknownRole, MusicRole, VideoRole, VoiceCommunicationRole, AlarmRole, …, CustomRole }
enum OptionsAfterPositionalArgumentsMode { ParseAsOptions, ParseAsPositionalArguments }
enum EnterKeyType { EnterKeyDefault, EnterKeyReturn, EnterKeyDone, EnterKeyGo, EnterKeySend, …, EnterKeyPrevious }

New Type Aliases

New Properties

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases

© 2024 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.