New Classes and Functions in Qt 5.3

This page contains a comprehensive list of all new classes and functions introduced in Qt 5.3. Links to new APIs in previous Qt 5 releases are found at the bottom of this page.

New Namespaces

namespace QWebSocketProtocol
namespace QtAndroid

New Classes

New Member Functions

Class QMessageLogger:

void critical(const QLoggingCategory & cat, const char * msg, ...) const
void critical(CategoryFunction catFunc, const char * msg, ...) const
QDebug critical(const QLoggingCategory & cat) const
QDebug critical(CategoryFunction catFunc) const
void debug(const QLoggingCategory & cat, const char * msg, ...) const
void debug(CategoryFunction catFunc, const char * msg, ...) const
QDebug debug(const QLoggingCategory & cat) const
QDebug debug(CategoryFunction catFunc) const
void warning(const QLoggingCategory & cat, const char * msg, ...) const
void warning(CategoryFunction catFunc, const char * msg, ...) const
QDebug warning(CategoryFunction catFunc) const

Class QJsonArray:

QJsonArray operator+(const QJsonValue & value) const
QJsonArray & operator+=(const QJsonValue & value)
QJsonArray & operator<<(const QJsonValue & value)

Class QAtomicInteger:

int fetchAndAndAcquire(int valueToAnd)
int fetchAndAndOrdered(int valueToAnd)
int fetchAndAndRelaxed(int valueToAnd)
int fetchAndAndRelease(int valueToAnd)
int fetchAndOrAcquire(int valueToOr)
int fetchAndOrOrdered(int valueToOr)
int fetchAndOrRelaxed(int valueToOr)
int fetchAndOrRelease(int valueToOr)
int fetchAndSubAcquire(int valueToSub)
int fetchAndSubOrdered(int valueToSub)
int fetchAndSubRelaxed(int valueToSub)
int fetchAndSubRelease(int valueToSub)
int fetchAndXorAcquire(int valueToXor)
int fetchAndXorOrdered(int valueToXor)
int fetchAndXorRelaxed(int valueToXor)
int fetchAndXorRelease(int valueToXor)
operator int() const
int operator&=(int valueToAnd)
int operator++()
int operator++(int)
int operator+=(int valueToAdd)
int operator--()
int operator--(int)
int operator-=(int valueToSub)
QAtomicInteger & operator=(int newValue)
int operator^=(int valueToXor)
int operator|=(int valueToOr)

Class QSharedPointer:

void swap(QSharedPointer<T> & other)

Class QPrinterInfo:

QStringList availablePrinterNames()
QPageSize defaultPageSize() const
QString defaultPrinterName()
bool isRemote() const
QPageSize maximumPhysicalPageSize() const
QPageSize minimumPhysicalPageSize() const
QPrinter::PrinterState state() const
QList<QPageSize> supportedPageSizes() const
QList<int> supportedResolutions() const
bool supportsCustomPageSizes() const

Class QOpenGLContext:

bool isOpenGLES() const
void * openGLModuleHandle()
OpenGLModuleType openGLModuleType()

Class QSurface:

bool supportsOpenGL() const

Class QStyleHints:


Class QSurfaceFormat:

QSurfaceFormat::FormatOptions options() const
void setOption(FormatOption option, bool on = true)
void setOptions(QSurfaceFormat::FormatOptions options)
void setSwapInterval(int interval)
int swapInterval() const
bool testOption(FormatOption option) const

Class QOpenGLFramebufferObject:

GLuint takeTexture()

Class QOpenGLFunctions:

void glBindTexture(GLenum target, GLuint texture)
void glBlendFunc(GLenum sfactor, GLenum dfactor)
void glClear(GLbitfield mask)
void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
void glClearStencil(GLint s)
void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
void glCullFace(GLenum mode)
void glDeleteTextures(GLsizei n, const GLuint * textures)
void glDepthFunc(GLenum func)
void glDepthMask(GLboolean flag)
void glDisable(GLenum cap)
void glDrawArrays(GLenum mode, GLint first, GLsizei count)
void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices)
void glEnable(GLenum cap)
void glFinish()
void glFlush()
void glFrontFace(GLenum mode)
void glGenTextures(GLsizei n, GLuint * textures)
void glGetBooleanv(GLenum pname, GLboolean * params)
GLenum glGetError()
void glGetFloatv(GLenum pname, GLfloat * params)
void glGetIntegerv(GLenum pname, GLint * params)
const GLubyte * glGetString(GLenum name)
void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat * params)
void glGetTexParameteriv(GLenum target, GLenum pname, GLint * params)
void glHint(GLenum target, GLenum mode)
GLboolean glIsEnabled(GLenum cap)
GLboolean glIsTexture(GLuint texture)
void glLineWidth(GLfloat width)
void glPixelStorei(GLenum pname, GLint param)
void glPolygonOffset(GLfloat factor, GLfloat units)
void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels)
void glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
void glStencilFunc(GLenum func, GLint ref, GLuint mask)
void glStencilMask(GLuint mask)
void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels)
void glTexParameterf(GLenum target, GLenum pname, GLfloat param)
void glTexParameterfv(GLenum target, GLenum pname, const GLfloat * params)
void glTexParameteri(GLenum target, GLenum pname, GLint param)
void glTexParameteriv(GLenum target, GLenum pname, const GLint * params)
void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels)
void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)

