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

A
QAbstractVideoFilter
QAbstractAxisInput (Qt3DInput)
QAxisSetting (Qt3DInput)
QAbstractTexture (Qt3DRender)
QAbstractTextureImage (Qt3DRender)
B
QBlendEquationArguments (Qt3DRender)
C
QCameraViewfinderSettings
QCameraViewfinderSettingsControl2
QComponent (Qt3DCore)
QCamera (Qt3DRender)
QCameraLens (Qt3DRender)
QCameraSelector (Qt3DRender)
QClipPlane (Qt3DRender)
E
QEntity (Qt3DCore)
F
FrameRateRange (QCamera)
QFrameAction (Qt3DLogic)
QFilterKey (Qt3DRender)
QFrameGraphNode (Qt3DRender)
G
QGraphicsApiFilter (Qt3DRender)
I
QInputAspect (Qt3DInput)
QInputDeviceIntegration (Qt3DInput)
K
QKeyEvent (Qt3DInput)
QKeyboardDevice (Qt3DInput)
QKeyboardHandler (Qt3DInput)
L
QLayer (Qt3DRender)
QLayerFilter (Qt3DRender)
M
QMouseDevice (Qt3DInput)
QMouseEvent (Qt3DInput)
QMouseHandler (Qt3DInput)
QMaterial (Qt3DRender)
N
QNode (Qt3DCore)
QNoDraw (Qt3DRender)
O
QOpenGLFunctions_4_4_Compatibility
QOpenGLFunctions_4_4_Core
QOpenGLFunctions_4_5_Compatibility
QOpenGLFunctions_4_5_Core
P
QPlatformSurfaceEvent
QPointLight (Qt3DRender)
R
QRenderStateSet (Qt3DRender)
S
QSslEllipticCurve
QSslPreSharedKeyAuthenticator
QSkyboxEntity (Qt3DExtras)
QShaderData (Qt3DRender)
QShaderProgram (Qt3DRender)
QSpotLight (Qt3DRender)
T
QTexture1D (Qt3DRender)
QTexture1DArray (Qt3DRender)
QTexture2D (Qt3DRender)
QTexture2DArray (Qt3DRender)
QTexture2DMultisample (Qt3DRender)
QTexture2DMultisampleArray (Qt3DRender)
QTexture3D (Qt3DRender)
QTextureBuffer (Qt3DRender)
QTextureCubeMap (Qt3DRender)
QTextureCubeMapArray (Qt3DRender)
QTextureImage (Qt3DRender)
QTextureImageData (Qt3DRender)
QTextureRectangle (Qt3DRender)
QTextureWrapMode (Qt3DRender)
V
QVideoFilterRunnable
W
QWheelEvent (Qt3DInput)

New Member Functions

Class QLowEnergyService:

void readCharacteristic(const QLowEnergyCharacteristic &characteristic)
void readDescriptor(const QLowEnergyDescriptor &descriptor)

Class QLowEnergyController:

QString remoteName() const

Class QBluetoothHostInfo:

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

Class QBluetoothDeviceInfo:

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

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

QString asprintf(const char *cformat, ...)
int indexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const
int lastIndexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const

Class QMetaType:

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

Class QVariant:

QPersistentModelIndex toPersistentModelIndex() const

Class QAssociativeIterable:

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

Class QTextStream:

bool readLineInto(QString *line, qint64 maxlen)

Class QDateTime:

QDateTime fromCFDate(CFDateRef date)
QDateTime fromNSDate(const NSDate *date)
CFDateRef toCFDate() const
NSDate *toNSDate() 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

Class QMetaProperty:

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

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

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

Class QThread:

int loopLevel() const

Class QItemSelectionModel:

QAbstractItemModel *model()
void setModel(QAbstractItemModel *model)

Class QTimeZone:

QTimeZone systemTimeZone()
QTimeZone utc()

Class QDBusConnection:

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

Class QWindow:

void requestUpdate()

Class QOpenGLContext:

QOpenGLContext *globalShareContext()
bool supportsThreadedOpenGL()

Class QPlatformIntegration:

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

Class QQuaternion:

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 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 getEulerAngles(float *pitch, float *yaw, float *roll) const
QQuaternion rotationTo(const QVector3D &from, const QVector3D &to)
QMatrix3x3 toRotationMatrix() const

Class QImageReader:

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

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

QFont::Weight weightFromInteger(int weight)

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

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

QCameraImageProcessing::ColorFilter colorFilter() const
bool isColorFilterSupported(QCameraImageProcessing::ColorFilter filter) const
void setColorFilter(QCameraImageProcessing::ColorFilter filter)

Class QCameraViewfinderSettings:

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

Class QCamera:

void setViewfinderSettings(const QCameraViewfinderSettings &settings)
QList<QCamera::FrameRateRange> supportedViewfinderFrameRateRanges(const QCameraViewfinderSettings &settings) const
QList<QVideoFrame::PixelFormat> supportedViewfinderPixelFormats(const QCameraViewfinderSettings &settings) const
QList<QSize> supportedViewfinderResolutions(const QCameraViewfinderSettings &settings) const
QList<QCameraViewfinderSettings> supportedViewfinderSettings(const QCameraViewfinderSettings &settings) const
QCameraViewfinderSettings viewfinderSettings() const

Class QSslPreSharedKeyAuthenticator:

bool operator==(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs)

Class QSslConfiguration:

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

Class QSslEllipticCurve:

QDebug operator<<(QDebug debug, QSslEllipticCurve curve)

Class QHostAddress:

QDebug operator<<(QDebug debug, QSslEllipticCurve curve)
void setAddress(const quint8 *ip6Addr)

Class QNetworkCacheMetaData:

QDebug operator<<(QDebug debug, QSslEllipticCurve curve)

Class QGeoRectangle:

QString toString() const

Class QGeoShape:

QGeoCoordinate center() const
QString toString() const

Class QGeoCircle:

QString toString() const

Class QJSEngine:

QJSEngine *qjsEngine(const QObject *object)

Class QSGSimpleTextureNode:

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

Class QQuickWidget:

QQuickWindow *quickWindow() const

Class QAbstractScrollArea:

QMargins viewportMargins() const

Class QFrame:

void initStyleOption(QStyleOptionFrame *option) const

Class QGraphicsScene:

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

Class QPlainTextEdit:

QMenu *createStandardContextMenu(const QPoint &position)

Class QOpenGLWidget:

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

New Global Functions

bool operator!=(const QCameraViewfinderSettings &lhs, const QCameraViewfinderSettings &rhs)
QDebug operator<<(QDebug debug, QSslEllipticCurve curve)
bool operator==(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs)
bool operator==(const QCameraViewfinderSettings &lhs, const QCameraViewfinderSettings &rhs)
int qEnvironmentVariableIntValue(const char *varName, bool *ok)
int qEnvironmentVariableIntValue(const char *varName, bool *ok)
QJSEngine *qjsEngine(const QObject *object)

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

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases