New Classes and Functions in Qt 5.13

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

New Namespaces

namespace Manufacturers
namespace Ets

New Classes

New Member Functions

Class QAxBase:

unsigned long classContext() const
void setClassContext(unsigned long classContext)

Class QAxSelect:

QAxSelect::SandboxingLevel sandboxingLevel() const

Class QAbstractTexture:

QVariant handle() const
Qt3DRender::QAbstractTexture::HandleType handleType() const

Class QObjectPicker:

void setPriority(int priority)

Class QBluetoothDeviceInfo:

void setServiceUuids(const QVector<QBluetoothUuid> &uuids)

Class QAbstractAxis:

bool labelsEditable() const
void labelsEditableChanged(bool editable)
void setLabelsEditable(bool editable)

Class QByteArrayList:

int indexOf(const char *needle, int from) const

Class QCollator:

int compare(QStringView s1, QStringView s2) const

Class QDebug:

QDebug &verbosity(int verbosityLevel)

Class QList:

void swapItemsAt(int i, int j)

Class QLocale:

QLocale collation() const
long toLong(const QString &s, bool *ok) const
long toLong(const QStringRef &s, bool *ok) const
long toLong(QStringView s, bool *ok) const
ulong toULong(const QString &s, bool *ok) const
ulong toULong(const QStringRef &s, bool *ok) const
ulong toULong(QStringView s, bool *ok) const

Class QMetaType:

int id() const

Class QMultiHash:

QList<Key> uniqueKeys() const
QMultiHash<K, V> &unite(const QMultiHash<K, V> &other)

Class QResource:

QResource::Compression compressionAlgorithm() const

Class QStringList:

int indexOf(QStringView str, int from) const
int indexOf(QLatin1String str, int from) const
int lastIndexOf(QStringView str, int from) const
int lastIndexOf(QLatin1String str, int from) const

Class QStringListModel:

virtual QMap<int, QVariant> itemData(const QModelIndex &index) const override
virtual bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override
virtual bool setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles) override

Class QFont:

QStringList families() const
void setFamilies(const QStringList &families)

Class QImage:

void convertTo(QImage::Format format, Qt::ImageConversionFlags flags)

Class QPainterPath:

int capacity() const
void clear()
void reserve(int size)

Class QTextCharFormat:

QVariant fontFamilies() const
QVariant fontStyleName() const
void setFontFamilies(const QStringList &families)
void setFontStyleName(const QString &styleName)

Class QHelpEngineCore:

QHelpFilterEngine *filterEngine() const
void setUsesFilterEngine(bool uses)
bool usesFilterEngine() const

Class QKnxNetIpEndpointConnection:

void connectToHostEncrypted(const QKnxNetIpHpai &controlEndpoint)
void connectToHostEncrypted(const QHostAddress &address, quint16 port)
QKnxNetIpSecureConfiguration secureConfiguration() const
QKnxByteArray serialNumber() const
void setSecureConfiguration(const QKnxNetIpSecureConfiguration &config)
void setSerialNumber(const QKnxByteArray &serialNumber)

Class QKnxServiceInfo:

bool operator!=(const QKnxServiceInfo &other) const
bool operator==(const QKnxServiceInfo &other) const

Class QGeoRoute:

QVariantMap extendedAttributes() const
void setExtendedAttributes(const QVariantMap &extendedAttributes)

Class QGeoRouteRequest:

QDateTime departureTime() const
void setDepartureTime(const QDateTime &departureTime)

Class QGeoServiceProvider:

QGeoServiceProvider::Error geocodingError() const
QString geocodingErrorString() const
QGeoServiceProvider::Error mappingError() const
QString mappingErrorString() const
QGeoServiceProvider::Error navigationError() const
QString navigationErrorString() const
QGeoServiceProvider::Error placesError() const
QString placesErrorString() const
QGeoServiceProvider::Error routingError() const
QString routingErrorString() const

Class QVideoFrame:

QAbstractVideoBuffer *buffer() const

Class QAbstractSocket:

QString protocolTag() const
void setProtocolTag(const QString &tag)

Class QHostAddress:

uint qHash(const QOcspResponse &response, uint seed)

Class QNetworkAccessManager:

void connectToHostEncrypted(const QString &hostName, quint16 port, const QSslConfiguration &sslConfiguration, const QString &peerName)

Class QNetworkRequest:

