Qt 6.2 中的新类和函数
本页包含 Qt 6.2 中引入的所有新类和函数的完整列表。
新命名空间
(预览) 命名空间 | QtAndroidPrivate |
新类
- A
- QAndroidActivityResultReceiver
- QAndroidApplication (QNativeInterface)
- QAndroidBinder
- QAndroidIntent
- QAndroidParcel
- QAndroidService
- QAndroidServiceConnection
新成员函数
(自 6.2) void | labelsTruncatedChanged(bool labelsTruncated) |
(自 6.2) void | truncateLabelsChanged(bool truncateLabels) |
(自 6.2) QModelIndex | createSourceIndex(int row, int col, void *internalPtr) const |
(自 6.2) bool | bind(QHostAddress::SpecialAddress addr, quint16 port, QAbstractSocket::BindMode mode) |
类 QBarSet
(自 6.2) void | 取消选择所有柱状图() |
(自 6.2) void | deselectBar(int index) |
(自 6.2) void | deselectBars(const QList<int> &indexes) |
(自 6.2) bool | isBarSelected(int index) const |
(自 6.2) void | 选择所有柱状图() |
(自 6.2) void | selectBar(int index) |
(自 6.2) void | selectBars(const QList<int> &indexes) |
(自 6.2) QList<int> | selectedBars() const |
(自 6.2) QColor | selectedColor() const |
(自 6.2) void | setBarSelected(int index, bool selected) |
(自 6.2) void | setSelectedColor(const QColor &color) |
(自 6.2) void | toggleSelection(const QList<int> &indexes) |
类 QBluetoothDeviceDiscoveryAgent
(自 6.2) void | errorOccurred(QBluetoothDeviceDiscoveryAgent::Error error) |
(自 6.2) void | setName(const QString &name) |
(自 6.2) void | errorOccurred(QBluetoothLocalDevice::Error error) |
(自 6.2) void | errorOccurred(QBluetoothServer::Error error) |
类 QBluetoothServiceDiscoveryAgent
(自 6.2) void | errorOccurred(QBluetoothServiceDiscoveryAgent::Error error) |
(自 6.2) void | errorOccurred(QBluetoothSocket::SocketError error) |
(since 6.2) qsizetype | lastIndexOf(QByteArrayView bv) const |
(since 6.2) int | compare(QByteArrayView bv, Qt::CaseSensitivity cs) const |
(since 6.2) qsizetype | lastIndexOf(QByteArrayView bv) const |
(since 6.2) virtual QCanBusDeviceInfo | deviceInfo() const |
(since 6.2) QString | plugin() const |
(since 6.2) QString | description() const |
(自 6.2) void | setDescription(const QString &description) |
(since 6.2) std::filesystem::path | filesystemJunctionTarget() const |
(since 6.2) QString | junctionTarget() const |
类 QFlags
(since 6.2) QFlags<T> | fromInt(QFlags<T>::Int i) |
(since 6.2) QFlags<T> | operator&(QFlags<T> other) const |
(since 6.2) QFlags<T> & | operator&=(QFlags<T> mask) |
(since 6.2) size_t | qHash(QFlags<Enum> flags, size_t seed) |
(自 6.2) bool | testAnyFlag(Enum flag) const |
(自 6.2) bool | testAnyFlags(QFlags<T> flags) const |
(自 6.2) bool | testFlags(QFlags<T> flags) const |
(since 6.2) QFlags<T>::Int | toInt() const |
(since 6.2) QGeoAddress & | operator=(QGeoAddress &other) |
(自 6.2) void | setStreetNumber(const QString &streetNumber) |
(since 6.2) QString | streetNumber() const |
(since 6.2) QGeoAreaMonitorInfo & | operator=(QGeoAreaMonitorInfo &&other) |
(自 6.2) virtual QVariant | backendProperty(const QString &name) const |
(自 6.2) virtual bool | setBackendProperty(const QString &name, const QVariant &value) |
(自 6.2) QGeoCoordinate & | operator=(QGeoCoordinate &&other) |
(自 6.2) QGeoShape | boundingShape() const |
(自 6.2) QGeoLocation & | operator=(QGeoLocation &&other) |
(自 6.2) void | setBoundingShape(const QGeoShape &boundingShape) |
(自 6.2) QGeoPositionInfo & | operator=(QGeoPositionInfo &&other) |
(自 6.2) QGeoSatelliteInfo & | operator=(QGeoSatelliteInfo &&other) |
(自 6.2) virtual QVariant | backendProperty(const QString &name) const |
(自 6.2) virtual bool | setBackendProperty(const QString &name, const QVariant &value) |
(自 6.2) quint64 | timestamp() const |
(自 6.2) bool | isInverted() const |
(自 6.2) Qt::ScrollPhase | phase() const |
(自 6.2) QPoint | pixelDelta() const |
类 QImage
(自 6.2) QSizeF | deviceIndependentSize() const |
(自 6.2) QImage | fromData(QByteArrayView data, const char *format) |
(自 6.2) bool | loadFromData(QByteArrayView data, const char *format) |
(自 6.2) QJSValue | newSymbol(const QString &name) |
(自 6.2) jfieldID | findField(jclass clazz, const char *fieldName, const char *signature) |
(自 6.2) jmethodID | findMethod(jclass clazz, const char *methodName, const char *signature) |
(自 6.2) jfieldID | findStaticField(jclass clazz, const char *fieldName, const char *signature) |
(自 6.2) jmethodID | findStaticMethod(jclass clazz, const char *methodName, const char *signature) |
(自 6.2) bool | isValid() const |
(自 6.2) QByteArray | className() const |
(since 6.2) jclass | objectClass() const |
(since 6.2) qsizetype | lastIndexOf(QStringView str, Qt::CaseSensitivity cs) const |
(since 6.2) qsizetype | lastIndexOf(QLatin1StringView l1, Qt::CaseSensitivity cs) const |
类 QLegend
(自 6.2) void | attachedToChartChanged(bool attached) |
(自 6.2) bool | isInteractive() const |
(自 6.2) void | setInteractive(bool interactive) |
类 QLocale
(since 6.2) QLocale::Territory | codeToTerritory(QStringView territoryCode) |
(since 6.2) QString | nativeTerritoryName() const |
(since 6.2) QLocale::Territory | territory() const |
(since 6.2) QString | territoryToCode(QLocale::Territory territory) |
(since 6.2) QString | territoryToString(QLocale::Territory territory) |
(自 6.2) void | setStaleLockTime(std::chrono::milliseconds staleLockTime) |
(since 6.2) std::chrono::milliseconds | staleLockTimeAsDuration() const |
(自 6.2) bool | tryLock(std::chrono::milliseconds timeout) |
(since 6.2) QLowEnergyDescriptor | clientCharacteristicConfiguration() const |
(since 6.2) QLowEnergyController * | createPeripheral(const QBluetoothAddress &localDevice, QObject *parent) |
(自 6.2) void | errorOccurred(QLowEnergyController::Error newError) |
(since 6.2) int | mtu() const |
(自 6.2) void | errorOccurred(QLowEnergyService::ServiceError newError) |
(自 6.2) bool | isConst() const |
(since 6.2) QMetaType | metaType() const |
(since 6.2) int | interFrameDelay() const |
(自 6.2) void | setInterFrameDelay(int microseconds) |
(since 6.2) QPointF | delta() const |
(since 6.2) int | fingerCount() const |
(since 6.2) QJniObject | context() |
(自 6.2) void | hideSplashScreen(int duration) |
(自 6.2) bool | isActivityContext() |
(since 6.2) QFuture<QVariant> | runOnAndroidMainThread(const std::function<QVariant ()> &runnable, const QDeadlineTimer timeout) |
(since 6.2) int | sdkVersion() |
(自 6.2) bool | match(const QNdefMessage &message) const |
(since 6.2) QNdefMessage & | operator=(const QNdefMessage &other) |
(since 6.2) QNdefMessage & | operator=(QNdefMessage &&other) |
(自 6.2) void | clear() |
(自 6.2) bool | isEnabled() const |
(自 6.2) void | setUserInformation(const QString &信息) |
(自 6.2) void | targetDetectionStopped() |
(自 6.2) QDebug | operator<<(QDebug 调试, const QNetworkAddressEntry &条目) |
(自 6.2) qint64 | decompressedSafetyCheckThreshold() const |
(自 6.2) void | setDecompressedSafetyCheckThreshold(qint64 阈值) |
类 QPixmap
(自 6.2) QSizeF | deviceIndependentSize() const |
(自 6.2) QObject * | objectForName(const QString &名称) const |
(since 6.2) qsizetype | size() const |
(自 6.2) bool | saveToFile(const QUrl &文件路径) const |
(自 6.2) QQuickRenderTarget | fromOpenGLRenderBuffer(uint 渲染缓冲区ID, const QSize &像素大小, int 样本数量) |
(自 6.2) void | setQuery(QSqlQuery &&查询) |
类 QString
(since 6.2) qsizetype | lastIndexOf(QLatin1StringView 字符串, Qt::CaseSensitivity 敏感度) const |
(since 6.2) qsizetype | lastIndexOf(const QString &字符串, Qt::CaseSensitivity 敏感度) const |
(since 6.2) qsizetype | lastIndexOf(QStringView 字符串, Qt::CaseSensitivity 敏感度) const |
(since 6.2) qsizetype | lastIndexOf(const QRegularExpression &正则表达式, QRegularExpressionMatch *匹配) const |
(since 6.2) qsizetype | lastIndexOf(QStringView 字符串, Qt::CaseSensitivity 敏感度) const |
(since 6.2) qsizetype | lastIndexOf(QLatin1StringView l1, Qt::CaseSensitivity 敏感度) const |
(since 6.2) qsizetype | lastIndexOf(const QRegularExpression &正则表达式, QRegularExpressionMatch *匹配) const |
(since 6.2) QLocale::Territory | territory() const |
(since 6.2) QMetaType | metaType() const |
(自 6.2) bool | hasProtectedContent() const |
(自 6.2) void | loadingChanged(const QWebEngineLoadingInfo &loadingInfo) |
(自 6.2) void | navigationRequested(QWebEngineNavigationRequest &请求) |
(自 6.2) void | newWindowRequested(QWebEngineNewWindowRequest &请求) |
(自 6.2) void | requestIconForIconURL(const QUrl &url, int 所需像素大小, std::function<void (const QIcon &, const QUrl &)> 图标可回调) const |
(自 6.2) void | requestIconForPageURL(const QUrl &url, int 所需像素大小, std::function<void (const QIcon &, const QUrl &, const QUrl &)> 图标可回调) const |
(自 6.2) QWebEngineView * | forPage(const QWebEnginePage *page) |
(since 6.2) QWebEngineContextMenuRequest * | lastContextMenuRequest() const |
(自 6.2) void | pdfPrintingFinished(const QString &filePath, bool success) |
(自 6.2) void | print(QPrinter *printer) |
(自 6.2) void | printFinished(bool success) |
(自 6.2) void | printRequested() |
(自 6.2) void | printToPdf(const QString &filePath, const QPageLayout &layout, const QPageRanges &ranges) |
(自 6.2) void | printToPdf(const std::function<void (const QByteArray &)> &resultCallback, const QPageLayout &layout, const QPageRanges &ranges) |
(自 6.2) void | alertReceived(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description) |
(自 6.2) void | alertSent(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description) |
(自 6.2) void | 继续中断的手势() |
(自 6.2) void | handshakeInterruptedOnError(const QSslError &error) |
(自 6.2) void | peerVerifyError(const QSslError &error) |
(自 6.2) void | alertReceived(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description) |
(自 6.2) void | alertSent(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description) |
(自 6.2) void | handshakeInterruptedOnError(const QSslError &error) |
(since 6.2) QPair<qreal, qreal> | bestFitLineEquation(bool &ok) const |
(自 6.2) void | clearPointConfiguration(const int index) |
(自 6.2) void | clearPointConfiguration(const int index, const QXYSeries::PointConfiguration key) |
(自 6.2) void | clearPointsConfiguration() |
(自 6.2) void | clearPointsConfiguration(const QXYSeries::PointConfiguration key) |
(自 6.2) void | colorBy(const QList<qreal> &sourceData, const QLinearGradient &gradient) |
(自 6.2) void | 取消所有点的选择() |
(自 6.2) void | deselectPoint(int index) |
(自 6.2) void | deselectPoints(const QList<int> &indexes) |
(自 6.2) bool | isPointSelected(int index) |
(since 6.2) const QImage & | lightMarker() const |
(自 6.2) void | lightMarkerChanged(const QImage &lightMarker) |
(since 6.2) qreal | markerSize() const |
(since 6.2) QHash<QXYSeries::PointConfiguration, QVariant> | pointConfiguration(const int index) const |
(since 6.2) QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>> | pointsConfiguration() const |
(自 6.2) void | 选择所有点() |
(自 6.2) void | selectPoint(int index) |
(自 6.2) void | selectPoints(const QList<int> &indexes) |
(since 6.2) const QImage & | selectedLightMarker() const |
(自 6.2) QList<int> | selectedPoints() const |
(自 6.2) void | setLightMarker(const QImage &lightMarker) |
(自 6.2) void | setMarkerSize(qreal size) |
(自 6.2) void | setPointConfiguration(const int index, const QHash<QXYSeries::PointConfiguration, QVariant> &configuration) |
(自 6.2) void | setPointConfiguration(const int index, const QXYSeries::PointConfiguration key, const QVariant &value) |
(自 6.2) void | setPointSelected(int index, bool selected) |
(自 6.2) void | setPointsConfiguration(const QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>> &pointsConfiguration) |
(自 6.2) void | setSelectedLightMarker(const QImage &selectedLightMarker) |
(自 6.2) void | sizeBy(const QList<qreal> &sourceData, const qreal minSize, const qreal maxSize) |
(自 6.2) void | toggleSelection(const QList<int> &indexes) |
命名空间中的新函数
(自 6.2) void | beginPropertyUpdateGroup() |
(自 6.2) bool | bindService(const QAndroidIntent &serviceIntent, const QAndroidServiceConnection &serviceConnection, QtAndroidPrivate::BindFlags flags) |
(初期) QFuture<QtAndroidPrivate::PermissionResult> | checkPermission(const QString &permission) |
(自 6.2) void | endPropertyUpdateGroup() |
(初期) QFuture<QtAndroidPrivate::PermissionResult> | requestPermission(const QString &permission) |
(自 6.2) void | startActivity(const QJniObject &intent, int receiverRequestCode, std::function.lt;void (int, int, const QJniObject &)> callbackFunc) |
(自 6.2) void | startActivity(const QAndroidIntent &intent, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver) |
(自 6.2) void | startActivity(const QJniObject &intent, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver) |
(自 6.2) void | startIntentSender(const QJniObject &intentSender, int receiverRequestCode, QAndroidActivityResultReceiver *resultReceiver) |
新全局函数
(自6.2起) std::underlying_type_t<Enum> | qToUnderlying(Enum e) |
(自6.2起) const char * | qWebEngineChromiumVersion() |
(自6.2起) const char * | qWebEngineVersion() |
新宏
(自6.2起) | PRIXQUINTPTR |
(自6.2起) | PRIdQINTPTR |
(自6.2起) | PRIdQPTRDIFF |
(自6.2起) | PRIdQSIZETYPE |
(自6.2起) | PRIiQINTPTR |
(自6.2起) | PRIiQPTRDIFF |
(自6.2起) | PRIiQSIZETYPE |
(自6.2起) | PRIoQUINTPTR |
(自6.2起) | PRIuQUINTPTR |
(自6.2起) | PRIxQUINTPTR |
(自6.2起) | Q_IMPORT_QML_PLUGIN(PluginName) |
新枚举类型
(自6.2起) enum | RubberBand { NoRubberBand, VerticalRubberBand, HorizontalRubberBand, RectangleRubberBand, ClickThroughRubberBand } |
(自6.2起) enum | SocketOption { NoOptions, AbstractNamespaceOption } |
(自6.2起) enum | DiscoveryMode { FullDiscovery, SkipValueDiscovery } |
(自6.2起) enum | EditFlag { CanUndo, CanRedo, CanCut, CanCopy, CanPaste, …, CanEditRichly } |
(自6.2起) enum | MediaFlag { MediaInError, MediaPaused, MediaMuted, MediaLoop, MediaCanSave, …, MediaCanRotate } |
(自6.2起) enum | MediaType { MediaTypeNone, MediaTypeImage, MediaTypeVideo, MediaTypeAudio, MediaTypeCanvas, …, MediaTypePlugin } |
(自6.2起) enum class | PointConfiguration { Color, Size, Visibility, LabelVisibility, LabelFormat } |
(自6.2起) enum class | BindFlag { None, AutoCreate, DebugUnbind, NotForeground, AboveClient, …, ExternalService } |
新枚举值
新属性
|
|
新变量
(自6.2起) | CCCDDisable |
(自6.2起) | CCCDEnableIndication |
(自6.2起) | CCCDEnableNotification |
新 QML 类型
- P
- Particle3D
- ParticleAbstractShape3D
- ParticleEmitter3D
- ParticleModelShape3D
- ParticleShape3D
- ParticleSystem3D
- ParticleSystem3DLogging
- PointRotator3D
- W
- Wander3D
新 QML 属性
QML 类型 ColorGroup
(自6.2起) | placeholderText : 颜色 |
QML 类型 Image
(自6.2起) | mirrorVertically : 布尔值 |
QML 类型 SystemPalette
(自6.2起) | placeholderText : 颜色 |
QML 类型 TableView
(自6.2起) | selectionModel : ItemSelectionModel |
QML 类型 Texture
(自6.2起) | autoOrientation : 布尔值 |
新 QML 方法
QML 类型 Locale
(自 6.2) 字符串 | formattedDataSize(int bytes, int precision, DataSizeFormat format) |
QML 类型 TableView
(自 6.2) 实数 | columnWidth(int column) |
(自 6.2) 实数 | implicitColumnWidth(int column) |
(自 6.2) 实数 | implicitRowHeight(int row) |
(自 6.2) bool | isColumnLoaded(int column) |
(自 6.2) bool | isRowLoaded(int row) |
(自 6.2) 实数 | rowHeight(int row) |
QML 类型 View3D
(自 6.2) List<PickResult> | pickAll(float x, float y) |
(自 6.2) PickResult | rayPick(vector3d origin, vector3d direction) |
(自 6.2) List<PickResult> | rayPickAll(vector3d origin, vector3d direction) |
© 2024 Qt公司版权所有。本文件的文档贡献均为各自所有者的版权。本提供的文档按照由自由软件基金会发布的版本1.3 GNU自由文档许可证 的条款进行许可。Qt及其相应标志是芬兰以及全球其他国家的Qt公司注册商标。