- Qt 5.5
- New Classes and Functions in Qt 5.5
- Qt 5.5.1 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

A
  QAbstractVideoFilter
  ArrayAllocatingPolicy (Qt3D)
  AssimpParser (Qt3D)

C
  QCameraViewfinderSettings
  QCameraViewfinderSettingsControl2

F
  FrameRateRange (QCamera)

G
  QGeoCodeReply
  QGeoCodingManager
  QGeoCodingManagerEngine
  QGeoManeuver
  QGeoRoute
  QGeoRouteReply
  QGeoRouteRequest
  QGeoRouteSegment
  QGeoRoutingManager
  QGeoRoutingManagerEngine
  QGeoServiceProvider
  QGeoServiceProviderFactory

L
  ListAllocatingPolicy (Qt3D)

O
  QOpenGLFunctions_4_4_Compatibility
  QOpenGLFunctions_4_4_Core
  QOpenGLFunctions_4_5_Compatibility
  QOpenGLFunctions_4_5_Core
  ObjectLevelLockingPolicy (Qt3D)

P
  QPlace
  QPlaceAttribute
  QPlaceCategory
  QPlaceContent
  QPlaceContentReply
  QPlaceContentRequest
  QPlaceDetailsReply
  QPlaceEditorial
  QPlaceIcon
  QPlaceIdReply
  QPlaceImage
  QPlaceManager
  QPlaceManagerEngine
  QPlaceMatchReply
  QPlaceMatchRequest
  QPlaceRatings
  QPlaceReply
  QPlaceResult
  QPlaceReview
  QPlaceSearchReply
  QPlaceSearchRequest
  QPlaceSearchResult
  QPlaceSearchSuggestionReply
  QPlaceSupplier
  QPlaceUser
  QPlatformGraphicsBuffer
  QPlatformSurfaceEvent

Q
  Q3DKeyEvent (Qt3D)
  Q3DMouseEvent (Qt3D)
  Q3DWheelEvent (Qt3D)
  QCameraLens (Qt3D)
  QChangeArbiter (Qt3D)
  QComponent (Qt3D)
  QEntity (Qt3D)
  QInputAspect (Qt3D)
  QKeyboardController (Qt3D)
  QKeyboardInput (Qt3D)
  QMouseController (Qt3D)
  QMouseInput (Qt3D)
  QNode (Qt3D)
  QResourceManager (Qt3D)

S
  QSslEllipticCurve
  QSslPreSharedKeyAuthenticator

V
  QVideoFilterRunnable

W
  QWebEngineDownloadItem
  QWebEngineProfile
  QWebEngineScript
  QWebEngineScriptCollection
  QWindowsWindowFunctions

### New Member Functions

Class QPlainTextEdit:

| createStandardContextMenu(const QPoint & position)

Class QFrame:

| initStyleOption(QStyleOptionFrame * option) const

Class QAbstractScrollArea:

| viewportMargins() const

Class QOpenGLWidget:

| setUpdateBehavior(UpdateBehavior updateBehavior)
| updateBehavior() const

Class QSpacerItem:

| sizePolicy() const

Class QGraphicsScene:

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

Class QSslConfiguration:

| ellipticCurves() const
| setEllipticCurves(const QVector<QSslEllipticCurve> & curves)
| supportedCiphers()
| supportedEllipticCurves()
| systemCaCertificates()

Class QWebHitTestResult:

| linkTitleString() const

Class QSGSimpleTextureNode:

| setSourceRect(const QRectF & r)
| setSourceRect(qreal x, qreal y, qreal w, qreal h)
| sourceRect() const

Class QWebEnginePage:

| profile() const
| setWebChannel(QWebChannel * channel)
| webChannel() const

Class QWebEngineProfile:

| downloadRequested(QWebEngineDownloadItem * download)

Class QGeoCircle:

| toString() const

Class QNetworkAccessManager:

| preSharedKeyAuthenticationRequired(QNetworkReply * reply, QSslPreSharedKeyAuthenticator * authenticator)

Class QNetworkReply:

| preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator * authenticator)

Class QHostAddress:

| setAddress(const quint8 * ip6Addr)

Class QImageReader:

| autoTransform() const
| setAutoTransform(bool enabled)
| transformation() const

Class QImageWriter:

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

Class QWheelEvent:

| source() const

Class QOpenGLContext:

| globalShareContext()
| supportsThreadedOpenGL()

Class QWindow:

| requestUpdate()

Class QMatrix4x4:

| isAffine() const

Class QQuaternion:

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

Class QVector2D:

| operator/=(const QVector2D & vector)

Class QVector3D:

| operator/=(const QVector3D & vector)
| project(const QMatrix4x4 & modelView, const QMatrix4x4 & projection, const QRect & viewport) const
| unproject(const QMatrix4x4 & modelView, const QMatrix4x4 & projection, const QRect & viewport) const

Class QVector4D:

| operator/=(const QVector4D & vector)

Class QPlatformIntegration:

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

Class QPlatformFontDatabase:

| weightFromInteger(int weight)

Class QQuickWidget:

