- Qt 5.15
- New Classes and Functions in Qt 5.10
- Qt 5.15.12 Reference Documentation

# 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
- New Functions in Namespaces
- New Global Functions
- New Enum Types
- New Type Aliases
- New Properties
- New QML Types
- New QML Properties
- New QML Methods

### New Classes

A
  QAbstractCameraController (Qt3DExtras)
  QAbstractSkeleton (Qt3DCore)
  QArmature (Qt3DCore)

B
  QBEInteger
  QBlitFramebuffer (Qt3DRender)

D
  QDiffuseSpecularMaterial (Qt3DExtras)

G
  QGeoPolygon

J
  QJoint (Qt3DCore)

K
  QKeyValueIterator

L
  QLEInteger
  QLineWidth (Qt3DRender)

N
  QNodeCommand (Qt3DCore)

P
  QPdfDocument
  QPdfDocumentRenderOptions
  QPdfPageNavigation
  QPickLineEvent (Qt3DRender)
  QPickPointEvent (Qt3DRender)
  QProximityFilter (Qt3DRender)

R
  QRandomGenerator
  QRandomGenerator64

S
  QSemaphoreReleaser
  QShaderProgramBuilder (Qt3DRender)
  QSkeleton (Qt3DCore)
  QSkeletonLoader (Qt3DCore)
  QStringView

V
  QVulkanDeviceFunctions
  QVulkanFunctions
  QVulkanInstance
  QVulkanWindow
  QVulkanWindowRenderer

### New Member Functions

Class QQuickWindow:

void | setTextRenderType(TextRenderType renderType)
TextRenderType | textRenderType()

Class QCanBusFrame:

bool | hasLocalEcho() const
void | setLocalEcho(bool echo)

Class QSqlError:

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

Class QSqlQueryModel:

virtual QHash<int, QByteArray> | roleNames() const override

Class QAbstractItemView:

bool | isPersistentEditorOpen(const QModelIndex &index) const

Class QLineEdit:

int | selectionEnd() const
int | selectionLength() const

Class QListWidget:

bool | isPersistentEditorOpen(QListWidgetItem *item) const

Class QOpenGLWidget:

void | setTextureFormat(GLenum texFormat)
GLenum | textureFormat() const

Class QTableWidget:

bool | isPersistentEditorOpen(QTableWidgetItem *item) const

Class QTreeWidget:

bool | isPersistentEditorOpen(QTreeWidgetItem *item, int column) const

Class QAbstractFileEngine:

virtual bool | cloneTo(QAbstractFileEngine *target)
virtual bool | setFileTime(const QDateTime &newDate, FileTime time)

Class QByteArray:

char | back() const
QByteRef | back()
QByteArray | chopped(int len) const
char | front() const
QByteRef | front()
void | shrink_to_fit()

Class FromBase64Result:

uint | qHash(QStringView key, uint seed)

Class QDebug:

QDebug & | operator<<(QStringView s)

Class QFileDevice:

QDateTime | fileTime(QFileDevice::FileTime time) const
bool | setFileTime(const QDateTime &newDate, QFileDevice::FileTime fileTime)

Class QFileInfo:

QDateTime | birthTime() const
QDateTime | fileTime(QFile::FileTime time) const
QDateTime | metadataChangeTime() const

Class QHash:

const_key_value_iterator | constKeyValueBegin() const
const_key_value_iterator | constKeyValueEnd() const
key_value_iterator | keyValueBegin()
const_key_value_iterator | keyValueBegin() const
key_value_iterator | keyValueEnd()
const_key_value_iterator | keyValueEnd() const

Class QIODevice:

qint64 | skip(qint64 maxSize)

Class QJsonArray:

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

Class QJsonDocument:

QJsonDocument & | operator=(QJsonDocument &&other)
const QJsonValue | operator[](const QString &key) const
const QJsonValue | operator[](QLatin1String key) const
const QJsonValue | operator[](int i) const
void | swap(QJsonDocument &other)

Class QJsonObject:

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

Class QJsonValue:

QJsonValue & | operator=(QJsonValue &&other)
const QJsonValue | operator[](const QString &key) const
const QJsonValue | operator[](QLatin1String key) const
const QJsonValue | operator[](int i) const
void | swap(QJsonValue &other)

Class QLatin1String:

QLatin1Char | back() const
const_iterator | begin() const
const_iterator | cbegin() const
const_iterator | cend() const
void | chop(int length)
QLatin1String | chopped(int length) const
const_reverse_iterator | crbegin() const
const_reverse_iterator | crend() const
const_iterator | end() const
QLatin1Char | front() const
bool | isEmpty() const
bool | isNull() const
const_reverse_iterator | rbegin() const
const_reverse_iterator | rend() const
QLatin1String | trimmed() const
void | truncate(int length)

