New Classes and Functions in Qt 5.1

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

New Classes

New Member Functions

Class QChar:

script(uint ucs4)
script() const

Class QPlatformTheme:

virtual createIconEngine(const QString &iconName) const

Class QPlatformFontDatabase:

writingSystemsFromTrueTypeBits(quint32 [4] unicodeRange, quint32 [2] codePageRange)

New Global Functions

qEnvironmentVariableIsEmpty(const char *varName)
qEnvironmentVariableIsSet(const char *varName)
qunsetenv(const char *varName)

New Macros

Q_COREAPP_STARTUP_FUNCTION(QtStartUpFunction ptr)
Q_GLOBAL_STATIC(Type, VariableName)
Q_GLOBAL_STATIC_WITH_ARGS(Type, VariableName, Arguments)

New Enum Types

enum Script { Script_Unknown, Script_Inherited, Script_Common, Script_Latin, ..., ScriptCount }
enum ApplicationState { ApplicationSuspended, ApplicationHidden, ApplicationInactive, ApplicationActive }
enum Edge { TopEdge, LeftEdge, RightEdge, BottomEdge }

New Typedefs

typedef qoutputrangelist
typedef qrange
typedef qrangelist

New QML Types

New QML Properties

New QML Signals

New QML Methods

Additions to Other Qt 5 Releases