Qt 5.13 | New Classes and Functions in Qt 5.5

Qt 5.13.2 Reference Documentation

# New Classes and Functions in Qt 5.5

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.5. 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

O
  QOpenGLFunctions_4_4_Compatibility
  QOpenGLFunctions_4_4_Core
  QOpenGLFunctions_4_5_Compatibility
  QOpenGLFunctions_4_5_Core

P
  QPlatformSurfaceEvent

S
  QSslEllipticCurve
  QSslPreSharedKeyAuthenticator

W
  QWindowsWindowFunctions

### New Member Functions

Class QPair:

bool | operator<=(const QUuid &lhs, const QUuid &rhs)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)
void | swap(QPair<T1, T2> &other)

Class QVector:

void | append(const QVector<T> &value)
bool | operator<=(const QUuid &lhs, const QUuid &rhs)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)
uint | qHash(const QSet<T> &key, uint seed)

Class QList:

bool | operator<=(const QUuid &lhs, const QUuid &rhs)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)
uint | qHash(const QSet<T> &key, uint seed)

Class QRegExp:

uint | qHash(const QSet<T> &key, uint seed)

Class QVarLengthArray:

bool | operator<=(const QUuid &lhs, const QUuid &rhs)
QVarLengthArray<T, Prealloc> & | operator=(std::initializer_list<T> list)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)

Class QString:

QString | asprintf(const char *cformat, ...)
QString | fromStdU16String(const std::u16string &str)
QString | fromStdU32String(const std::u32string &str)
int | indexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const
QString & | insert(int position, const QStringRef &str)
QString & | insert(int position, const char *str)
QString & | insert(int position, const QByteArray &str)
int | lastIndexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const
QString & | prepend(const QChar *str, int len)
QString & | prepend(const QStringRef &str)
std::u16string | toStdU16String() const
std::u32string | toStdU32String() const
QString | vasprintf(const char *cformat, va_list ap)

Class QHash:

uint | qHash(const QSet<T> &key, uint seed)
uint | qHashRange(InputIterator first, InputIterator last, uint seed)
uint | qHashRangeCommutative(InputIterator first, InputIterator last, uint seed)

Class QMultiHash:

uint | qHash(const QSet<T> &key, uint seed)

Class QVariant:

QPersistentModelIndex | toPersistentModelIndex() const

Class QAssociativeIterable:

QAssociativeIterable::const_iterator | find(const QVariant &key) const

Class QPersistentModelIndex:

uint | qHash(const QSet<T> &key, uint seed)

Class QMetaType:

bool | equals(const void *lhs, const void *rhs, int typeId, int *result)
const QMetaObject * | metaObject() const
bool | registerEqualsComparator()
int | type(const ::QByteArray &typeName)

Class QDateTime:

QDateTime | fromCFDate(CFDateRef date)
QDateTime | fromNSDate(const NSDate *date)
CFDateRef | toCFDate() const
NSDate * | toNSDate() const

Class QLocale:

uint | qHash(const QSet<T> &key, uint seed)

Class QTextStream:

bool | readLineInto(QString *line, qint64 maxlen)

Class QDebug:

QDebug & | operator<<(char16_t t)
QDebug & | operator<<(char32_t t)

Class QRegularExpression:

