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 QAbstractFileEngine:
Class QProcess:
Class QUrl:
QList<QUrl> | fromStringList(const QStringList &urls, ParsingMode mode = TolerantMode) |
QStringList | toStringList(const QList<QUrl> &urls, FormattingOptions options = FormattingOptions( PrettyDecoded )) |
Class QMetaMethod:
Class QMetaProperty:
Class QChar:
Class QLocale:
double | toDouble(const QStringRef &s, bool *ok = Q_NULLPTR) const |
float | toFloat(const QStringRef &s, bool *ok = Q_NULLPTR) const |
int | toInt(const QStringRef &s, bool *ok = Q_NULLPTR) const |
qlonglong | toLongLong(const QStringRef &s, bool *ok = Q_NULLPTR) const |
short | toShort(const QStringRef &s, bool *ok = Q_NULLPTR) const |
uint | toUInt(const QStringRef &s, bool *ok = Q_NULLPTR) const |
qulonglong | toULongLong(const QStringRef &s, bool *ok = Q_NULLPTR) const |
ushort | toUShort(const QStringRef &s, bool *ok = Q_NULLPTR) const |
Class QMargins:
Class QMap:
iterator | insert(const_iterator pos, const Key &key, const T &value) |
iterator | insertMulti(const_iterator pos, const Key &key, const T &value) |
Class QMultiMap:
QMap<Key, T>::iterator | insert(QMap<Key, T>::const_iterator pos, const Key &key, const T &value) |
Class QRect:
Class QPoint:
int | dotProduct(const QPoint &p1, const QPoint &p2) |
Class QPointF:
qreal | dotProduct(const QPointF &p1, const QPointF &p2) |
Class QRegularExpression:
Class QSharedPointer:
Class QString:
bool | contains(const QRegularExpression &re, QRegularExpressionMatch *match) const |
Class QStringRef:
double | toDouble(bool *ok = Q_NULLPTR) const |
float | toFloat(bool *ok = Q_NULLPTR) const |
int | toInt(bool *ok = Q_NULLPTR, int base = 10) const |
long | toLong(bool *ok = Q_NULLPTR, int base = 10) const |
qlonglong | toLongLong(bool *ok = Q_NULLPTR, int base = 10) const |
short | toShort(bool *ok = Q_NULLPTR, int base = 10) const |
uint | toUInt(bool *ok = Q_NULLPTR, int base = 10) const |
ulong | toULong(bool *ok = Q_NULLPTR, int base = 10) const |
qulonglong | toULongLong(bool *ok = Q_NULLPTR, int base = 10) const |
ushort | toUShort(bool *ok = Q_NULLPTR, int base = 10) const |
QStringRef | trimmed() const |
Class QVector:
Class QVarLengthArray:
Class QIcon:
QSize | actualSize(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const |
QPixmap | pixmap(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const |
Class QInputMethod:
Class QKeySequence:
QList<QKeySequence> | listFromString(const QString &str, SequenceFormat format = PortableText) |
QString | listToString(const QList<QKeySequence> &list, SequenceFormat format = PortableText) |
Class QPlatformTheme:
Class QPlatformWindow:
Class QWindow:
Class QVector3D:
Class QVector2D:
Class QRawFont:
QVector<QPointF> | advancesForGlyphIndexes(const QVector<quint32> &glyphIndexes, LayoutFlags layoutFlags) const |
bool | advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs, LayoutFlags layoutFlags) const |
Class QPlatformFontDatabase:
Class QNetworkAccessManager:
Class QNetworkReply:
Class QLocalSocket:
Class QSslConfiguration:
Class QSslSocket:
Class QSqlRecord:
QSqlRecord | keyValues(const QSqlRecord &keyFields) const |
Class QSqlTableModel:
Class QGraphicsView:
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) |
Class QQmlExtensionPlugin:
Class QQuickItem:
Class QQuickWindow:
Class QAccelerometer:
Class QLightSensor:
Class QSensor:
Class QRotationSensor:
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) |
bool | qEnvironmentVariableIsEmpty(const char *varName) |
bool | qEnvironmentVariableIsSet(const char *varName) |
double | qRadiansToDegrees(double radians) |
float | qRadiansToDegrees(float radians) |
bool | qunsetenv(const char *varName) |
New Macros
New Enum Types
enum | AccelerationMode { Combined, Gravity, User } |
enum | Script { Script_Unknown, Script_Inherited, Script_Common, Script_Latin, ..., Script_SignWriting } |
enum | LayoutFlag { SeparateAdvances, KernedAdvances, UseDesignMetrics } |
enum | AxesOrientationMode { FixedOrientation, AutomaticOrientation, UserOrientation } |
enum | Visibility { Windowed, Minimized, Maximized, FullScreen, AutomaticVisibility, Hidden } |
enum | ApplicationState { ApplicationSuspended, ApplicationHidden, ApplicationInactive, ApplicationActive } |
enum | Edge { TopEdge, LeftEdge, RightEdge, BottomEdge } |
New Typedefs
New Properties
New QML Types
New QML Properties
New QML Signals
New QML Methods
Additions to Other Qt 5 Releases