New Classes and Functions in Qt 5.10

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

New Classes

New Member Functions

Class QTextCodec:

canEncode(s) const
fromUnicode(str) const

Class QTextEncoder:


Class QAbstractFileEngine:

virtual cloneTo(target)
virtual setFileTime(newDate, time)

Class QDebug:


Class QFileDevice:

fileTime(time) const
setFileTime(newDate, fileTime)

Class QFileInfo:

birthTime() const
fileTime(time) const
metadataChangeTime() const

Class QIODevice:

skip(maxSize)

Class QProcess:


Class QSettings:


Class QJsonArray:

operator=(other)
swap(other)

Class QJsonDocument:

operator=(other)
operator[](key) const
operator[](key) const
operator[](i) const
swap(other)

Class QJsonObject:

operator=(other)
swap(other)

Class QJsonValue:

operator=(other)
operator[](key) const
operator[](key) const
operator[](i) const
swap(other)

Class QMetaObject:

invokeMethod(context, function, ret)
invokeMethod(context, function, type, ret)
invokeMethod(receiver, function, ret)
invokeMethod(receiver, function, type, ret)

Class QUuid:

fromString(text)
fromString(text)

Class QByteArray:

back()
back() const
chopped(len) const
front()
front() const
shrink_to_fit()

Class QHash:


Class QLocale:

formattedDataSize(bytes, precision, format)
toDouble(s, ok) const
toFloat(s, ok) const
toInt(s, ok) const
toLongLong(s, ok) const
toShort(s, ok) const
toString(date, format) const
toString(dateTime, format) const
toString(time, format) const
toUInt(s, ok) const
toULongLong(s, ok) const
toUShort(s, ok) const

Class QMap:


Class QRegularExpressionMatch:

captured(name) const
capturedEnd(name) const
capturedLength(name) const
capturedRef(name) const
capturedStart(name) const
capturedView(name) const
capturedView(nth) const

Class QLatin1String:

back() const
begin() const
cbegin() const
cend() const
chop(length)
chopped(length) const
crbegin() const
crend() const
end() const
endsWith(ch) const
endsWith(ch, cs) const
endsWith(l1, cs) const
endsWith(str, cs) const
front() const
isEmpty() const
isNull() const
rbegin() const
rend() const
startsWith(ch) const
startsWith(ch, cs) const
startsWith(l1, cs) const
startsWith(str, cs) const
trimmed() const
truncate(length)

Class QString:

arg(a, fieldWidth, fillChar) const
arg(a, fieldWidth, fillChar) const
back()
back() const
chopped(len) const
endsWith(str, cs) const
front()
front() const
shrink_to_fit()
startsWith(str, cs) const

Class QStringRef:

back() const
chopped(len) const
endsWith(str, cs) const
front() const
startsWith(str, cs) const

Class QStringList:

contains(str, cs) const

Class QVarLengthArray:


Class QVector:


Class QVersionNumber:

fromString(string, suffixIndex)
fromString(string, suffixIndex)

Class QImage:

sizeInBytes() const

Class QNativeGestureEvent:

device() const

Class QGuiApplication:

screenAt(point)

Class QPlatformCursor:


Class QPlatformIntegration:

virtual createPlatformVulkanInstance(instance) const

Class QPlatformSystemTrayIcon:

contextMenuRequested(globalPos, screen)

Class QSurfaceFormat:

colorSpace() const
setColorSpace(colorSpace)

Class QWindow:

setWindowStates(state)
windowStates() const

Class QColor:


Class QPdfWriter:

pdfVersion() const
setPdfVersion(version)

Class QPolygon:

intersects(p) const

Class QPolygonF:

intersects(p) const

Class QTextOption:

setTabStopDistance(tabStopDistance)
tabStopDistance() const

Class QNetworkAccessManager:


Class QHostInfo:

operator=(other)
swap(other)

Class QLocalServer:


Class QPrinter:

pdfVersion() const
setPdfVersion(version)

Class QSqlError:

operator=(other)
swap(other)

Class QSqlQueryModel:

roleNames() const override

Class QAbstractItemView:

isPersistentEditorOpen(index) const

Class QListWidget:


Class QTableWidget:


Class QTreeWidget:

isPersistentEditorOpen(item, column) const

Class QOpenGLWidget:

setTextureFormat(texFormat)
textureFormat() const

Class QLineEdit:

selectionEnd() const
selectionLength() const

New Functions in Namespaces

keySequence(window, keySequence)
keySequence(widget, keySequence)
qWaitFor(predicate, timeout)

New Global Functions

operator!=(lhs, rhs)
operator!=(lhs, rhs)
operator!=(lhs, rhs)
operator==(lhs, rhs)
operator==(lhs, rhs)
operator==(lhs, rhs)
qEnvironmentVariable(varName, defaultValue)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)

New Enum Types

enum FileTime { FileAccessTime, FileBirthTime, FileMetadataChangeTime, FileModificationTime }
enum DataSizeFormat { DataSizeBase1000, DataSizeSIQuantifiers, DataSizeIecFormat, DataSizeTraditionalFormat, DataSizeSIFormat }
enum PdfVersion { PdfVersion_1_4, PdfVersion_A1b }
enum Capability { OverrideCursor }
enum Flag { NoDebugOutputRedirect }

New Typedefs

typedef key_value_iterator
typedef key_value_iterator
typedef qint16_be
typedef qint16_le
typedef qint32_be
typedef qint32_le
typedef qint64_be
typedef qint64_le
typedef quint16_be
typedef quint16_le
typedef quint32_be
typedef quint32_le
typedef quint64_be
typedef quint64_le

New Properties

Additions to Other Qt 5 Releases