Qt 5.15 中的新类和函数

此页面包含 Qt 5.15 引入的所有新类和函数的综合列表。Qt 5 之前发行的新 API 链接在此页面底部可找到。

新类

F
FromBase64Result ( QByteArray )
H
QHelpFilterSettingsWidget
QHelpLink
N
NativeTexture ( QSGTexture )
P
QPdfDestination
QPdfSelection
Q
QQuick3D
QQuick3DGeometry
QQuick3DObject
R
QRenderCapabilities ( Qt3DRender )

新成员函数

Class FromBase64Result :

bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

Class QChar :

bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

Class QConcatenateTablesProxyModel :

QList<QAbstractItemModel *> sourceModels () const

Class QFile :

bool moveToTrash ()
bool moveToTrash (const QString & fileName , QString * pathInTrash )

Class QFileInfo :

bool isJunction () const

Class QHash :

void insert (const QHash<K, V> & other )

Class QIdentityProxyModel :

virtual bool moveColumns (const QModelIndex & sourceParent , int sourceColumn , int count , const QModelIndex & destinationParent , int destinationChild ) override
virtual bool moveRows (const QModelIndex & sourceParent , int sourceRow , int count , const QModelIndex & destinationParent , int destinationChild ) override

Class QKeyValueIterator :

bool operator!= (const QMetaType & a , const QMetaType & b )
QKeyValueIterator::pointer operator-> () const
bool operator== (const QMetaType & a , const QMetaType & b )

Class QMap :

void insert (const QMap<Key, T> & map )

Class QMetaProperty :

bool isRequired () const

Class QMetaType :

QMetaType fromType ()
::QByteArray name () const
bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

Class qfloat16 :

qfloat16 copySign (qfloat16 sign ) const

Class QPair :

bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

Class QProcess :

QStringList splitCommand (QStringView command )

Class QRegularExpression :

QString anchoredPattern (QStringView expression )
QString escape (QStringView str )
QString wildcardToRegularExpression (QStringView pattern )

Class QResource :

QByteArray uncompressedData () const
qint64 uncompressedSize () const

Class QRunnable :

QRunnable * create (std::function<void ()> functionToRun )

Class QScopedPointer :

bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

Class QSignalMapper :

void mappedInt (int i )
void mappedObject (QObject * object )
void mappedString (const QString & text )
void mappedWidget (QWidget * widget )

Class QSocketNotifier :

void activated (QSocketDescriptor socket , QSocketNotifier::Type type )

Class QSortFilterProxyModel :

void filterCaseSensitivityChanged (Qt::CaseSensitivity filterCaseSensitivity )
void filterRoleChanged (int filterRole )
void recursiveFilteringEnabledChanged (bool recursiveFilteringEnabled )
void sortCaseSensitivityChanged (Qt::CaseSensitivity sortCaseSensitivity )
void sortLocaleAwareChanged (bool sortLocaleAware )
void sortRoleChanged (int sortRole )

Class QStateMachine :

int postDelayedEvent (QEvent * event , std::chrono::milliseconds delay )

Class QString :

bool isValidUtf16 () const

Class QStringView :

bool isValidUtf16 () const

Class QThread :

bool wait (QDeadlineTimer deadline )

Class QThreadPool :

void start (std::function<void ()> functionToRun , int priority )
bool tryStart (std::function<void ()> functionToRun )

Class QTranslator :

QString filePath () const
QString language () const

Class QVarLengthArray :

bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

Class QXmlStreamReader :

int entityExpansionLimit () const
void setEntityExpansionLimit (int limit )

Class QColorSpace :

QVariant operator QVariant () const

Class QCursor :

QBitmap bitmap ( Qt::ReturnByValueConstant ) const
QBitmap mask ( Qt::ReturnByValueConstant ) const

Class QPdfWriter :

void addFileAttachment (const QString & fileName , const QByteArray & data , const QString & mimeType )
QByteArray documentXmpMetadata () const
void setDocumentXmpMetadata (const QByteArray & xmpMetadata )

Class QPlatformWindow :

virtual bool startSystemMove ()
virtual bool startSystemResize (Qt::Edges edges )

Class QScreen :

QScreen * virtualSiblingAt (QPoint point )

Class QVulkanInstance :

void presentAboutToBeQueued (QWindow * window )

Class QVulkanWindow :

uint32_t graphicsQueueFamilyIndex () const
void setQueueCreateInfoModifier (const QVulkanWindow::QueueCreateInfoModifier & modifier )

