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:

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

Class QProcess:

qint64 processId() const

Class QJsonArray:

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

Class QCoreApplication:

bool isSetuidAllowed()
void setSetuidAllowed(allow)

Class QDBusServer:


Class QPixmap:

QPixmap fromImage(image, flags)

Class QMouseEvent:

Qt::MouseEventFlags flags() const
Qt::MouseEventSource source() const

Class QOpenGLContext:

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

Class QPlatformIntegration:

virtual QOpenGLContext::OpenGLModuleType openGLModuleType()

Class QPlatformSystemTrayIcon:

virtual QPlatformMenu *createMenu() const

Class QPlatformTheme:

virtual QString standardButtonText(button) const

Class QPlatformWindow:

virtual QRect normalGeometry() const

Class QSurface:

bool supportsOpenGL() const

Class QSurfaceFormat:

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

Class QOpenGLFramebufferObject:

GLuint takeTexture()

Class QOpenGLFunctions:

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

Class QOpenGLShaderProgram:

bool create()

Class QOpenGLTexture:

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

Class QPagedPaintDevice:

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

Class QPdfWriter:

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

Class QTextCharFormat:

void setFont(font, behavior)

Class QTextFormat:

bool isEmpty() const

Class QTextBlock:

QVector<QTextLayout::FormatRange> textFormats() const

Class QSslConfiguration:

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

Class QPrinter:

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

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

bool find(exp, options)

Class QTextEdit:

bool find(exp, options)

New Functions in Namespaces

void ignoreMessage(type, messagePattern)

New Global Functions

QRectF operator+(lhs, rhs)
QRectF operator+(lhs, rhs)
QMargins operator+(lhs, rhs)
QMargins operator+(margins)
QMargins operator+(lhs, rhs)
QRectF operator-(lhs, rhs)
QRect operator-(lhs, rhs)
QMargins operator-(lhs, rhs)
uint qHash(font, seed)
QRgb qPremultiply(rgb)
QRgb qUnpremultiply(rgb)

New Macros

QVERIFY_EXCEPTION_THROWN(expression, exceptiontype)

New Enum Types

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

New Type Aliases

New Properties

Additions to Other Qt 5 Releases