Qt 5.13 | New Classes and Functions in Qt 5.12

Qt 5.13.2 Reference Documentation

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

### New Classes

C
  ConstIterator (QCborMap)
  ConstIterator (QCborArray)
  QCborArray
  QCborError
  QCborMap
  QCborParserError
  QCborStreamReader
  QCborStreamWriter
  QCborValue

D
  QDtls
  QDtlsClientVerifier

G
  GeneratorParameters (QDtlsClientVerifier)

I
  Iterator (QCborMap)
  Iterator (QCborArray)

S
  QScopeGuard

### New Member Functions

Class QMetaEnumBuilder:

QByteArray | enumName() const
void | setEnumName(const QByteArray &alias)

Class QStringList:

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

Class QString:

int | compare(QStringView s, Qt::CaseSensitivity cs) const
bool | isLower() const
bool | isUpper() const

Class QExplicitlySharedDataPointer:

T * | take()

Class QTextStream:

QTextStream & | operator<<(QStringView string)

Class QRegularExpression:

QString | anchoredPattern(const QString &expression)
QString | wildcardToRegularExpression(const QString &pattern)

Class QCryptographicHash:

int | hashLength(QCryptographicHash::Algorithm method)

Class QMetaEnum:

const char * | enumName() const

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 QSortFilterProxyModel:

void | setFilterRegularExpression(const QString &pattern)

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 QDBusMessage:

bool | isInteractiveAuthorizationAllowed() const
void | setInteractiveAuthorizationAllowed(bool enable)

Class QWindowSystemInterface:

void | setPlatformFiltersEvents(bool enable)

Class QTextBlockFormat:

int | headingLevel() const
void | setHeadingLevel(int level)

Class QTextImageFormat:

int | quality() const
void | setQuality(int quality)

Class QPalette:

const QBrush & | placeholderText() const

Class QIcon:

QString | fallbackThemeName()
void | setFallbackThemeName(const QString &name)

Class QBitmap:

QBitmap | fromImage(QImage &&image, Qt::ImageConversionFlags flags)

Class QImageReader:

QList<QByteArray> | imageFormatsForMimeType(const QByteArray &mimeType)

Class QImageWriter:

QList<QByteArray> | imageFormatsForMimeType(const QByteArray &mimeType)

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:

void | clearData()

Class QStandardItemModel:

bool | clearItemData(const QModelIndex &index)

Class QSslCertificate:

QString | issuerDisplayName() const
QString | subjectDisplayName() const

Class QLineEdit:

void | inputRejected()

Class QLayout:

int | indexOf(QLayoutItem *layoutItem) const

Class QSpinBox:

void | setStepType(QAbstractSpinBox::StepType stepType)

Class QDoubleSpinBox:

void | setStepType(QAbstractSpinBox::StepType stepType)

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

### New Macros

| QT_TRANSLATE_N_NOOP(context, sourceText)
| QT_TRANSLATE_N_NOOP(context, sourceText)
| QT_TRANSLATE_N_NOOP3(context, sourceText, comment)
| QT_TRANSLATE_N_NOOP3(context, sourceText, comment)
| QT_TR_N_NOOP(sourceText)
| QT_TR_N_NOOP(sourceText)

### New Enum Types

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 }

### New Properties

- focusOnTouch : const
- itemAlignment : const
- filterRegularExpression : const
- canRedo : const

- canUndo : const
- clean : const
- redoText : const
- undoText : const

### New QML Types

T
  TableView

W
  WavefrontMesh

### New QML Properties

| defaultLogLevel
| orientation
| sortCaseSensitive
| synchronousDrag
| visibleArea

### New QML Signals

| finished()
| finished()

### New QML Methods

| action()
| coordToMercator()
| equals()
| mercatorToCoord()
| polygon()

## Additions to Other Qt 5 Releases

- What's New in Qt 5.11
- What's New in Qt 5.10
- 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