New Classes and Functions in Qt 5.3 | Qt 5.6

Qt 5.6 | New Classes and Functions in Qt 5.3

Qt 5.6.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 Functions in Namespaces
- New Global Functions
- New Macros
- New Enum Types
- New Typedefs
- New Properties

### New Classes

A
  QAtomicInteger

M
  QMarginsF

P
  QPageLayout
  QPageSize

S
  QSignalBlocker

### New Member Functions

Class QSharedPointer:

| swap(QSharedPointer<T> &other)

Class QOpenGLContext:

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

Class QRectF:

| marginsAdded(const QMarginsF &margins) const
| marginsRemoved(const QMarginsF &margins) const
| operator+=(const QMarginsF &margins)
| operator-=(const QMarginsF &margins)

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

virtual | openGLModuleType()

Class QPrinter:

| pageLayout() const
| setPageLayout(const QPageLayout &newLayout)
| setPageMargins(const QMarginsF &margins, QPageLayout::Unit units)
| setPageOrientation(QPageLayout::Orientation orientation)
| setPageSize(const QPageSize &pageSize)

Class QTextEdit:

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

Class QPdfWriter:

| pageLayout() const
| resolution() const
| setPageLayout(const QPageLayout &newPageLayout)
| setPageMargins(const QMarginsF &margins)
| setPageMargins(const QMarginsF &margins, QPageLayout::Unit units)
| setPageOrientation(QPageLayout::Orientation orientation)
| setPageSize(const QPageSize &pageSize)
| setResolution(int resolution)

Class QPlatformSystemTrayIcon:

virtual | createMenu() const

Class QVarLengthArray:

| contains(const T &value) const
| indexOf(const T &value, int from) const
| lastIndexOf(const T &value, int from) const

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

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

Class QPagedPaintDevice:

| pageLayout() const
| setPageLayout(const QPageLayout &newPageLayout)
| setPageMargins(const QMarginsF &margins)
| setPageMargins(const QMarginsF &margins, QPageLayout::Unit units)
| setPageOrientation(QPageLayout::Orientation orientation)
| setPageSize(const QPageSize &pageSize)

Class QDBusServer:

| isAnonymousAuthenticationAllowed() const
| setAnonymousAuthenticationAllowed(bool value)

Class QSslConfiguration:

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

Class QSurface:

| supportsOpenGL() const

Class QTextCharFormat:

| setFont(const QFont &font, FontPropertiesInheritanceBehavior behavior)

Class QPlatformTheme:

virtual | standardButtonText(int button) const

Class QPlatformWindow:

virtual | normalGeometry() const

Class QProcess:

| processId() const

Class QChar:

| joiningType(uint ucs4)
| joiningType() const

Class QTextBlock:

| textFormats() const

Class QTextFormat:

| isEmpty() const

Class QMouseEvent:

| flags() const
| source() const

Class QOpenGLShaderProgram:

| create()

Class QAtomicInteger:

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

Class QSurfaceFormat:

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

Class QJsonArray:

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

Class QByteArray:

| fromCFData(CFDataRef data)
| fromNSData(const NSData *data)
| fromRawCFData(CFDataRef data)
| fromRawNSData(const NSData *data)
| toCFData() const
| toNSData() const
| toRawCFData() const
| toRawNSData() const

Class QCoreApplication:

| isSetuidAllowed()
| setSetuidAllowed(bool allow)

Class QPrinterInfo:

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

Class QString:

| contains(QLatin1String str, Qt::CaseSensitivity cs) const

Class QPixmap:

| fromImage(QImage &&image, Qt::ImageConversionFlags flags)

### New Functions in Namespaces

| ignoreMessage(QtMsgType type, const QRegularExpression &messagePattern)

### 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 | FontPropertiesInheritanceBehavior { FontPropertiesSpecifiedOnly, FontPropertiesAll }
enum | MouseEventFlag { MouseEventCreatedDoubleClick, MouseEventFlagMask }
enum | MouseEventSource { MouseEventNotSynthesized, MouseEventSynthesizedBySystem, MouseEventSynthesizedByQt, MouseEventSynthesizedByApplication }

### New Typedefs

typedef | CategoryFunction

### New Properties

- showGroupSeparator : const
- placeholderText : const
- mousePressAndHoldInterval : const
- baseUrl : const

## Additions to Other Qt 5 Releases

- What's New in Qt 5.6
- What's New in Qt 5.5
- What's New in Qt 5.4
- What's New in Qt 5.2
- What's New in Qt 5.1
- What's New in Qt 5.0