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


Class QDebug:

setVerbosity(verbosityLevel)
verbosity() const

Class QDir:


Class QProcess:

errorOccurred(error)

Class QStorageInfo:

blockSize() const

Class QTemporaryDir:

errorString() const

Class QTextStream:

operator<<(string)

Class QItemSelectionRange:

swap(other)

Class QPointer:

swap(other)

Class QHistoryState:


Class QByteArray:

crbegin() const
crend() const
rbegin()
rbegin() const
rend()
rend() const

Class QCommandLineParser:


Class QHash:

keyBegin() const
keyEnd() const

Class QLinkedList:

crbegin() const
crend() const
rbegin()
rbegin() const
rend()
rend() const

Class QList:

constFirst() const
constLast() const
crbegin() const
crend() const
rbegin()
rbegin() const
rend()
rend() const

Class QLocale:

swap(other)

Class QMap:

equal_range(key) const
keyBegin() const
keyEnd() const

Class QSet:

crbegin() const
crend() const
intersects(other) const
rbegin()
rbegin() const
rend()
rend() const

Class QString:

crbegin() const
crend() const
rbegin()
rbegin() const
rend()
rend() const

Class QStringRef:

truncate(position)

Class QVarLengthArray:

crbegin() const
crend() const
rbegin()
rbegin() const
rend()
rend() const

Class QVector:

append(value)
constFirst() const
constLast() const
crbegin() const
crend() const
move(from, to)
push_back(value)
rbegin()
rbegin() const
rend()
rend() const

Class QXmlStreamStringRef:

swap(other)

Class QDBusMessage:

createTargetedSignal(service, path, interface, name)

Class QIcon:

isMask() const
setIsMask(isMask)

Class QImage:

pixelColor(position) const
pixelColor(x, y) const
setPixelColor(position, color)
setPixelColor(x, y, color)

Class QImageReader:

gamma() const
setGamma(gamma)

Class QStandardItem:

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

Class QGuiApplication:


Class QOpenGLFramebufferObject:

addColorAttachment(size, internalFormat)
addColorAttachment(width, height, internalFormat)
sizes() const
takeTexture(colorAttachmentIndex)
textures() const
toImage(flipped, colorAttachmentIndex) const

Class QColor:

fromRgba64(rgba64)
fromRgba64(r, g, b, a)
rgba64() const
setRgba64(rgba)

Class QPaintDevice:


Class QTextLayout:

clearFormats()
formats() const
setFormats(formats)

Class QNetworkReply:

redirected(url)

Class QNetworkRequest:


Class QHostAddress:

isMulticast() const

Class QWindowsWindowFunctions:


Class QDesktopWidget:


Class QMainWindow:

resizeDocks(docks, sizes, orientation)

Class QMenu:

addAction(icon, text, functor, shortcut)
addAction(icon, text, context, functor, shortcut)
addAction(icon, text, receiver, method, shortcut)
addAction(text, functor, shortcut)
addAction(text, context, functor, shortcut)
addAction(text, receiver, method, shortcut)

Class QToolBar:

addAction(icon, text, functor)
addAction(icon, text, context, functor)
addAction(icon, text, receiver, method)
addAction(text, functor)
addAction(text, context, functor)
addAction(text, receiver, method)

New Global Functions

operator<(lhs, rhs)
operator<(lhs, rhs)
operator<(lhs, rhs)
operator<=(lhs, rhs)
operator<=(lhs, rhs)
operator<=(lhs, rhs)
operator>(lhs, rhs)
operator>(lhs, rhs)
operator>(lhs, rhs)
operator>=(lhs, rhs)
operator>=(lhs, rhs)
operator>=(lhs, rhs)
qAlpha(rgba64)
qBlue(rgba64)
qCountLeadingZeroBits(v)
qCountLeadingZeroBits(v)
qCountLeadingZeroBits(v)
qCountLeadingZeroBits(v)
qCountTrailingZeroBits(v)
qCountTrailingZeroBits(v)
qCountTrailingZeroBits(v)
qCountTrailingZeroBits(v)
qGlobalQHashSeed()
qGreen(rgba64)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qPremultiply(rgba64)
qRed(rgba64)
qRgba64(c)
qRgba64(r, g, b, a)
qSetGlobalQHashSeed(newSeed)
qUnpremultiply(rgba64)

New Macros

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

New Enum Types

enum OptionsAfterPositionalArgumentsMode { ParseAsOptions, ParseAsPositionalArguments }
enum EnterKeyType { EnterKeyDefault, EnterKeyReturn, EnterKeyDone, EnterKeyGo, ..., EnterKeyPrevious }

New Typedefs

New Properties

Additions to Other Qt 5 Releases