QRegularExpressionMatchIterator | globalMatch(const QStringRef &subjectRef, int offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const
QRegularExpressionMatch | match(const QStringRef &subjectRef, int offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const

Class QUuid:

bool | operator<=(const QUuid &lhs, const QUuid &rhs)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)

Class QItemSelectionModel:

QAbstractItemModel * | model()
void | modelChanged(QAbstractItemModel *model)
void | setModel(QAbstractItemModel *model)

Class QJsonObject:

QJsonObject | fromVariantHash(const QVariantHash &hash)
QVariantHash | toVariantHash() const

Class QLoggingCategory:

bool | isInfoEnabled() const

Class QMetaMethod:

bool | invokeOnGadget(void *gadget, QGenericReturnArgument returnValue, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9) const
bool | invokeOnGadget(void *gadget, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9) const

Class QMetaEnum:

QMetaEnum | fromType()

Class QMetaProperty:

QVariant | readOnGadget(const void *gadget) const
bool | resetOnGadget(void *gadget) const
bool | writeOnGadget(void *gadget, const QVariant &value) const

Class QMessageLogger:

void | info(const char *msg, ...) const
void | info(const QLoggingCategory &cat, const char *msg, ...) const
void | info(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const
QDebug | info() const
QDebug | info(const QLoggingCategory &cat) const
QDebug | info(QMessageLogger::CategoryFunction catFunc) const

Class QChar:

bool | operator<=(const QUuid &lhs, const QUuid &rhs)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)

Class QStringView:

uint | qHash(const QSet<T> &key, uint seed)

Class QState:

QSignalTransition * | addTransition(const QObject *sender, PointerToMemberFunction signal, QAbstractState *target)

Class QThread:

int | loopLevel() const

Class QTimeZone:

QTimeZone | systemTimeZone()
QTimeZone | utc()

Class QDBusConnection:

bool | registerObject(const QString &path, const QString &interface, QObject *object, QDBusConnection::RegisterOptions options)

Class QVector2D:

QVector3D | operator*(const QQuaternion &quaternion, const QVector3D &vec)
const QVector2D | operator/(const QVector2D &vector, const QVector2D &divisor)
const QVector3D | operator/(const QVector3D &vector, const QVector3D &divisor)
const QVector4D | operator/(const QVector4D &vector, const QVector4D &divisor)
QVector2D & | operator/=(const QVector2D &vector)

Class QWheelEvent:

Qt::MouseEventSource | source() const

Class QPlatformIntegration:

virtual void | destroy()
virtual void | setApplicationIcon(const QIcon &icon) const

Class QPlatformFontDatabase:

QFont::Weight | weightFromInteger(int weight)

Class QPixelFormat:

QPixelFormat | qPixelFormatAlpha(uchar channelSize, QPixelFormat::TypeInterpretation typeInterpretation)

Class QFontDatabase:

bool | isPrivateFamily(const QString &family) const

Class QTextDocument:

QTextCursor | find(const QRegularExpression &expr, int from, QTextDocument::FindFlags options) const
QTextCursor | find(const QRegularExpression &expr, const QTextCursor &cursor, QTextDocument::FindFlags options) const

Class QWindow:

void | requestUpdate()

Class QGenericMatrix:

QVector3D | operator*(const QQuaternion &quaternion, const QVector3D &vec)
const QVector3D | operator/(const QVector3D &vector, const QVector3D &divisor)
const QVector4D | operator/(const QVector4D &vector, const QVector4D &divisor)

Class QImageReader:

bool | autoTransform() const
void | setAutoTransform(bool enabled)
QImageIOHandler::Transformations | transformation() const

Class QImageWriter:

bool | optimizedWrite() const
bool | progressiveScanWrite() const
void | setOptimizedWrite(bool optimize)
void | setProgressiveScanWrite(bool progressive)
void | setTransformation(QImageIOHandler::Transformations transform)
QImageIOHandler::Transformations | transformation() const

Class QVector3D:

QVector3D | operator*(const QQuaternion &quaternion, const QVector3D &vec)
const QVector3D | operator/(const QVector3D &vector, const QVector3D &divisor)
const QVector4D | operator/(const QVector4D &vector, const QVector4D &divisor)
QVector3D & | operator/=(const QVector3D &vector)
QVector3D | project(const QMatrix4x4 &modelView, const QMatrix4x4 &projection, const QRect &viewport) const
QVector3D | unproject(const QMatrix4x4 &modelView, const QMatrix4x4 &projection, const QRect &viewport) const

Class QVector4D:

QVector3D | operator*(const QQuaternion &quaternion, const QVector3D &vec)
const QVector4D | operator/(const QVector4D &vector, const QVector4D &divisor)
QVector4D & | operator/=(const QVector4D &vector)

Class QQuaternion:

QQuaternion | conjugated() const
float | dotProduct(const QQuaternion &q1, const QQuaternion &q2)
QQuaternion | fromAxes(const QVector3D &xAxis, const QVector3D &yAxis, const QVector3D &zAxis)
QQuaternion | fromDirection(const QVector3D &direction, const QVector3D &up)
QQuaternion | fromEulerAngles(float pitch, float yaw, float roll)
QQuaternion | fromEulerAngles(const QVector3D &eulerAngles)
QQuaternion | fromRotationMatrix(const QMatrix3x3 &rot3x3)
void | getAxes(QVector3D *xAxis, QVector3D *yAxis, QVector3D *zAxis) const
void | getAxisAndAngle(float *x, float *y, float *z, float *angle) const
void | getAxisAndAngle(QVector3D *axis, float *angle) const
void | getEulerAngles(float *pitch, float *yaw, float *roll) const
QQuaternion | inverted() const
QVector3D | operator*(const QQuaternion &quaternion, const QVector3D &vec)
QQuaternion | rotationTo(const QVector3D &from, const QVector3D &to)
QVector3D | toEulerAngles() const
QMatrix3x3 | toRotationMatrix() const

Class QMatrix4x4:

bool | isAffine() const

Class QOpenGLContext:

QOpenGLContext * | globalShareContext()
bool | supportsThreadedOpenGL()

Class QOpenGLTexture:

void | allocateStorage(QOpenGLTexture::PixelFormat pixelFormat, QOpenGLTexture::PixelType pixelType)
QOpenGLTexture::ComparisonFunction | comparisonFunction() const
QOpenGLTexture::ComparisonMode | comparisonMode() const
void | setComparisonFunction(QOpenGLTexture::ComparisonFunction function)
void | setComparisonMode(QOpenGLTexture::ComparisonMode mode)

Class QOcspResponse:

bool | operator!=(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
bool | operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs)

Class QSslDiffieHellmanParameters:

QDebug | operator<<(QDebug debug, QSslEllipticCurve curve)
bool | operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
uint | qHash(QSslEllipticCurve curve, uint seed)

Class QSslEllipticCurve:

bool | operator!=(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
QDebug | operator<<(QDebug debug, QSslEllipticCurve curve)
bool | operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs)

Class QSslSocket:

void | preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)