QString peerVerifyName() const
void setPeerVerifyName(const QString &peerName)

Class QOcspResponse:

QOcspCertificateStatus certificateStatus() const
bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
QOcspResponse &operator=(const QOcspResponse &other)
QOcspResponse &operator=(QOcspResponse &&other)
bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)
class QSslCertificate responder() const
QOcspRevocationReason revocationReason() const
QSslCertificate subject() const
void swap(QOcspResponse &other)

Class QSslConfiguration:

bool ocspStaplingEnabled() const
void setOcspStaplingEnabled(bool enabled)

Class QSslDiffieHellmanParameters:

uint qHash(const QOcspResponse &response, uint seed)

Class QSslPreSharedKeyAuthenticator:

bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)

Class QSslSocket:

QVector<QOcspResponse> ocspResponses() const

Class QAbstractOAuth:

void prepareRequest(QNetworkRequest *request, const QByteArray &verb, const QByteArray &body)

Class QOAuth1:

void setup(QNetworkRequest *request, const QVariantMap &signingParameters, const QByteArray &operationVerb)

Class QOAuth1Signature:

QByteArray customMethodString() const
void setCustomMethodString(const QByteArray &verb)

Class QOpcUaExtensionObject:

void setBinaryEncodedBody(const QByteArray &encodedBody, const QString &typeId)
void setXmlEncodedBody(const QByteArray &encodedBody, const QString &typeId)

Class QWindowsWindowFunctions:


Class QGeoLocation:

QVariantMap extendedAttributes() const
void setExtendedAttributes(const QVariantMap &data)

Class QPrinterInfo:

QPrinter::ColorMode defaultColorMode() const
QList<QPrinter::ColorMode> supportedColorModes() const

Class QModbusRtuSerialMaster:

void setTurnaroundDelay(int turnaroundDelay)
int turnaroundDelay() const

Class QModbusTcpServer:

void installConnectionObserver(QModbusTcpConnectionObserver *observer)
void modbusClientDisconnected(QTcpSocket *modbusClient)

Class QSqlDatabase:

QSqlDatabase cloneDatabase(const QString &other, const QString &connectionName)

Class QWaylandQuickItem:

QPointF mapFromSurface(const QPointF &point) const

Class QFileDialog:

void getOpenFileContent(const QString &nameFilter, const std::function<void (const QString &, const QByteArray &)> &fileOpenCompleted)

Class QListModel:

virtual bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) override

Class QPlainTextEdit:

bool find(const QRegularExpression &exp, QTextDocument::FindFlags options)

Class QTextEdit:

bool find(const QRegularExpression &exp, QTextDocument::FindFlags options)

Class QTreeView:

void expandRecursively(const QModelIndex &index, int depth)

New Functions in Namespaces

QString fromId(const QString &id, const QString &defaultValue)
QString fromId(int id, const QString &defaultValue)
bool isSecureUserId(QKnx::NetIp::SecureUserId userId)
QOpcUa::Types metaTypeToQOpcUaType(QMetaType::Type type)
bool qIsPolishScheduled(const QQuickItem *item)
bool qWaitForItemPolished(const QQuickItem *item, int timeout)
void startActivity(const QAndroidJniObject &intent, int receiverRequestCode, std::function<void (int, int, const QAndroidJniObject &)> callbackFunc)
void startActivity(const QAndroidIntent &intent, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver)

New Global Functions

bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)
uint qHash(const QOcspResponse &response, uint seed)
uint qHash(const QOcspResponse &response, uint seed)

New Macros

New Enum Types

enum SecureUserId { Reserved, Management, UserRole, Invalid }
enum SandboxingLevel { SandboxingNone, SandboxingProcess, SandboxingLowIntegrity }
enum VerbosityLevel { MinimumVerbosity, DefaultVerbosity, MaximumVerbosity }
enum class QOcspCertificateStatus { Good, Revoked, Unknown }
enum class QOcspCertificateStatus { Good, Revoked, Unknown }
enum class QOcspRevocationReason { None, Unspecified, KeyCompromise, CACompromise, AffiliationChanged, …, RemoveFromCRL }
enum class QOcspRevocationReason { None, Unspecified, KeyCompromise, CACompromise, AffiliationChanged, …, RemoveFromCRL }
enum Compression { NoCompression, ZlibCompression, ZstdCompression }

New Type Aliases

New Properties

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.