Class QLocale:

QString | formattedDataSize(qint64 bytes, int precision, DataSizeFormats format) const
double | toDouble(QStringView s, bool *ok) const
float | toFloat(QStringView s, bool *ok) const
int | toInt(QStringView s, bool *ok) const
qlonglong | toLongLong(QStringView s, bool *ok) const
short | toShort(QStringView s, bool *ok) const
QString | toString(const QDate &date, QStringView format) const
QString | toString(const QDateTime &dateTime, QStringView format) const
uint | toUInt(QStringView s, bool *ok) const
qulonglong | toULongLong(QStringView s, bool *ok) const
ushort | toUShort(QStringView s, bool *ok) const

Class QMap:

const_key_value_iterator | constKeyValueBegin() const
const_key_value_iterator | constKeyValueEnd() const
key_value_iterator | keyValueBegin()
const_key_value_iterator | keyValueBegin() const
key_value_iterator | keyValueEnd()
const_key_value_iterator | keyValueEnd() const

Class QMetaObject:

bool | invokeMethod(QObject *context, Functor function, Qt::ConnectionType type, FunctorReturnType *ret)
bool | invokeMethod(QObject *context, Functor function, FunctorReturnType *ret)

Class QOperatingSystemVersion:

OSType | currentType()

Class QProcess:

bool | startDetached(qint64 *pid)

Class QRegularExpressionMatch:

QString | captured(QStringView name) const
int | capturedEnd(QStringView name) const
int | capturedLength(QStringView name) const
QStringRef | capturedRef(QStringView name) const
int | capturedStart(QStringView name) const
QStringView | capturedView(int nth) const
QStringView | capturedView(QStringView name) const

Class QSettings:

bool | isAtomicSyncRequired() const
void | setAtomicSyncRequired(bool enable)

Class QString:

QString | arg(QStringView a, int fieldWidth, QChar fillChar) const
QString | arg(QLatin1String a, int fieldWidth, QChar fillChar) const
QChar | back() const
QCharRef | back()
QString | chopped(int len) const
bool | endsWith(QStringView str, Qt::CaseSensitivity cs) const
QChar | front() const
QCharRef | front()
void | shrink_to_fit()
bool | startsWith(QStringView str, Qt::CaseSensitivity cs) const

Class QStringList:

bool | contains(QLatin1String str, Qt::CaseSensitivity cs) const

Class QStringRef:

QChar | back() const
QStringRef | chopped(int len) const
bool | endsWith(QStringView str, Qt::CaseSensitivity cs) const
QChar | front() const
bool | startsWith(QStringView str, Qt::CaseSensitivity cs) const

Class QStringView:

uint | qHash(QStringView key, uint seed)

Class QTextCodec:

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

Class QTextEncoder:

QByteArray | fromUnicode(QStringView str)

Class QThread:

QThread * | create(Function &&f, Args &&... args)
QThread * | create(Function &&f)

Class QUuid:

QUuid | fromString(QStringView text)
QUuid | fromString(QLatin1String text)

Class QVarLengthArray:

void | shrink_to_fit()

Class QVector:

void | shrink_to_fit()

Class QVersionNumber:

QVersionNumber | fromString(QLatin1String string, int *suffixIndex)
QVersionNumber | fromString(QStringView string, int *suffixIndex)

Class QColor:

bool | isValidColor(QStringView name)
void | setNamedColor(QStringView name)

Class QCursor:

bool | operator!=(const QCursor &lhs, const QCursor &rhs)
bool | operator==(const QCursor &lhs, const QCursor &rhs)

Class QGuiApplication:

QScreen * | screenAt(const QPoint &point)

Class QImage:

qsizetype | sizeInBytes() const

Class QNativeGestureEvent:

const QTouchDevice * | device() const

Class QPdfWriter:

PdfVersion | pdfVersion() const
void | setPdfVersion(PdfVersion version)

Class QPlatformCursor:

virtual void | clearOverrideCursor()
virtual void | setOverrideCursor(const QCursor &)

Class QPlatformIntegration:

virtual QPlatformVulkanInstance * | createPlatformVulkanInstance(QVulkanInstance *instance) const

Class QPointingDeviceUniqueId:

bool | operator!=(const QCursor &lhs, const QCursor &rhs)
bool | operator==(const QCursor &lhs, const QCursor &rhs)

Class QPolygon:

bool | intersects(const QPolygon &p) const

Class QPolygonF:

bool | intersects(const QPolygonF &p) const

Class QRhiVertexInputBinding:

bool | operator!=(const QCursor &lhs, const QCursor &rhs)

Class QRhiViewport:

bool | operator==(const QCursor &lhs, const QCursor &rhs)

Class UniformBlock:

bool | operator==(const QCursor &lhs, const QCursor &rhs)

Class QSurfaceFormat:

ColorSpace | colorSpace() const
bool | operator!=(const QCursor &lhs, const QCursor &rhs)
bool | operator==(const QCursor &lhs, const QCursor &rhs)
void | setColorSpace(ColorSpace colorSpace)

Class QTextOption:

void | setTabStopDistance(qreal tabStopDistance)
qreal | tabStopDistance() const

Class QVector2D:

bool | operator!=(const QCursor &lhs, const QCursor &rhs)
bool | operator==(const QCursor &lhs, const QCursor &rhs)

Class QWindow:

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

Class QHostInfo:

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

Class QLocalServer:

qintptr | socketDescriptor() const

Class QNetworkAccessManager:

void | enableStrictTransportSecurityStore(bool enabled, const QString &storeDir)
bool | isStrictTransportSecurityStoreEnabled() const

Class QAbstractOAuth2:

virtual QNetworkReply * | post(const QUrl &url, const QByteArray &data)
virtual QNetworkReply * | post(const QUrl &url, QHttpMultiPart *multiPart)
virtual QNetworkReply * | put(const QUrl &url, const QByteArray &data)
virtual QNetworkReply * | put(const QUrl &url, QHttpMultiPart *multiPart)

Class QGeoPath:

int | size() const

Class QGeoPolygon:

int | size() const

Class QPrinter:

PdfVersion | pdfVersion() const
void | setPdfVersion(PdfVersion version)

Class QQmlEngine:

void | retranslate()

Class QQuickItem:

bool | acceptTouchEvents() const
void | setAcceptTouchEvents(bool enabled)
void | setSize(const QSizeF &size)
QSizeF | size() const

### New Functions in Namespaces

void | keySequence(QWidget *widget, const QKeySequence &keySequence)
void | keySequence(QWindow *window, const QKeySequence &keySequence)
bool | qWaitFor(Functor predicate, int timeout)

### New Global Functions

bool | operator!=(const QCursor &lhs, const QCursor &rhs)
bool | operator==(const QCursor &lhs, const QCursor &rhs)
uint | qHash(QStringView key, uint seed)

### New Enum Types

enum | FileTime { FileAccessTime, FileBirthTime, FileMetadataChangeTime, FileModificationTime }
enum | DataSizeFormat { DataSizeBase1000, DataSizeSIQuantifiers, DataSizeIecFormat, DataSizeTraditionalFormat, DataSizeSIFormat }
enum | Capability { OverrideCursor }
enum | TextRenderType { QtTextRendering, NativeTextRendering }
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
(alias) | qsizetype
typedef | const_key_value_iterator
typedef | key_value_iterator
(alias) | const_iterator
(alias) | const_reverse_iterator
(alias) | difference_type
(alias) | iterator
(alias) | reference
(alias) | reverse_iterator
(alias) | size_type
(alias) | value_type
typedef | const_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
(alias) | qsizetype
typedef | quint16_be
typedef | quint16_le
typedef | quint32_be
typedef | quint32_le
typedef | quint64_be
typedef | quint64_le

### New Properties

- shortcutVisibleInContextMenu : const
- doubleStep : const
- tabStopDistance : const
- recursiveFilteringEnabled : const

- showShortcutsInContextMenus : const
- tabStopDistance : const
- stackSize : const

### New QML Types

A
  AbstractSkeleton
  Action
  ActionGroup
  Armature

B
  BlitFramebuffer

C
  ConicalGradient

D
  DiffuseSpecularMaterial

J
  Joint

L
  LinearGradient
  LineWidth

M
  MenuBar
  MenuBarItem
  MultiPointHandler

O
  Overlay

P
  PointerDeviceHandler
  PointerHandler
  ProximityFilter

R
  RadialGradient

S
  ShaderProgramBuilder
  Shape
  ShapeGradient
  ShapePath
  Skeleton
  SkeletonLoader

### New QML Properties

| advance
| boundsMovement
| defaultSuffix
| font.kerning
| font.kerning
| font.kerning
| font.preferShaping
| font.preferShaping
| font.preferShaping
| layer.samples
| manufacturer
| model
| samples
| serialNumber
| supportedFocusPointModes
| tabStopDistance

### New QML Methods

| addMapItemView()
| alignCoordinateToPoint()
| keySequence()
| polygon()
| polygon()
| removeMapItemView()
| setBearing()
| setPath()
| shapeToPolygon()

## Additions to Other Qt 5 Releases

- What's New in Qt 5.9
- What's New in Qt 5.8
- What's New in Qt 5.7
- What's New in Qt 5.6
- 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