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.
virtual bool | renameOverwrite (const QString & newName ) |
virtual bool | syncToDisk () |
类 QProcess :
void | setArguments (const QStringList & arguments ) |
void | setProgram (const QString & program ) |
void | start (OpenMode mode = ReadWrite) |
类 QUrl :
QList<QUrl> | fromStringList (const QStringList & urls , ParsingMode mode = TolerantMode) |
QStringList | toStringList (const QList<QUrl> & urls , FormattingOptions options = FormattingOptions( PrettyDecoded )) |
类 QMetaMethod :
int | revision () const |
类 QMetaProperty :
int | revision () const |
类 QChar :
Script | script () const |
Script | script (uint ucs4 ) |
类 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 |
类 QMargins :
QMargins & | operator*= (int factor ) |
QMargins & | operator*= (qreal factor ) |
QMargins & | operator+= (const QMargins & margins ) |
QMargins & | operator-= (const QMargins & margins ) |
QMargins & | operator/= (int divisor ) |
QMargins & | operator/= (qreal divisor ) |
类 QMap :
iterator | insert (const_iterator pos , const Key & key , const T & value ) |
iterator | insertMulti (const_iterator pos , const Key & key , const T & value ) |
类 QMultiMap :
QMap<Key, T>::iterator | insert (QMap<Key, T>::const_iterator pos , const Key & key , const T & value ) |
类 QRect :
QRect | marginsAdded (const QMargins & margins ) const |
QRect | marginsRemoved (const QMargins & margins ) const |
QRect & | operator+= (const QMargins & margins ) |
QRect & | operator-= (const QMargins & margins ) |
类 QPoint :
int | dotProduct (const QPoint & p1 , const QPoint & p2 ) |
类 QPointF :
qreal | dotProduct (const QPointF & p1 , const QPointF & p2 ) |
QStringList | namedCaptureGroups () const |
类 QSharedPointer :
QSharedPointer<T> | create () |
QSharedPointer<T> | create ( ... ) |
类 QString :
bool | contains (const QRegularExpression & re , QRegularExpressionMatch * match ) const |
类 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 |
类 QVarLengthArray :
void | squeeze () |
类 QVector :
void | removeFirst () |
void | removeLast () |
T | takeFirst () |
T | takeLast () |
类 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 |
类 QInputMethod :
QRectF | inputItemRectangle () const |
void | setInputItemRectangle (const QRectF & rect ) |
类 QKeySequence :
QList<QKeySequence> | listFromString (const QString & str , SequenceFormat format = PortableText) |
QString | listToString (const QList<QKeySequence> & list , SequenceFormat format = PortableText) |
类 QPlatformTheme :
virtual QIconEngine * | createIconEngine (const QString & iconName ) const |
类 QPlatformWindow :
virtual bool | isAlertState () const |
virtual void | setAlertState (bool enable ) |
类 QWindow :
void | alert (int msec ) |
类 QVector3D :
float | distanceToPoint (const QVector3D & point ) const |
类 QVector2D :
float | distanceToLine (const QVector2D & point , const QVector2D & direction ) const |
float | distanceToPoint (const QVector2D & point ) const |
类 QRawFont :
QVector<QPointF> | advancesForGlyphIndexes (const QVector<quint32> & glyphIndexes , LayoutFlags layoutFlags ) const |
bool | advancesForGlyphIndexes (const quint32 * glyphIndexes , QPointF * advances , int numGlyphs , LayoutFlags layoutFlags ) const |
QSupportedWritingSystems | writingSystemsFromTrueTypeBits (quint32[4] unicodeRange , quint32[2] codePageRange ) |
void | encrypted (QNetworkReply * reply ) |
类 QNetworkReply :
void | encrypted () |
类 QLocalSocket :
void | connectToServer (OpenMode openMode = ReadWrite) |
void | setServerName (const QString & name ) |
QList<QSslCertificate> | localCertificateChain () const |
void | setLocalCertificateChain (const QList<QSslCertificate> & localChain ) |
类 QSslSocket :
QList<QSslCertificate> | localCertificateChain () const |
void | setLocalCertificateChain (const QList<QSslCertificate> & localChain ) |
类 QSqlRecord :
QSqlRecord | keyValues (const QSqlRecord & keyFields ) const |
类 QSqlTableModel :
QSqlRecord | primaryValues (int row ) const |
类 QGraphicsView :
void | rubberBandChanged (QRect rubberBandRect , QPointF fromScenePoint , QPointF toScenePoint ) |
QRect | rubberBandRect () const |
类 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 ) |
QUrl | baseUrl () const |
类 QQuickItem :
void | forceActiveFocus (Qt::FocusReason reason ) |
类 QQuickWindow :
void | closing (QQuickCloseEvent * close ) |
bool | hasDefaultAlphaBuffer () |
void | setDefaultAlphaBuffer (bool useAlpha ) |
类 QAccelerometer :
void | accelerationModeChanged (AccelerationMode accelerationMode ) |
void | setAccelerationMode (AccelerationMode accelerationMode ) |
类 QLightSensor :
void | setFieldOfView (qreal fieldOfView ) |
类 QSensor :
void | setCurrentOrientation (int currentOrientation ) |
void | setEfficientBufferSize (int efficientBufferSize ) |
void | setMaxBufferSize (int maxBufferSize ) |
void | setSkipDuplicates (bool skipDuplicates ) |
void | skipDuplicatesChanged (bool skipDuplicates ) |
类 QRotationSensor :
void | setHasZ (bool hasZ ) |
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 ) |
Q_COREAPP_STARTUP_FUNCTION (QtStartUpFunction ptr ) | |
Q_GLOBAL_STATIC ( Type , VariableName ) | |
Q_GLOBAL_STATIC_WITH_ARGS ( Type , VariableName , 自变量 ) |
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 } |
typedef | qoutputrangelist |
typedef | qrange |
typedef | qrangelist |
|
|
void | closing (CloseEvent close ) |
forceLayout () | |
forceActiveFocus (Qt::FocusReason reason ) | |
nextItemInFocusChain (bool forward ) | |
forceLayout () | |
alert (int msec ) | |
requestActivate () |