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:

bool canEncode(s) const
QByteArray fromUnicode(str) const

Class QTextEncoder:

QByteArray fromUnicode(str)

Class QAbstractFileEngine:

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

Class QDebug:

QDebug &operator<<(s)

Class QFileDevice:

QDateTime fileTime(time) const
bool setFileTime(newDate, fileTime)

Class QFileInfo:

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

Class QIODevice:

qint64 skip(maxSize)

Class QProcess:

bool startDetached(pid)

Class QSettings:

bool isAtomicSyncRequired() const
void setAtomicSyncRequired(enable)

Class QJsonArray:

QJsonArray &operator=(other)
void swap(other)

Class QJsonDocument:

QJsonDocument &operator=(other)
const QJsonValue operator[](key) const
const QJsonValue operator[](key) const
const QJsonValue operator[](i) const
void swap(other)

Class QJsonObject:

QJsonObject &operator=(other)
void swap(other)

Class QJsonValue:

QJsonValue &operator=(other)
const QJsonValue operator[](key) const
const QJsonValue operator[](key) const
const QJsonValue operator[](i) const
void swap(other)

Class QMetaObject:

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

Class QImage:

qsizetype sizeInBytes() const

Class QNativeGestureEvent:

const QTouchDevice *device() const

Class QGuiApplication:

QScreen *screenAt(point)

Class QPlatformCursor:

virtual void clearOverrideCursor()
virtual void setOverrideCursor()

Class QPlatformIntegration:

virtual QPlatformVulkanInstance *createPlatformVulkanInstance(instance) const

Class QPlatformSystemTrayIcon:

void contextMenuRequested(globalPos, screen)

Class QSurfaceFormat:

ColorSpace colorSpace() const
void setColorSpace(colorSpace)

Class QWindow:

void setWindowStates(state)
Qt::WindowStates windowStates() const

Class QColor:

bool isValidColor(name)
void setNamedColor(name)

Class QPdfWriter:

PdfVersion pdfVersion() const
void setPdfVersion(version)

Class QPolygon:

bool intersects(p) const

Class QPolygonF:

bool intersects(p) const

Class QTextOption:

void setTabStopDistance(tabStopDistance)
qreal tabStopDistance() const

Class QNetworkAccessManager:


Class QHostInfo:

QHostInfo &operator=(other)
void swap(other)

Class QLocalServer:

qintptr socketDescriptor() const

Class QPrinter:

PdfVersion pdfVersion() const
void setPdfVersion(version)

Class QSqlError:

QSqlError &operator=(other)
void swap(other)

Class QSqlQueryModel:

QHash<int, QByteArray> roleNames() const override

Class QAbstractItemView:

bool isPersistentEditorOpen(index) const

Class QListWidget:

bool isPersistentEditorOpen(item) const

Class QTableWidget:

bool isPersistentEditorOpen(item) const

Class QTreeWidget:

bool isPersistentEditorOpen(item, column) const

Class QOpenGLWidget:

void setTextureFormat(texFormat)
GLenum textureFormat() const

Class QLineEdit:

int selectionEnd() const
int selectionLength() const

New Functions in Namespaces

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

New Global Functions

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

New Enum Types

enum FileTime { FileAccessTime, FileBirthTime, FileMetadataChangeTime, FileModificationTime }
enum PdfVersion { PdfVersion_1_4, PdfVersion_A1b }
enum Capability { OverrideCursor }
enum Flag { NoDebugOutputRedirect }

New Type Aliases

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