Qt 5.11 | New Classes and Functions in Qt 5.10

Qt 5.11.3 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 Typedefs
- New Properties
- New QML Types
- New QML Properties
- New QML Methods

### New Classes

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

B
  QBEInteger
  QBlitFramebuffer (Qt3DRender)

D
  QDiffuseSpecularMaterial (Qt3DExtras)

G
  QGeoPolygon

J
  QJoint (Qt3DCore)

K
  QKeyValueIterator

L
  QLEInteger
  QLineWidth (Qt3DRender)

N
  QNodeCommand (Qt3DCore)

P
  QPickLineEvent (Qt3DRender)
  QPickPointEvent (Qt3DRender)
  QProximityFilter (Qt3DRender)

R
  QRandomGenerator
  QRandomGenerator64

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

V
  QVulkanDeviceFunctions
  QVulkanFunctions
  QVulkanInstance
  QVulkanWindow
  QVulkanWindowRenderer

### New Member Functions

Class QCanBusFrame:

| hasLocalEcho() const
| setLocalEcho(bool echo)

Class QSqlError:

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

Class QSqlQueryModel:

virtual | roleNames() const override

Class QWebEngineDownloadItem:

| pause()
| resume()

Class QWebEnginePage:

| download(const QUrl &url, const QString &filename)

Class QAbstractItemView:

| isPersistentEditorOpen(const QModelIndex &index) const

Class QTableWidget:

| isPersistentEditorOpen(QTableWidgetItem *item) const

Class QTreeWidget:

| isPersistentEditorOpen(QTreeWidgetItem *item, int column) const

Class QLineEdit:

| selectionEnd() const
| selectionLength() const

Class QOpenGLWidget:

| setTextureFormat(GLenum texFormat)
| textureFormat() const

Class QUuid:

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

Class QDebug:

| operator<<(QStringView s)

Class QFileDevice:

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

Class QFileInfo:

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

Class QIODevice:

| skip(qint64 maxSize)

Class QMetaObject:

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

Class QProcess:

| startDetached(qint64 *pid)

Class QSettings:

| isAtomicSyncRequired() const
| setAtomicSyncRequired(bool enable)

Class QTextCodec:

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

Class QTextEncoder:

| fromUnicode(QStringView str)

Class QPolygon:

| intersects(const QPolygon &p) const

Class QPolygonF:

| intersects(const QPolygonF &p) const

Class QJsonArray:

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

Class QJsonDocument:

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

Class QJsonObject:

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

Class QJsonValue:

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

Class QAbstractFileEngine:

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

Class QByteArray:

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

Class QHash:

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

Class QLatin1String:

| back() const
| begin() const
| cbegin() const
| cend() const
| chop(int length)
| chopped(int length) const
| crbegin() const
| crend() const
| end() const
| front() const
| isEmpty() const
| isNull() const
| rbegin() const
| rend() const
| trimmed() const
| truncate(int length)

Class QLocale:

| formattedDataSize(qint64 bytes, int precision, QLocale::DataSizeFormats format)
| toDouble(QStringView s, bool *ok) const
| toFloat(QStringView s, bool *ok) const
| toInt(QStringView s, bool *ok) const
| toLongLong(QStringView s, bool *ok) const
| toShort(QStringView s, bool *ok) const
| toString(const QDate &date, QStringView format) const
| toString(const QDateTime &dateTime, QStringView format) const
| toString(const QTime &time, QStringView format) const
| toUInt(QStringView s, bool *ok) const
| toULongLong(QStringView s, bool *ok) const
| toUShort(QStringView s, bool *ok) const

Class QMap:

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

Class QRegularExpressionMatch:

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

Class QString:

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

Class QStringList:

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

Class QStringRef:

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

Class QThread:

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

Class QVarLengthArray:

| shrink_to_fit()

Class QVector:

| shrink_to_fit()

Class QVersionNumber:

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

Class QImage:

| sizeInBytes() const

Class QGuiApplication:

| screenAt(const QPoint &point)

Class QNativeGestureEvent:

| device() const

Class QColor:

| isValidColor(QStringView name)
| setNamedColor(QStringView name)

Class QListWidget:

| isPersistentEditorOpen(QListWidgetItem *item) const

Class QPdfWriter:

| pdfVersion() const
| setPdfVersion(QPagedPaintDevice::PdfVersion version)

Class QPlatformCursor:

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

Class QPlatformIntegration:

virtual | createPlatformVulkanInstance(QVulkanInstance *instance) const

Class QNetworkAccessManager:

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

Class QSurfaceFormat:

| colorSpace() const
| setColorSpace(QSurfaceFormat::ColorSpace colorSpace)

Class QTextOption:

| setTabStopDistance(qreal tabStopDistance)
| tabStopDistance() const

Class QWindow:

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

Class QQuickItem:

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

Class QHostInfo:

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

Class QGeoPath:

| size() const

Class QLocalServer:

| socketDescriptor() const

Class QGeoPolygon:

| size() const

Class QPrinter:

| pdfVersion() const
| setPdfVersion(QPagedPaintDevice::PdfVersion version)

Class QQmlEngine:

| retranslate()

Class QQuickWindow:

| setTextRenderType(QQuickWindow::TextRenderType renderType)
| textRenderType()

Class QAbstractOAuth2:

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

### New Functions in Namespaces

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

### New Global Functions

| operator!=(const QCursor &lhs, const QCursor &rhs)
| operator==(const QCursor &lhs, const QCursor &rhs)
| qHash(QStringView key, uint 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 | TextRenderType { QtTextRendering, NativeTextRendering }
enum | Flag { NoDebugOutputRedirect }

### New Typedefs

typedef | const_key_value_iterator
typedef | key_value_iterator
typedef | const_iterator
typedef | const_reverse_iterator
typedef | difference_type
typedef | iterator
typedef | reference
typedef | reverse_iterator
typedef | size_type
typedef | 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
typedef | 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
  LineWidth
  LinearGradient

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()
| removeMapItemView()
| setBearing()
| setPath()
| polygon()
| polygon()
| shapeToPolygon()
| keySequence()

## 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