Qt 5.13 | New Classes and Functions in Qt 5.6

Qt 5.13.2 Reference Documentation

# 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
- New Global Functions
- New Macros
- New Enum Types
- New Typedefs
- New Properties
- New QML Types
- New QML Properties
- New QML Signals
- New QML Methods

### New Classes

K
  key_iterator (QMap)
  key_iterator (QHash)

O
  QOpenGLExtraFunctions

R
  QRgba64

V
  QVersionNumber

### New Member Functions

Class QStringRef:

void | truncate(int position)

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 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 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 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 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)
QVarLengthArray::reverse_iterator | rbegin()
QVarLengthArray::const_reverse_iterator | rbegin() const
QVarLengthArray::reverse_iterator | rend()
QVarLengthArray::const_reverse_iterator | rend() 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 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 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 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 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 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 QTextStream:

QTextStream & | operator<<(const QStringRef &string)

Class QSet:

QSet::const_reverse_iterator | crbegin() const
QSet::const_reverse_iterator | crend() const
bool | intersects(const QSet<T> &other) const
QSet::reverse_iterator | rbegin()
QSet::const_reverse_iterator | rbegin() const
QSet::reverse_iterator | rend()
QSet::const_reverse_iterator | rend() const

Class QDebug:

void | setVerbosity(int verbosityLevel)
int | verbosity() const

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

void | setOptionsAfterPositionalArgumentsMode(QCommandLineParser::OptionsAfterPositionalArgumentsMode parsingMode)

Class QDir:

QChar | listSeparator()

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

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

Class QPointer:

void | swap(QPointer<T> &other)

Class QProcess:

void | errorOccurred(QProcess::ProcessError error)

Class QSysInfo:

QString | machineHostName()

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

int | blockSize() const

Class QTemporaryDir:

QString | errorString() 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 QPointingDeviceUniqueId:

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

Class QFont:

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

Class QMatrix:

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

Class QTransform:

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

Class QPaintDevice:

qreal | devicePixelRatioF() const

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

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

Class QIcon:

bool | isMask() const
void | setIsMask(bool isMask)

Class QGuiApplication:

bool | isFallbackSessionManagementEnabled()
void | setFallbackSessionManagementEnabled(bool enabled)

Class QImageReader:

float | gamma() const
void | setGamma(float gamma)

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

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

Class QHostAddress:

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

Class QNetworkRequest:

int | maximumRedirectsAllowed() const
void | setMaximumRedirectsAllowed(int maxRedirectsAllowed)

Class QNetworkReply:

void | redirected(const QUrl &url)

Class QWindowsWindowFunctions:

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

Class QSizePolicy:

uint | qHash(QSizePolicy key, uint seed)

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 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, ..., CustomRole }
enum | OptionsAfterPositionalArgumentsMode { ParseAsOptions, ParseAsPositionalArguments }
enum | EnterKeyType { EnterKeyDefault, EnterKeyReturn, EnterKeyDone, EnterKeyGo, ..., EnterKeyPrevious }

### New Typedefs

typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator
typedef | const_reverse_iterator
typedef | reverse_iterator

### New Properties

- supportedSchemes : const
- showIsMaximized : const

### New QML Types

A
  AbstractPhysicalDevice

E
  EnterKey

L
  Light
  LogicalDevice

P
  Playlist
  PlaylistItem

Q
  QuaternionAnimation

T
  Transform

### New QML Properties

| audioRole
| audioRole
| audioRole
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| bottomPadding
| color
| font.styleName
| font.styleName
| font.styleName
| layer.textureMirroring
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| leftPadding
| nativeText
| padding
| padding
| padding
| padding
| padding
| padding
| padding
| playlist
| playlist
| playlist
| portableText
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| rightPadding
| textureMirroring
| topPadding
| topPadding
| topPadding
| topPadding
| topPadding
| topPadding
| topPadding
| visibleRegion

### New QML Signals

| editingFinished()

### New QML Methods

| append()
| clear()
| get()
| indexOf()
| insert()
| move()
| remove()
| supportedAudioRoles()
| supportedAudioRoles()
| supportedAudioRoles()

## Additions to Other Qt 5 Releases

- What's New in Qt 5.5
- What's New in Qt 5.4
- What's New in Qt 5.3
- What's New in Qt 5.2
- What's New in Qt 5.1
- What's New in Qt 5.0