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

Class QFlag:

operator uint() const

Class QMessageLogger:

critical(catFunc) const
critical(cat) const
critical(catFunc, msg, ) const
critical(cat, msg, ) const
debug(catFunc) const
debug(cat) const
debug(catFunc, msg, ) const
debug(cat, msg, ) const
warning(catFunc) const
warning(catFunc, msg, ) const
warning(cat, msg, ) const

Class QProcess:

processId() const

Class QJsonArray:

operator+(value) const
operator+=(value)
operator<<(value)

Class QCoreApplication:


Class QAtomicInteger:

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

Class QByteArray:

fromCFData(data)
fromNSData(data)
fromRawCFData(data)
fromRawNSData(data)
toCFData() const
toNSData() const
toRawCFData() const
toRawNSData() const

Class QChar:

joiningType(ucs4)
joiningType() const

Class QRectF:

marginsAdded(margins) const
marginsRemoved(margins) const
operator+=(margins)
operator-=(margins)

Class QSharedPointer:

swap(other)

Class QString:

contains(str, cs) const
fromUcs4(str, size)
fromUtf16(str, size)

Class QVarLengthArray:

contains(value) const
indexOf(value, from) const
lastIndexOf(value, from) const

Class QDBusServer:


Class QPixmap:

fromImage(image, flags)

Class QMouseEvent:

flags() const
source() const

Class QOpenGLContext:


Class QPlatformIntegration:

virtual openGLModuleType()

Class QPlatformSystemTrayIcon:

virtual createMenu() const

Class QPlatformTheme:

virtual standardButtonText(button) const

Class QPlatformWindow:

virtual normalGeometry() const

Class QSurfaceFormat:

options() const
setOption(option, on)
setOptions(options)
setSwapInterval(interval)
swapInterval() const
testOption(option) const

Class QSurface:

supportsOpenGL() const

Class QOpenGLFramebufferObject:


Class QOpenGLFunctions:

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

Class QOpenGLShaderProgram:

create()

Class QOpenGLTexture:

setCompressedData(mipLevel, layer, cubeFace, dataSize, data, options)
setData(sourceFormat, sourceType, data, options)
setData(mipLevel, sourceFormat, sourceType, data, options)
setData(mipLevel, layer, cubeFace, sourceFormat, sourceType, data, options)
setData(mipLevel, layer, sourceFormat, sourceType, data, options)

Class QPagedPaintDevice:

pageLayout() const
setPageLayout(newPageLayout)
setPageMargins(margins)
setPageMargins(margins, units)
setPageOrientation(orientation)
setPageSize(pageSize)

Class QPdfWriter:

pageLayout() const
resolution() const
setPageLayout(newPageLayout)
setPageMargins(margins)
setPageMargins(margins, units)
setPageOrientation(orientation)
setPageSize(pageSize)
setResolution(resolution)

Class QTextCharFormat:

setFont(font, behavior)

Class QTextFormat:

isEmpty() const

Class QTextBlock:

textFormats() const

Class QSslConfiguration:


Class QPrinter:

pageLayout() const
setPageLayout(newLayout)
setPageMargins(margins, units)
setPageOrientation(orientation)
setPageSize(pageSize)

Class QPrinterInfo:


Class QPlainTextEdit:

find(exp, options)

Class QTextEdit:

find(exp, options)

New Functions in Namespaces

ignoreMessage(type, messagePattern)

New Global Functions

operator+(lhs, rhs)
operator+(lhs, rhs)
operator+(lhs, rhs)
operator+(margins)
operator+(lhs, rhs)
operator-(lhs, rhs)
operator-(lhs, rhs)
operator-(lhs, rhs)
qHash(font, seed)
qHash(key, seed)
qHash(key, seed)
qHash(key, seed)
qPremultiply(rgb)
qRemovePostRoutine(ptr)
qUnpremultiply(rgb)

New Macros

QVERIFY_EXCEPTION_THROWN(expression, exceptiontype)
qCCritical(category, message, )
qCDebug(category, message, )
qCWarning(category, message, )

New Enum Types

enum OpenGLModuleType { LibGL, LibGLES }
enum FontPropertiesInheritanceBehavior { FontPropertiesSpecifiedOnly, FontPropertiesAll }
enum MouseEventFlag { MouseEventCreatedDoubleClick, MouseEventFlagMask }
enum MouseEventSource { MouseEventNotSynthesized, MouseEventSynthesizedBySystem, MouseEventSynthesizedByQt, MouseEventSynthesizedByApplication }

New Typedefs

New Properties

Additions to Other Qt 5 Releases