Class QOpenGLTexture:

void setCompressedData(int mipLevel, int layer, CubeMapFace cubeFace, int dataSize, const void * data, const QOpenGLPixelTransferOptions * const options = 0)
void setData(int mipLevel, int layer, CubeMapFace cubeFace, PixelFormat sourceFormat, PixelType sourceType, const void * data, const QOpenGLPixelTransferOptions * const options = 0)
void setData(int mipLevel, int layer, PixelFormat sourceFormat, PixelType sourceType, const void * data, const QOpenGLPixelTransferOptions * const options = 0)
void setData(int mipLevel, PixelFormat sourceFormat, PixelType sourceType, const void * data, const QOpenGLPixelTransferOptions * const options = 0)
void setData(PixelFormat sourceFormat, PixelType sourceType, const void * data, const QOpenGLPixelTransferOptions * const options = 0)

Class QOpenGLShaderProgram:

bool create()

Class QSslConfiguration:

QList<QByteArray> allowedNextProtocols() const
QByteArray nextNegotiatedProtocol() const
NextProtocolNegotiationStatus nextProtocolNegotiationStatus() const
void setAllowedNextProtocols(QList<QByteArray> protocols)

Class QQuickWindow:

void afterAnimating()
void afterSynchronizing()
void openglContextCreated(QOpenGLContext * context)
void sceneGraphAboutToStop()
void sceneGraphError(QQuickWindow::SceneGraphError error, const QString & message)

Class QPlainTextEdit:

bool find(const QRegExp & exp, QTextDocument::FindFlags options = 0)

Class QNmeaPositionInfoSource:

void setUserEquivalentRangeError(double uere)
double userEquivalentRangeError() const

Class QSerialPortInfo:

QString serialNumber() const

Class QBluetoothLocalDevice:

QList<QBluetoothAddress> connectedDevices() const
void deviceConnected(const QBluetoothAddress & address)
void deviceDisconnected(const QBluetoothAddress & address)

New Functions in Namespaces

QAndroidJniObject androidActivity()
int androidSdkVersion()
void startActivity(const QAndroidJniObject & intent, int receiverRequestCode, QAndroidActivityResultReceiver * resultReceiver = 0)
void startIntentSender(const QAndroidJniObject & intentSender, int receiverRequestCode, QAndroidActivityResultReceiver * resultReceiver = 0)

New Global Functions

QRectF operator+(const QMarginsF & lhs, const QRectF & rhs)
QRectF operator+(const QRectF & lhs, const QMarginsF & rhs)
QMargins operator+(const QMargins & margins)
QMargins operator+(int lhs, const QMargins & rhs)
QMargins operator+(const QMargins & lhs, int rhs)
QRectF operator-(const QRectF & lhs, const QMarginsF & rhs)
QRect operator-(const QRect & lhs, const QMargins & rhs)
QMargins operator-(const QMargins & lhs, int rhs)
uint qHash(const QFont & font, uint seed = 0)
uint qHash(double key, uint seed = 0)
uint qHash(float key, uint seed = 0)
QRgb qPremultiply(QRgb rgb)
void qRemovePostRoutine(QtCleanUpFunction ptr)
QRgb qUnpremultiply(QRgb rgb)

New Macros

QVERIFY_EXCEPTION_THROWN( expression, exceptiontype)
qCCritical( category, const char * message, ...)
qCDebug( category, const char * message, ...)
qCWarning( category, const char * message, ...)

New Enum Types

enum OpenGLModuleType { LibGL, LibGLES }
enum SceneGraphError { ContextNotAvailable }

New Typedefs

New Properties

New QML Types

New QML Properties

Additions to Other Qt 5 Releases

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.