Class QHostAddress:

QDebug | operator<<(QDebug debug, QSslEllipticCurve curve)
uint | qHash(QSslEllipticCurve curve, uint seed)
void | setAddress(const quint8 *ip6Addr)

Class QSslConfiguration:

QVector<QSslEllipticCurve> | ellipticCurves() const
void | setEllipticCurves(const QVector<QSslEllipticCurve> &curves)
QList<QSslCipher> | supportedCiphers()
QVector<QSslEllipticCurve> | supportedEllipticCurves()
QList<QSslCertificate> | systemCaCertificates()

Class QSslPreSharedKeyAuthenticator:

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

Class QNetworkAccessManager:

void | preSharedKeyAuthenticationRequired(QNetworkReply *reply, QSslPreSharedKeyAuthenticator *authenticator)

Class QNetworkCacheMetaData:

QDebug | operator<<(QDebug debug, QSslEllipticCurve curve)

Class QNetworkReply:

void | preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)

Class QFrame:

void | initStyleOption(QStyleOptionFrame *option) const

Class QAbstractScrollArea:

QMargins | viewportMargins() const

Class QSpacerItem:

QSizePolicy | sizePolicy() const

Class QGraphicsScene:

void | setSelectionArea(const QPainterPath &path, Qt::ItemSelectionOperation selectionOperation, Qt::ItemSelectionMode mode, const QTransform &deviceTransform)

Class QOpenGLWidget:

void | setUpdateBehavior(QOpenGLWidget::UpdateBehavior updateBehavior)
QOpenGLWidget::UpdateBehavior | updateBehavior() const

Class QPlainTextEdit:

QMenu * | createStandardContextMenu(const QPoint &position)

### New Functions in Namespaces

char * | toString(QSizePolicy sp)
char * | toString(QSizePolicy::ControlType ct)
char * | toString(QSizePolicy::ControlTypes cts)
char * | toString(QSizePolicy::Policy p)

### New Global Functions

