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
- 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
New Member Functions
Class QAbstractFileEngine:
| virtual bool | renameOverwrite(newName) |
| virtual bool | syncToDisk() |
Class QProcess:
| void | setArguments(arguments) |
| void | setProgram(program) |
| void | start(mode) |
Class QUrl:
| QList<QUrl> | fromStringList(urls, mode) |
| QStringList | toStringList(urls, options) |
Class QMetaMethod:
| int | revision() const |
Class QMetaProperty:
| int | revision() const |
Class QIcon:
| QSize | actualSize(window, size, mode, state) const |
| QPixmap | pixmap(window, size, mode, state) const |
Class QInputMethod:
| QRectF | inputItemRectangle() const |
| void | setInputItemRectangle(rect) |
Class QKeySequence:
| QList<QKeySequence> | listFromString(str, format) |
| QString | listToString(list, format) |
Class QPlatformTheme:
| virtual QIconEngine * | createIconEngine(iconName) const |
Class QPlatformWindow:
| virtual bool | isAlertState() const |
| virtual void | setAlertState(enable) |
Class QWindow:
| void | alert(msec) |
Class QVector2D:
| float | distanceToLine(point, direction) const |
| float | distanceToPoint(point) const |
Class QVector3D:
| float | distanceToPoint(point) const |
Class QPlatformFontDatabase:
| QSupportedWritingSystems | writingSystemsFromTrueTypeBits(unicodeRange, codePageRange) |
Class QRawFont:
| QVector<QPointF> | advancesForGlyphIndexes(glyphIndexes, layoutFlags) const |
| bool | advancesForGlyphIndexes(glyphIndexes, advances, numGlyphs, layoutFlags) const |
Class QNetworkAccessManager:
| void | encrypted(reply) |
Class QNetworkReply:
| void | encrypted() |
Class QLocalSocket:
| void | connectToServer(openMode) |
| void | setServerName(name) |
Class QSslConfiguration:
| QList<QSslCertificate> | localCertificateChain() const |
| void | setLocalCertificateChain(localChain) |
Class QSslSocket:
| QList<QSslCertificate> | localCertificateChain() const |
| void | setLocalCertificateChain(localChain) |
Class QSqlRecord:
| QSqlRecord | keyValues(keyFields) const |
Class QSqlTableModel:
| QSqlRecord | primaryValues(row) const |
Class QGraphicsView:
| void | rubberBandChanged(rubberBandRect, fromScenePoint, toScenePoint) |
| QRect | rubberBandRect() const |
Class QMenu:
| QAction * | addSection(icon, text) |
| QAction * | addSection(text) |
| QAction * | insertSection(before, icon, text) |
| QAction * | insertSection(before, text) |
New Global Functions
| QMargins | operator*(factor, margins) |
| QMargins | operator*(factor, margins) |
| QMargins | operator*(margins, factor) |
| QMargins | operator*(margins, factor) |
| QRect | operator+(rectangle, margins) |
| QRect | operator+(margins, rectangle) |
| QMargins | operator+(m1, m2) |
| QMargins | operator-(margins) |
| QMargins | operator-(m1, m2) |
| QMargins | operator/(margins, divisor) |
| QMargins | operator/(margins, divisor) |
| bool | qEnvironmentVariableIsEmpty(varName) |
| bool | qEnvironmentVariableIsSet(varName) |
| bool | qunsetenv(varName) |
New Macros
| Q_COREAPP_STARTUP_FUNCTION(ptr) | |
| Q_GLOBAL_STATIC(Type, VariableName) | |
| Q_GLOBAL_STATIC_WITH_ARGS(Type, VariableName, Arguments) |
New Enum Types
| enum | LayoutFlag { SeparateAdvances, KernedAdvances, UseDesignMetrics } |
| enum | Visibility { Hidden, AutomaticVisibility, Windowed, Minimized, Maximized, FullScreen } |
| enum | ApplicationState { ApplicationSuspended, ApplicationHidden, ApplicationInactive, ApplicationActive } |
| enum | Edge { TopEdge, LeftEdge, RightEdge, BottomEdge } |
New Properties
|
|