Class QWindow :

bool startSystemMove ()
bool startSystemResize (Qt::Edges edges )

Class QHelpEngineCore :

QList<QHelpLink> documentsForIdentifier (const QString & id ) const
QList<QHelpLink> documentsForIdentifier (const QString & id , const QString & filterName ) const
QList<QHelpLink> documentsForKeyword (const QString & keyword ) const
QList<QHelpLink> documentsForKeyword (const QString & keyword , const QString & filterName ) const

Class QHelpFilterEngine :

QList<QVersionNumber> availableVersions () const
QStringList indices () const
QStringList indices (const QString & filterName ) const

Class QHelpIndexWidget :

void documentActivated (const QHelpLink & document , const QString & keyword )
void documentsActivated (const QList<QHelpLink> & documents , const QString & keyword )

Class QHelpIndexModel :

QHelpEngineCore * helpEngine () const

Class QCamera :

void errorOccurred (QCamera::Error value )

Class QMediaPlayer :

void setVideoOutput (const QVector<QAbstractVideoSurface *> & surfaces )

Class QVideoFrame :

QImage image () const

Class QAbstractSocket :

void errorOccurred (QAbstractSocket::SocketError socketError )

Class QLocalSocket :

void errorOccurred (QLocalSocket::LocalSocketError socketError )

Class QNetworkAccessManager :

void setTransferTimeout (int timeout )
int transferTimeout () const

Class QNetworkReply :

void errorOccurred (QNetworkReply::NetworkError code )

Class QNetworkRequest :

void setTransferTimeout (int timeout )
int transferTimeout () const

Class QSslCertificate :

QList<QSslCertificate> fromPath (const QString & path , QSsl::EncodingFormat format , QSslCertificate::PatternSyntax syntax )

Class QSslConfiguration :

void addCaCertificate (const QSslCertificate & certificate )
bool addCaCertificates (const QString & path , QSsl::EncodingFormat format , QSslCertificate::PatternSyntax syntax )
void addCaCertificates (const QList<QSslCertificate> & certificates )

Class QSslSocket :

void newSessionTicketReceived ()
QList<QSslError> sslHandshakeErrors () const

Class QQmlIncubationController :

void incubateWhile (std::atomic<bool> * flag , int msecs )

Class QQmlIncubator :

void setInitialProperties (const QVariantMap & initialProperties )

Class QQmlIncubatorPrivate :

RequiredProperties & requiredProperties ()

Class QSGTexture :

QSGTexture::NativeTexture nativeTexture () const

Class QSvgRenderer :

QTransform transformForElement (const QString & id ) const

Class QWebSocket :

quint64 maxAllowedIncomingFrameSize () const
quint64 maxAllowedIncomingMessageSize () const
quint64 maxIncomingFrameSize ()
quint64 maxIncomingMessageSize ()
quint64 maxOutgoingFrameSize ()
quint64 outgoingFrameSize () const
void setMaxAllowedIncomingFrameSize (quint64 maxAllowedIncomingFrameSize )
void setMaxAllowedIncomingMessageSize (quint64 maxAllowedIncomingMessageSize )
void setOutgoingFrameSize (quint64 outgoingFrameSize )

Class QButtonGroup :

void idClicked (int id )
void idPressed (int id )
void idReleased (int id )
void idToggled (int id , bool checked )

Class QLabel :

QPicture picture ( Qt::ReturnByValueConstant ) const
QPixmap pixmap ( Qt::ReturnByValueConstant ) const

Class QTabBar :

bool isTabVisible (int index ) const
void setTabVisible (int index , bool visible )

Class QTabWidget :

bool isTabVisible (int index ) const
void setTabVisible (int index , bool visible )

Class QWizard :

QList<int> visitedIds () const

Class QDomDocument :

bool setContent (QXmlStreamReader * reader , bool namespaceProcessing , QString * errorMsg , int * errorLine , int * errorColumn )

新全局函数

bool operator!= (const QMetaType & a , const QMetaType & b )
bool operator== (const QMetaType & a , const QMetaType & b )

新枚举类型

enum TransferTimeoutConstant { DefaultTransferTimeoutConstant }
enum Format { GLSL, SPIRV }
enum class PatternSyntax { RegularExpression, Wildcard, FixedString }
enum ReturnByValueConstant { ReturnByValue }

新特性

新 QML 类型

版权所有  © 2014-2023 乐数软件    

工业和信息化部: 粤ICP备14079481号-1