bool | operator!=(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
bool | operator!=(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs)
Q_DECL_IMPORT | operator!=(const int &a, const int &b)
Q_DECL_IMPORT | operator!=(const int &a, const int &b)
Q_DECL_IMPORT | operator!=(const int &a, const int &b)
Q_DECL_IMPORT | operator!=(const int &a, const int &b)
QVector3D | operator*(const QQuaternion &quaternion, const QVector3D &vec)
const QVector4D | operator/(const QVector4D &vector, const QVector4D &divisor)
const QVector3D | operator/(const QVector3D &vector, const QVector3D &divisor)
const QVector2D | operator/(const QVector2D &vector, const QVector2D &divisor)
QDebug | operator<<(QDebug debug, QSslEllipticCurve curve)
bool | operator<=(const QUuid &lhs, const QUuid &rhs)
bool | operator==(QSslEllipticCurve lhs, QSslEllipticCurve rhs)
bool | operator==(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs)
bool | operator>=(const QUuid &lhs, const QUuid &rhs)
int | qEnvironmentVariableIntValue(const char *varName, bool *ok)
int | qEnvironmentVariableIntValue(const char *varName, bool *ok)
uint | qHash(QSslEllipticCurve curve, uint seed)
uint | qHash(QSslEllipticCurve curve, uint seed)
uint | qHash(const QSet<T> &key, uint seed)
uint | qHashRange(InputIterator first, InputIterator last, uint seed)
uint | qHashRangeCommutative(InputIterator first, InputIterator last, uint seed)
QPixelFormat | qPixelFormatAlpha(uchar channelSize, QPixelFormat::TypeInterpretation typeInterpretation)
void | swap(QPair<T1, T2> &lhs, QPair<T1, T2> &rhs)

### New Macros

| Q_ENUM(...)
| Q_ENUM(...)
| Q_FLAG(...)
| Q_FLAG(...)
| qCInfo(category, const char *message, ...)
| qCInfo(category)
| qCInfo(category, const char *message, ...)
| qCInfo(category)
| qInfo(const char *message, ...)
| qInfo(const char *message, ...)

### New Enum Types

enum | Transformation { TransformationNone, TransformationMirror, TransformationFlip, TransformationRotate180, ..., TransformationRotate270 }
enum | ComparisonFunction { CompareLessEqual, CompareGreaterEqual, CompareLess, CompareGreater, ..., CompareNever }
enum | ComparisonMode { CompareRefToTexture, CompareNone }
enum | UpdateBehavior { NoPartialUpdate, PartialUpdate }
enum | TabFocusBehavior { NoTabFocus, TabFocusTextControls, TabFocusListControls, TabFocusAllControls }

### New Properties

- selectedIndexes : const
- devicePixelRatio : const
- singleClickActivation : const
- tabFocusBehavior : const

### New QML Types

A
  AbstractAxisInput
  AbstractTextureImage
  AxisSetting

B
  BlendEquation
  BlendEquationArguments

C
  Camera
  CameraLens
  CameraSelector
  CircularGauge
  CircularGaugeStyle
  ClipPlane
  Component3D

D
  DelayButton
  DelayButtonStyle
  Dial
  DialStyle

E
  Entity
  EntityLoader

F
  FilterKey
  FrameAction
  FrameGraphNode

G
  Gauge
  GaugeStyle
  GraphicsApiFilter

I
  ItemSelectionModel

K
  KeyboardDevice
  KeyboardHandler
  KeyEvent

L
  Layer
  LayerFilter

M
  Material
  MouseDevice
  MouseEvent
  MouseHandler

N
  Node
  NodeInstantiator
  NoDraw

P
  PieMenu
  PieMenuStyle
  PointLight

R
  RenderStateSet

S
  ShaderProgram
  Shortcut
  SkyboxEntity
  SpotLight
  StatusIndicator
  StatusIndicatorStyle

T
  TextureImage
  ToggleButton
  ToggleButtonStyle
  TreeView
  TreeViewStyle
  Tumbler
  TumblerColumn
  TumblerStyle

W
  WheelEvent

### New QML Properties

| autoTransform
| colorFilter
| direction
| height
| polling
| scrollGestureEnabled
| shortcuts
| styleHints
| width

### New QML Signals

| smartZoom()
| tagFound()
| tagRemoved()

### New QML Methods

| getDataAsArrayBuffer()
| hsva()
| shapeToCircle()
| shapeToRectangle()
| supportedViewfinderFrameRateRanges()
| supportedViewfinderResolutions()

## Additions to Other Qt 5 Releases

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