New Classes and Functions in Qt 5.12
This page contains a comprehensive list of all new classes and functions introduced in Qt 5.12. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.
New Classes
New Member Functions
Class QBluetoothDeviceInfo:
Class QByteArray:
| int | compare(const char *c, Qt::CaseSensitivity cs) const |
| int | compare(const QByteArray &a, Qt::CaseSensitivity cs) const |
| bool | isLower() const |
| bool | isUpper() const |
Class QStringView:
| int | compare(QStringView other, Qt::CaseSensitivity cs) const |
Class QString:
Class QStringList:
| bool | contains(QStringView str, Qt::CaseSensitivity cs) const |
Class QExplicitlySharedDataPointer:
Class QTextStream:
Class QRegularExpression:
Class QCryptographicHash:
| int | hashLength(QCryptographicHash::Algorithm method) |
Class QMetaEnum:
Class QSortFilterProxyModel:
Class QTimer:
| QMetaObject::Connection | callOnTimeout(Functor slot, Qt::ConnectionType connectionType) |
| QMetaObject::Connection | callOnTimeout(const QObject *context, Functor slot, Qt::ConnectionType connectionType) |
| QMetaObject::Connection | callOnTimeout(const QObject *receiver, MemberFunction *slot, Qt::ConnectionType connectionType) |
Class QMetaEnumBuilder:
Class QDBusMessage:
Class QWindowSystemInterface:
Class QIcon:
Class QBitmap:
| QBitmap | fromImage(QImage &&image, Qt::ImageConversionFlags flags) |
Class QImageWriter:
Class QImageReader:
Class QTextBlockFormat:
Class QTextImageFormat:
Class QPalette:
Class QPainter:
| void | fillRect(int x, int y, int width, int height, QGradient::Preset preset) |
| void | fillRect(const QRect &rectangle, QGradient::Preset preset) |
| void | fillRect(const QRectF &rectangle, QGradient::Preset preset) |
Class QStandardItem:
Class QStandardItemModel:
Class QGeoRoute:
Class QGeoRouteSegment:
Class QGeoServiceProviderFactoryV3:
Class QSslCertificate:
Class QNearFieldManager:
Class QNearFieldTarget:
| void | reportError(QNearFieldTarget::Error error, const QNearFieldTarget::RequestId &id) |
Class QGeoPolygon:
| void | addHole(const QVariant &holePath) |
| void | addHole(const QList<QGeoCoordinate> &holePath) |
| const QVariantList | hole(int index) const |
| const QList<QGeoCoordinate> | holePath(int index) const |
| int | holesCount() const |
| void | removeHole(int index) |
Class QGeoPath:
Class QQmlEngine:
Class QJSValue:
Class QJSEngine:
Class QQmlComponent:
Class QQuickStyle:
Class QCanBusDevice:
Class QWebSocketServer:
Class QWebSocket:
Class QLayout:
| int | indexOf(QLayoutItem *layoutItem) const |
Class QSpinBox:
Class QLineEdit:
Class QDoubleSpinBox:
Class QWaylandSeat:
Class QWaylandCompositor:
Class QRemoteObjectHostBase:
Class QRemoteObjectNode:
New Functions in Namespaces
| QByteArray | deriveKeyPbkdf1(QCryptographicHash::Algorithm algorithm, const QByteArray &data, const QByteArray &salt, int iterations, quint64 dkLen) |
| QByteArray | deriveKeyPbkdf2(QCryptographicHash::Algorithm algorithm, const QByteArray &data, const QByteArray &salt, int iterations, quint64 dkLen) |
| QImage | imageFromHBITMAP(HBITMAP bitmap, QtWin::HBitmapFormat format) |
| HBITMAP | imageToHBITMAP(const QImage &image, QtWin::HBitmapFormat format) |
| char * | toString(const QCborError &c) |
| char * | toString(const std::tuple<Types...> &tuple) |
New Global Functions
| void | qFromBigEndian(const void *src, qsizetype count, void *dest) |
| void | qFromLittleEndian(const void *src, qsizetype count, void *dest) |
| void | qToBigEndian(const void *src, qsizetype count, void *dest) |
| void | qToBigEndian(const void *src, qsizetype count, void *dest) |
| void | qToLittleEndian(const void *src, qsizetype count, void *dest) |
| void | qToLittleEndian(const void *src, qsizetype count, void *dest) |
| int | qmlTypeId(const char *uri, int versionMajor, int versionMinor, const char *qmlName) |
New Macros
New Enum Types
| enum | Field { None, RSSI, ManufacturerData, All } |
| enum | Direction { Input, Output, AllDirections } |
| enum | HandshakeState { HandshakeNotStarted, HandshakeInProgress, PeerVerificationFailed, HandshakeComplete } |
| enum | QDtlsError { NoError, InvalidInputParameters, InvalidOperation, UnderlyingSocketError, ..., TlsNonFatalError } |
| enum | QDtlsError { NoError, InvalidInputParameters, InvalidOperation, UnderlyingSocketError, ..., TlsNonFatalError } |
| enum | Preset { WarmFlame, NightFade, SpringWarmth, JuicyPeach, ..., PerfectBlue } |
| enum | ErrorType { NoError, GenericError, EvalError, RangeError, ..., URIError } |
| enum | AdapterState { Offline, TurningOn, Online, TurningOff } |
New Typedefs
New Properties
New QML Types
New QML Properties
New QML Signals
New QML Methods
Additions to Other Qt 5 Releases