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
- New Global Functions
- New Macros
- New Enum Types
- New Type Aliases
- New Properties
- New QML Types
- New QML Properties
- New QML Signals
- New QML Methods
New Classes
- A
- QAbstractOpenGLFunctions
- QAccelerometer
- QAccelerometerFilter
- QAccelerometerReading
- QAltimeter
- QAltimeterFilter
- QAltimeterReading
- QAmbientLightFilter
- QAmbientLightReading
- QAmbientLightSensor
- QAmbientTemperatureFilter
- QAmbientTemperatureReading
- QAmbientTemperatureSensor
- O
- QOffscreenSurface
- QOpenGLDebugLogger
- QOpenGLDebugMessage
- QOpenGLFunctions_1_0
- QOpenGLFunctions_1_1
- QOpenGLFunctions_1_2
- QOpenGLFunctions_1_3
- QOpenGLFunctions_1_4
- QOpenGLFunctions_1_5
- QOpenGLFunctions_2_0
- QOpenGLFunctions_2_1
- QOpenGLFunctions_3_0
- QOpenGLFunctions_3_1
- QOpenGLFunctions_3_2_Compatibility
- QOpenGLFunctions_3_2_Core
- QOpenGLFunctions_3_3_Compatibility
- QOpenGLFunctions_3_3_Core
- QOpenGLFunctions_4_0_Compatibility
- QOpenGLFunctions_4_0_Core
- QOpenGLFunctions_4_1_Compatibility
- QOpenGLFunctions_4_1_Core
- QOpenGLFunctions_4_2_Compatibility
- QOpenGLFunctions_4_2_Core
- QOpenGLFunctions_4_3_Compatibility
- QOpenGLFunctions_4_3_Core
- QOpenGLFunctions_ES2
- QOpenGLTimeMonitor
- QOpenGLTimerQuery
- QOpenGLVersionProfile
- QOpenGLVertexArrayObject
- QOrientationFilter
- QOrientationReading
- QOrientationSensor
- qoutputrange
- P
- QPressureFilter
- QPressureReading
- QPressureSensor
- QProximityFilter
- QProximityReading
- QProximitySensor
- S
- QSaveFile
- QSensor
- QSensorBackend
- QSensorChangesInterface
- QSensorGesture
- QSensorGestureManager
- QSensorGesturePluginInterface
- QSensorGestureRecognizer
- QSensorPluginInterface
- QSerialPort
- QSerialPortInfo
- X
- QX11Info
New Member Functions
Class QAbstractFileEngine:
virtual bool | renameOverwrite(const QString &newName) |
virtual bool | syncToDisk() |
Class QByteArray:
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
Class QChar:
Class QDeadlineTimer:
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
QMargins | operator-(const QMargins &m1, const QMargins &m2) |
QMargins | operator-(const QMargins &margins) |
Class QJsonDocument:
QByteArray | toJson(QJsonDocument::JsonFormat format) const |
Class QLocale:
double | toDouble(const QStringRef &s, bool *ok) const |
float | toFloat(const QStringRef &s, bool *ok) const |
int | toInt(const QStringRef &s, bool *ok) const |
qlonglong | toLongLong(const QStringRef &s, bool *ok) const |
short | toShort(const QStringRef &s, bool *ok) const |
uint | toUInt(const QStringRef &s, bool *ok) const |
qulonglong | toULongLong(const QStringRef &s, bool *ok) const |
ushort | toUShort(const QStringRef &s, bool *ok) const |
Class QMap:
QMap::iterator | insert(QMap::const_iterator pos, const Key &key, const T &value) |
Class QMargins:
QMargins | operator*(const QMargins &margins, int factor) |
QMargins | operator*(int factor, const QMargins &margins) |
QMargins | operator*(const QMargins &margins, qreal factor) |
QMargins | operator*(qreal factor, const QMargins &margins) |
QMargins & | operator*=(int factor) |
QMargins & | operator*=(qreal factor) |
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
QMargins & | operator+=(const QMargins &margins) |
QMargins | operator-(const QMargins &m1, const QMargins &m2) |
QMargins | operator-(const QMargins &margins) |
QMargins & | operator-=(const QMargins &margins) |
QMargins | operator/(const QMargins &margins, int divisor) |
QMargins | operator/(const QMargins &margins, qreal divisor) |
QMargins & | operator/=(int divisor) |
QMargins & | operator/=(qreal divisor) |
Class QMarginsF:
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
Class QMetaMethod:
int | revision() const |
Class QMetaProperty:
int | revision() const |
Class QMultiMap:
typename QMap<Key, T>::iterator | insert(typename QMap<Key, T>::const_iterator pos, const Key &key, const T &value) |
Class QPoint:
int | dotProduct(const QPoint &p1, const QPoint &p2) |
QMargins | operator*(const QMargins &margins, int factor) |
QMargins | operator*(int factor, const QMargins &margins) |
QMargins | operator*(const QMargins &margins, qreal factor) |
QMargins | operator*(qreal factor, const QMargins &margins) |
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
QMargins | operator-(const QMargins &m1, const QMargins &m2) |
QMargins | operator-(const QMargins &margins) |
QMargins | operator/(const QMargins &margins, int divisor) |
QMargins | operator/(const QMargins &margins, qreal divisor) |
Class QPointF:
qreal | dotProduct(const QPointF &p1, const QPointF &p2) |
QMargins | operator*(const QMargins &margins, int factor) |
QMargins | operator*(int factor, const QMargins &margins) |
QMargins | operator*(const QMargins &margins, qreal factor) |
QMargins | operator*(qreal factor, const QMargins &margins) |
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
QMargins | operator-(const QMargins &m1, const QMargins &m2) |
QMargins | operator-(const QMargins &margins) |
QMargins | operator/(const QMargins &margins, int divisor) |
QMargins | operator/(const QMargins &margins, qreal divisor) |
Class QProcess:
void | setArguments(const QStringList &arguments) |
void | setProgram(const QString &program) |
void | start(QIODevice::OpenMode mode) |
Class QRect:
QRect | marginsAdded(const QMargins &margins) const |
QRect | marginsRemoved(const QMargins &margins) const |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
QRect & | operator+=(const QMargins &margins) |
QRect & | operator-=(const QMargins &margins) |
Class QRegularExpression:
QStringList | namedCaptureGroups() const |
Class QSharedPointer:
QSharedPointer<T> | create(Args &&... args) |
Class QSize:
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
Class QSizeF:
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
Class QString:
bool | contains(const QRegularExpression &re, QRegularExpressionMatch *rmatch) const |
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
Class QStringRef:
double | toDouble(bool *ok) const |
float | toFloat(bool *ok) const |
int | toInt(bool *ok, int base) const |
long | toLong(bool *ok, int base) const |
qlonglong | toLongLong(bool *ok, int base) const |
short | toShort(bool *ok, int base) const |
uint | toUInt(bool *ok, int base) const |
ulong | toULong(bool *ok, int base) const |
qulonglong | toULongLong(bool *ok, int base) const |
ushort | toUShort(bool *ok, int base) const |
QStringRef | trimmed() const |
Class QUrl:
QList<QUrl> | fromStringList(const QStringList &urls, QUrl::ParsingMode mode) |
QStringList | toStringList(const QList<QUrl> &urls, QUrl::FormattingOptions options) |
Class QVarLengthArray:
void | squeeze() |
Class QVector:
void | removeFirst() |
void | removeLast() |
T | takeFirst() |
T | takeLast() |
Class QIcon:
QSize | actualSize(QWindow *window, const QSize &size, QIcon::Mode mode, QIcon::State state) const |
QPixmap | pixmap(QWindow *window, const QSize &size, QIcon::Mode mode, QIcon::State state) const |
Class QInputMethod:
QRectF | inputItemRectangle() const |
void | setInputItemRectangle(const QRectF &rect) |
Class QKeySequence:
QList<QKeySequence> | listFromString(const QString &str, QKeySequence::SequenceFormat format) |
QString | listToString(const QList<QKeySequence> &list, QKeySequence::SequenceFormat format) |
Class QPlatformFontDatabase:
QSupportedWritingSystems | writingSystemsFromTrueTypeBits(quint32[4] unicodeRange, quint32[2] codePageRange) |
Class QPlatformTheme:
virtual QIconEngine * | createIconEngine(const QString &iconName) const |
Class QPlatformWindow:
virtual bool | isAlertState() const |
virtual void | setAlertState(bool enable) |
Class QRawFont:
QVector<QPointF> | advancesForGlyphIndexes(const QVector<quint32> &glyphIndexes, QRawFont::LayoutFlags layoutFlags) const |
bool | advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs, QRawFont::LayoutFlags layoutFlags) const |
Class QVector2D:
float | distanceToLine(const QVector2D &point, const QVector2D &direction) const |
float | distanceToPoint(const QVector2D &point) const |
Class QVector3D:
float | distanceToPoint(const QVector3D &point) const |
Class QWindow:
void | alert(int msec) |
Class QLocalSocket:
void | connectToServer(QIODevice::OpenMode openMode) |
void | setServerName(const QString &name) |
Class QNetworkAccessManager:
void | encrypted(QNetworkReply *reply) |
Class QNetworkReply:
void | encrypted() |
Class QSslConfiguration:
QList<QSslCertificate> | localCertificateChain() const |
void | setLocalCertificateChain(const QList<QSslCertificate> &localChain) |
Class QSslSocket:
QList<QSslCertificate> | localCertificateChain() const |
void | setLocalCertificateChain(const QList<QSslCertificate> &localChain) |
Class QQuickItem:
void | forceActiveFocus(Qt::FocusReason reason) |
Class QQuickWindow:
void | closing(QQuickCloseEvent *close) |
bool | hasDefaultAlphaBuffer() |
void | setDefaultAlphaBuffer(bool useAlpha) |
Class QAccelerometer:
void | accelerationModeChanged(QAccelerometer::AccelerationMode accelerationMode) |
void | setAccelerationMode(QAccelerometer::AccelerationMode accelerationMode) |
Class QLightSensor:
void | setFieldOfView(qreal fieldOfView) |
Class QRotationSensor:
void | setHasZ(bool hasZ) |
Class QSensor:
void | setCurrentOrientation(int currentOrientation) |
void | setEfficientBufferSize(int efficientBufferSize) |
void | setMaxBufferSize(int maxBufferSize) |
void | setSkipDuplicates(bool skipDuplicates) |
void | skipDuplicatesChanged(bool skipDuplicates) |
Class QSqlRecord:
QSqlRecord | keyValues(const QSqlRecord &keyFields) const |
Class QSqlTableModel:
QSqlRecord | primaryValues(int row) const |
Class QGraphicsView:
void | rubberBandChanged(QRect rubberBandRect, QPointF fromScenePoint, QPointF toScenePoint) |
QRect | rubberBandRect() const |
Class QMenu:
QAction * | addSection(const QString &text) |
QAction * | addSection(const QIcon &icon, const QString &text) |
QAction * | insertSection(QAction *before, const QString &text) |
QAction * | insertSection(QAction *before, const QIcon &icon, const QString &text) |
New Global Functions
QMargins | operator*(qreal factor, const QMargins &margins) |
QMargins | operator*(const QMargins &margins, qreal factor) |
QMargins | operator*(int factor, const QMargins &margins) |
QMargins | operator*(const QMargins &margins, int factor) |
QRect | operator+(const QMargins &margins, const QRect &rectangle) |
QRect | operator+(const QRect &rectangle, const QMargins &margins) |
QMargins | operator+(const QMargins &m1, const QMargins &m2) |
QMargins | operator-(const QMargins &margins) |
QMargins | operator-(const QMargins &m1, const QMargins &m2) |
QMargins | operator/(const QMargins &margins, qreal divisor) |
QMargins | operator/(const QMargins &margins, int divisor) |
double | qDegreesToRadians(double degrees) |
float | qDegreesToRadians(float degrees) |
double | qDegreesToRadians(double degrees) |
float | qDegreesToRadians(float degrees) |
bool | qEnvironmentVariableIsEmpty(const char *varName) |
bool | qEnvironmentVariableIsEmpty(const char *varName) |
bool | qEnvironmentVariableIsSet(const char *varName) |
bool | qEnvironmentVariableIsSet(const char *varName) |
double | qRadiansToDegrees(double radians) |
float | qRadiansToDegrees(float radians) |
double | qRadiansToDegrees(double radians) |
float | qRadiansToDegrees(float radians) |
bool | qunsetenv(const char *varName) |
bool | qunsetenv(const char *varName) |
New Macros
Q_COREAPP_STARTUP_FUNCTION(QtStartUpFunction ptr) | |
Q_COREAPP_STARTUP_FUNCTION(QtStartUpFunction ptr) | |
Q_GLOBAL_STATIC(Type, VariableName) | |
Q_GLOBAL_STATIC(Type, VariableName) | |
Q_GLOBAL_STATIC_WITH_ARGS(Type, VariableName, Arguments) | |
Q_GLOBAL_STATIC_WITH_ARGS(Type, VariableName, Arguments) |
New Enum Types
enum | AccelerationMode { Combined, Gravity, User } |
enum | Script { Script_Unknown, Script_Inherited, Script_Common, Script_Latin, Script_Greek, …, ScriptCount } |
enum | JsonFormat { Indented, Compact } |
enum | LayoutFlag { SeparateAdvances, KernedAdvances, UseDesignMetrics } |
enum | AxesOrientationMode { FixedOrientation, AutomaticOrientation, UserOrientation } |
enum | Visibility { Hidden, AutomaticVisibility, Windowed, Minimized, Maximized, FullScreen } |
enum | ApplicationState { ApplicationSuspended, ApplicationHidden, ApplicationInactive, ApplicationActive } |
enum | Edge { TopEdge, LeftEdge, RightEdge, BottomEdge } |
New Type Aliases
typedef | qoutputrangelist |
typedef | qrange |
typedef | qrangelist |
typedef | qoutputrangelist |
typedef | qrange |
typedef | qrangelist |
New Properties
|
|
New QML Types
- L
- Label
New QML Properties
New QML Signals
closing() |