| quickWindow() const

Class QOpenGLTexture:

| allocateStorage(PixelFormat pixelFormat, PixelType pixelType)
| comparisonFunction() const
| comparisonMode() const
| setComparisonMode(ComparisonMode mode)

Class QFontDatabase:

| isPrivateFamily(const QString & family) const

Class QTextDocument:

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

Class QGeoShape:

| center() const
| toString() const

Class QSslSocket:

| preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator * authenticator)

Class QCameraImageProcessing:

| colorFilter() const
| isColorFilterSupported(ColorFilter filter) const
| setColorFilter(ColorFilter filter)

Class QCamera:

| setViewfinderSettings(const QCameraViewfinderSettings & settings)
| supportedViewfinderFrameRateRanges(const QCameraViewfinderSettings & settings) const
| supportedViewfinderPixelFormats(const QCameraViewfinderSettings & settings) const
| supportedViewfinderResolutions(const QCameraViewfinderSettings & settings) const
| supportedViewfinderSettings(const QCameraViewfinderSettings & settings) const
| viewfinderSettings() const

Class QBluetoothDeviceInfo:

| deviceUuid() const
| setDeviceUuid(const QBluetoothUuid & uuid)

Class QBluetoothHostInfo:

| operator!=(const QBluetoothHostInfo & other) const
| operator==(const QBluetoothHostInfo & other) const

Class QLowEnergyController:

| remoteName() const

Class QLowEnergyService:

| characteristicRead(const QLowEnergyCharacteristic & characteristic, const QByteArray & value)
| descriptorRead(const QLowEnergyDescriptor & descriptor, const QByteArray & value)
| readCharacteristic(const QLowEnergyCharacteristic & characteristic)
| readDescriptor(const QLowEnergyDescriptor & descriptor)

Class QGeoRectangle:

| toString() const

Class QDBusConnection:

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

Class QMessageLogger:

| info() const
| info(CategoryFunction catFunc) const
| info(const QLoggingCategory & cat) const
| info(CategoryFunction catFunc, const char * msg, ...) const
| info(const QLoggingCategory & cat, const char * msg, ...) const

Class QLoggingCategory:

| isInfoEnabled() const

Class QTextStream:

| readLineInto(QString * line, qint64 maxlen)

Class QItemSelectionModel:

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

Class QJsonObject:

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

Class QMetaEnum:

| fromType()

Class QMetaMethod:

| invokeOnGadget(void * gadget, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9) const
| 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

Class QMetaProperty:

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

Class QMetaType:

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

Class QAssociativeIterable:

| find(const QVariant & key) const

Class QVariant:

| toPersistentModelIndex() const

Class QState:

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

Class QThread:

| loopLevel() const

Class QThreadPool:

| cancel(QRunnable * runnable)

Class QDateTime:

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

Class QPair:

| swap(QPair & other)

Class QRegularExpression:

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

Class QString:

| asprintf(const char * cformat, ...)
| fromStdU16String(const std::u16string & str)
| fromStdU32String(const std::u32string & str)
| indexOf(const QRegularExpression & re, int from, QRegularExpressionMatch * rmatch) const
| lastIndexOf(const QRegularExpression & re, int from, QRegularExpressionMatch * rmatch) const
| toStdU16String() const
| toStdU32String() const
| vasprintf(const char * cformat, va_list ap)

Class QTimeZone:

| systemTimeZone()
| utc()

Class QVarLengthArray:

| operator=(std::initializer_list<T> list)

Class QVector:

| append(const QVector<T> & value)

### New Functions in Namespaces

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

### New Global Functions

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

### New Macros

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

### New Enum Types

enum | ColorFilter { ColorFilterNone, ColorFilterGrayscale, ColorFilterNegative, ColorFilterSolarize, ..., ColorFilterVendor }
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

- center : const
- radius : const
- altitude : const
- isValid : const
- latitude : const
- longitude : const
- bottomLeft : const
- bottomRight : const
- center : const
- height : const
- topLeft : const

- topRight : const
- width : const
- isEmpty : const
- isValid : const
- type : const
- selectedIndexes : const
- devicePixelRatio : const
- breakEnabled : const
- singleClickActivation : const
- tabFocusBehavior : const

### New QML Types

C
  Camera
  CameraLens
  CircularGauge
  CircularGaugeStyle
  Component3D
  Configuration

D
  DelayButton
  DelayButtonStyle
  Dial
  DialStyle

E
  Entity
  EntityLoader

G
  Gauge
  GaugeStyle

I
  ItemSelectionModel

K
  KeyEvent
  KeyboardController
  KeyboardInput

M
  MatrixTransform

N
  Node
  NodeInstantiator

P
  PieMenu
  PieMenuStyle

S
  Shortcut
  StatusIndicator
  StatusIndicatorStyle

T
  ToggleButton
  ToggleButtonStyle
  Transform
  TreeView
  TreeViewStyle
  Tumbler
  TumblerColumn
  TumblerStyle

### New QML Properties

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

### New QML Signals

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

### New QML Methods

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

## Additions to Other Qt 5 Releases

- 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