Qt 5.11 中的新类和函数

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

新类

A
QAbstractItemModelTester
QAbstractRayCaster ( Qt3DRender )
C
QCustomAudioRoleControl
F
FilterRequest ( QWebEngineCookieStore )
G
QGeoServiceProviderFactoryV2
P
PropertyPair ( QQmlContext )
R
QRayCaster ( Qt3DRender )
QRayCasterHit ( Qt3DRender )
S
QScreenRayCaster ( Qt3DRender )
W
QWebEngineQuotaRequest
QWebEngineRegisterProtocolHandlerRequest

新成员函数

QAbstractItemModel :

checkIndex (const QModelIndex & index , QAbstractItemModel::CheckIndexOptions options ) const

QBitArray :

bits () const
fromBits (const char * data , qsizetype size )

QModelIndex :

siblingAtColumn (int column ) const
siblingAtRow (int row ) const

QScopedPointer :

get () const

QSharedPointer :

get () const

QString :

remove (QLatin1String str , Qt::CaseSensitivity cs )

QStringView :

isRightToLeft () const

QVarLengthArray :

operator+= (T && value )
operator<< (T && value )

QUuid :

toByteArray (QUuid::StringFormat mode ) const
toString (QUuid::StringFormat mode ) const

QVariant :

fromStdVariant (const int & value )

QVector :

operator+= (T && value )
operator<< (T && value )

QSysInfo :

bootUniqueId ()
machineUniqueId ()

QGamepadManager :

gamepadName (int deviceId ) const

QGuiApplication :

fontChanged (const QFont & font )

QIcon :

fallbackSearchPaths ()
setFallbackSearchPaths (const QStringList & paths )

QFontMetricsF :

horizontalAdvance (QChar ch ) const
horizontalAdvance (const QString & text , int length ) const

QFontMetrics :

horizontalAdvance (QChar ch ) const
horizontalAdvance (const QString & text , int len ) const

QPlatformWindow :

virtual startSystemMove (const QPoint & pos )

QGeoRouteRequest :

extraParameters () const
setExtraParameters (const QVariantMap & extraParameters )

QMediaPlayer :

customAudioRoleChanged (const QString & role )
supportedCustomAudioRoles () const

QVideoSurfaceFormat :

isMirrored () const
setMirrored (bool mirrored )

QHostAddress :

isBroadcast () const
isGlobal () const
isLinkLocal () const
isSiteLocal () const
isUniqueLocalUnicast () const

QNetworkAddressEntry :

clearAddressLifetime ()
dnsEligibility () const
isLifetimeKnown () const
isPermanent () const
isTemporary () const
preferredLifetime () const
setAddressLifetime (QDeadlineTimer preferred , QDeadlineTimer validity )
setDnsEligibility (QNetworkAddressEntry::DnsEligibilityStatus status )
validityLifetime () const

QNetworkInterface :

maximumTransmissionUnit () const
type () const

QSslConfiguration :

backendConfiguration () const
setBackendConfiguration (const QMap<QByteArray, QVariant> & backendConfiguration )
setBackendConfigurationOption (const QByteArray & name , const QVariant & value )

QQmlContext :

setContextProperties (const QVector<QQmlContext::PropertyPair> & properties )

QCanBusDeviceInfo :

channel () const
description () const
serialNumber () const

QWebEngineCookieStore :

setCookieFilter (const std::function<bool (const FilterRequest &)> & filterCallback )
setCookieFilter (std::function<bool (const FilterRequest &)> && filterCallback )

QWebEngineUrlRequestJob :

initiator () const

QMenuBar :

addAction (const QString & text , Functor functor )
addAction (const QString & text , const Obj * receiver , PointerToMemberFunctionOrFunctor method )

QTransform :

fromAxes (const QVector3D & xAxis , const QVector3D & yAxis , const QVector3D & zAxis )
rotateFromAxes (const QVector3D & xAxis , const QVector3D & yAxis , const QVector3D & zAxis )

QRemoteObjectHostBase :

proxy (const QUrl & registryUrl , const QUrl & hostUrl , QRemoteObjectHostBase::RemoteObjectNameFilter filter )
reverseProxy (QRemoteObjectHostBase::RemoteObjectNameFilter filter )

名称空间中的新函数

toString (const std::pair<T1, T2> & pair )
toString (const QPair<T1, T2> & pair )
toString (const QVector4D & v )
toString (const QVector3D & v )
toString (const QVector2D & v )
toString (const QUuid & uuid )
toString (const QStringView & string )

新全局函数

qFloatFromFloat16 (float * out , const qfloat16 * in , qsizetype len )
qFloatToFloat16 (qfloat16 * out , const float * in , qsizetype len )

新枚举类型

enum CheckIndexOption { NoOption, IndexIsValid, DoNotUseParent, ParentIsInvalid }
enum DnsEligibilityStatus { DnsEligibilityUnknown, DnsIneligible, DnsEligible }
enum StringFormat { WithBraces, WithoutBraces, Id128 }

新的 Typedef

typedef const_reference

新特性

新 QML 类型

A
AbstractRayCaster
R
RayCaster
S
ScreenRayCaster

新 QML 特性

containmentMask
customAudioRole
customAudioRole
customAudioRole
extraParameters
flags
isAvailable
routeQuery
status
supportedColorFilters
supportedExposureModes
supportedFocusModes
supportedWhiteBalanceModes

新 QML 信号

doubleTapped ()
singleTapped ()

新 QML 方法

segmentsCount ()

其它 Qt 5 发行的补充