- Qt 5.3
- New Classes and Functions in Qt 5.3
- Qt 5.3.2 Reference Documentation

# 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 Classes
- New Member Functions
- New Global Functions
- New Macros
- New Enum Types
- New Typedefs
- New Properties
- New QML Types
- New QML Properties

### New Classes

A
  QAtomicInteger

C
  QCameraInfo
  QCameraInfoControl

E
  EnginioClient
  EnginioClientConnection
  EnginioIdentity
  EnginioModel
  EnginioOAuth2Authentication
  EnginioReply

M
  QMacToolBar
  QMacToolBarItem
  QMarginsF
  QMediaServiceCameraInfoInterface

N
  QNearFieldShareManager
  QNearFieldShareTarget

P
  QPageLayout
  QPageSize

Q
  QQuickWidget

S
  QSignalBlocker

### New Member Functions

Class QNmeaPositionInfoSource:

| setUserEquivalentRangeError(double uere)
| userEquivalentRangeError() const

Class QOpenGLContext:

| isOpenGLES() const
| openGLModuleHandle()
| openGLModuleType()

Class QStyleHints:

| mousePressAndHoldInterval() const

Class QSurface:

| supportsOpenGL() const

Class QSurfaceFormat:

| options() const
| setOption(FormatOption option, bool on)
| setOptions(QFlags<QSurfaceFormat::FormatOption> options)
| setSwapInterval(int interval)
| swapInterval() const
| testOption(FormatOption option) const

Class QOpenGLFramebufferObject:

| takeTexture()

Class QOpenGLFunctions:

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

Class QOpenGLShaderProgram:

| create()

Class QOpenGLTexture:

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

Class QSslConfiguration:

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

Class QPrinterInfo:

| availablePrinterNames()
| defaultPageSize() const
| defaultPrinterName()
| isRemote() const
| maximumPhysicalPageSize() const
| minimumPhysicalPageSize() const
| state() const
| supportedPageSizes() const
| supportedResolutions() const
| supportsCustomPageSizes() const

Class QPlainTextEdit:

| find(const QRegExp & exp, QTextDocument::FindFlags options)

Class QSerialPortInfo:

| serialNumber() const

Class QQuickWindow:

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

Class QMessageLogger:

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

Class QJsonArray:

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

Class QAtomicInteger:

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

Class QSharedPointer:

| swap(QSharedPointer<T> & other)

### New Global Functions

| operator+(const QRectF & lhs, const QMarginsF & rhs)
| operator+(const QMarginsF & lhs, const QRectF & rhs)
| operator+(int lhs, const QMargins & rhs)
| operator+(const QMargins & margins)
| operator+(const QMargins & lhs, int rhs)
| operator-(const QRectF & lhs, const QMarginsF & rhs)
| operator-(const QRect & lhs, const QMargins & rhs)
| operator-(const QMargins & lhs, int rhs)
| qHash(const QFont & font, uint seed)
| qHash(float key, uint seed)
| qHash(double key, uint seed)
| qPremultiply(QRgb rgb)
| qRemovePostRoutine(QtCleanUpFunction ptr)
| 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

typedef | CategoryFunction

### New Properties

- placeholderText : const

### New QML Types

C
  Calendar
  CalendarStyle
  CoordinateAnimation

D
  Dialog

E
  EnginioClient
  EnginioModel
  EnginioReply

M
  MenuBarStyle
  MenuStyle

### New QML Properties

| currentFont

## Additions to Other Qt 5 Releases

- What's New in Qt 5.2
- What's New in Qt 5.1
- What's New in Qt 5.0