Qt 6.6 中的新类和函数
本页包含 Qt 6.6 中引入的所有新类和函数的综合列表。
新命名空间
(since 6.6) namespace | QWebEngineGlobalSettings |
新类
- A
- Any (QtProtobuf)
- R
- QRhi
- QRhiBuffer
- QRhiColorAttachment
- QRhiCommandBuffer
- QRhiComputePipeline
- QRhiD3D11InitParams
- QRhiD3D11NativeHandles
- QRhiDepthStencilClearValue
- QRhiDriverInfo
- QRhiGles2InitParams
- QRhiGles2NativeHandles
- QRhiGraphicsPipeline
- QRhiInitParams
- QRhiMetalCommandBufferNativeHandles
- QRhiMetalInitParams
- QRhiMetalNativeHandles
- QRhiNativeHandles
- QRhiNullInitParams
- QRhiNullNativeHandles
- QRhiReadbackDescription
- QRhiReadbackResult
- QRhiRenderBuffer
- QRhiRenderPassDescriptor
- QRhiRenderTarget
- QRhiResource
- QRhiResourceUpdateBatch
- QRhiSampler
- QRhiScissor
- QRhiShaderResourceBinding
- QRhiShaderResourceBindings
- QRhiShaderStage
- QRhiStats
- QRhiSwapChain
- QRhiSwapChainHdrInfo
- QRhiSwapChainProxyData
- QRhiSwapChainRenderTarget
- QRhiTexture
- QRhiTextureCopyDescription
- QRhiTextureRenderTarget
- QRhiTextureRenderTargetDescription
- QRhiTextureSubresourceUploadDescription
- QRhiTextureUploadDescription
- QRhiTextureUploadEntry
- QRhiVertexInputAttribute
- QRhiVertexInputBinding
- QRhiVertexInputLayout
- QRhiViewport
- QRhiVulkanCommandBufferNativeHandles
- QRhiVulkanInitParams
- QRhiVulkanNativeHandles
- QRhiVulkanRenderPassNativeHandles
新成员函数
(since 6.6) void | tokenRequestErrorOccurred(QAbstractOAuth::Error error, const QString &errorString) |
(since 6.6) size_t | qHash(const QBluetoothAddress &key, size_t seed) |
(since 6.6) QBluetoothPermission::CommunicationModes | communicationModes() const |
(since 6.6) void | setCommunicationModes(QBluetoothPermission::CommunicationModes modes) |
(since 6.6) QBluetoothUuid | fromCBUUID(CBUUID *cbUuid) |
(since 6.6) CBUUID * | toCBUUID() const |
类QByteArray :
(since 6.6) QByteArray & | assign(QByteArrayView v) |
(since 6.6) QByteArray & | assign(InputIterator first, InputIterator last) |
(since 6.6) QByteArray & | assign(qsizetype n, char c) |
班级QDebug :
(since 6.6) QDebug & | operator<<(std::chrono::duration<Rep, Period> duration) |
班级QDnsLookup :
(since 6.6) void | setNameserver(const QHostAddress &nameserver, quint16 port) |
班级QElapsedTimer :
(since 6.6) QElapsedTimer::Duration | durationElapsed() const |
(since 6.6) QElapsedTimer::Duration | durationTo(const QElapsedTimer &other) const |
班级QFileInfo :
(since 6.6) QDateTime | birthTime(const QTimeZone &tz) const |
(since 6.6) QDateTime | fileTime(QFileDevice::FileTime time, const QTimeZone &tz) const |
(since 6.6) std::filesystem::path | filesystemReadSymLink() const |
(since 6.6) QDateTime | lastModified(const QTimeZone &tz) const |
(since 6.6) QDateTime | lastRead(const QTimeZone &tz) const |
(since 6.6) QDateTime | metadataChangeTime(const QTimeZone &tz) const |
(since 6.6) QString | readSymLink() const |
班级QFileSystemModel :
(since 6.6) QDateTime | lastModified(const QModelIndex &index, const QTimeZone &tz) const |
班级QHostAddress :
(since 6.6) bool | isPrivateUse() const |
(since 6.6) const void * | constData() const |
(since 6.6) void * | data() |
(since 6.6) const void * | data() const |
(since 6.6) QMetaType | metaType() const |
(since 6.6) QJSPrimitiveValue | to() const |
班级QList :
(since 6.6) QList<T> & | assign(std::initializer_list<T> l) |
(since 6.6) QList<T> & | assign(InputIterator first, InputIterator last) |
(since 6.6) QList<T> & | assign(qsizetype n, QList<T>::parameter_type t) |
班级QMessageAuthenticationCode :
(since 6.6) QMessageAuthenticationCode & | operator=(QMessageAuthenticationCode &&other) |
(since 6.6) QByteArrayView | resultView() const |
(since 6.6) void | swap(QMessageAuthenticationCode &other) |
班级QMessageBox :
(since 6.6) void | setOption(QMessageBox::Option option, bool on) |
(since 6.6) bool | testOption(QMessageBox::Option option) const |
班级QMetaEnum :
(since 6.6) QMetaType | metaType() const |
班级QMetaProperty :
(since 6.6) bool | write(QObject *object, QVariant &&v) const |
(since 6.6) bool | writeOnGadget(void *gadget, QVariant &&value) const |
班级QMetaType :
(since 6.6) QMetaType | underlyingType() const |
班级QMutex :
(since 6.6) bool | tryLock(QDeadlineTimer timer) |
班级QSGD3D12Texture :
(since 6.6) QSGTexture * | fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options) |
(since 6.6) bool | qAreNtfsPermissionChecksEnabled() |
(since 6.6) bool | qDisableNtfsPermissionChecks() |
(since 6.6) bool | qEnableNtfsPermissionChecks() |
班级QObject :
(since 6.6) bool | setProperty(const char *name, QVariant &&value) |
班级QOpcUaClient :
(since 6.6) QOpcUaConnectionSettings | connectionSettings() const |
(since 6.6) void | setConnectionSettings(const QOpcUaConnectionSettings &connectionSettings) |
班级QPalette :
(since 6.6) const QBrush & | accent() const |
(since 6.6) bool | operator==(const QPalette &p) const |
班级QPdfDocument :
(since 6.6) int | pageIndexForLabel(const QString &label) |
班级Key :
(since 6.6) size_t | qHash(const QPixmapCache::Key &key, size_t seed) |
班级QPointer :
(since 6.6) QPointer<T> & | operator=(const QPointer<X> &other) |
班级QProcess :
(since 6.6) void | setUnixProcessParameters(const QProcess::UnixProcessParameters ¶ms) |
(since 6.6) void | setUnixProcessParameters(QProcess::UnixProcessFlags flagsOnly) |
(since 6.6) QProcess::UnixProcessParameters | unixProcessParameters() const |
班级QPromise :
(since 6.6) bool | addResults(const QList<T> &results) |
(since 6.6) bool | emplaceResult(Args &&... args) |
(since 6.6) bool | emplaceResultAt(int index, Args &&... args) |
班级QProtobufMessage :
(since 6.6) bool | setProperty(QAnyStringView propertyName, QVariant &&value) |
班级QQmlEngine :
(since 6.6) void | markCurrentFunctionAsTranslationBinding() |
班级QQuick3DGeometry :
(since 6.6) void | addTargetAttribute(quint32 targetId, QQuick3DGeometry::Attribute::Semantic semantic, int offset, int stride) |
(since 6.6) void | addTargetAttribute(const QQuick3DGeometry::TargetAttribute &attribute) |
(since 6.6) void | setTargetData(const QByteArray &data) |
(since 6.6) void | setTargetData(int offset, const QByteArray &data) |
(since 6.6) QQuick3DGeometry::TargetAttribute | targetAttribute(int index) const |
(since 6.6) int | targetAttributeCount() const |
(since 6.6) QByteArray | targetData() const |
班级QQuickGraphicsConfiguration :
(since 6.6) void | setTimestamps(bool enable) |
(since 6.6) bool | timestampsEnabled() const |
(since 6.6) QQuickGraphicsDevice | fromRhi(QRhi *rhi) |
(since 6.6) QRhiCommandBuffer * | commandBuffer() const |
(since 6.6) QRhi * | rhi() const |
(since 6.6) QQuickRenderTarget | fromD3D12Texture(void *texture, int resourceState, uint format, const QSize &pixelSize, int sampleCount) |
(since 6.6) QQuickRenderTarget | fromRhiRenderTarget(QRhiRenderTarget *renderTarget) |
班级QQuickWindow :
(since 6.6) QSGTexture * | createTextureFromRhiTexture(QRhiTexture *texture, QQuickWindow::CreateTextureOptions options) const |
(since 6.6) QRhi * | rhi() const |
(since 6.6) QRhiSwapChain * | swapChain() const |
班级QReadWriteLock :
(since 6.6) bool | tryLockForRead(QDeadlineTimer timeout) |
(since 6.6) bool | tryLockForWrite(QDeadlineTimer timeout) |
班级QRecursiveMutex :
(since 6.6) bool | tryLock(QDeadlineTimer timeout) |
班级QSGRenderNode :
(since 6.6) QRhiCommandBuffer * | commandBuffer() const |
(since 6.6) QRhiRenderTarget * | renderTarget() const |
班级QSemaphore :
(since 6.6) bool | tryAcquire(int n, QDeadlineTimer timer) |
班级QSharedMemory :
(since 6.6) QNativeIpcKey | nativeIpcKey() const |
(since 6.6) void | setNativeKey(const QNativeIpcKey &key) |
类QSignalSpy :
(since 6.6) bool | wait(std::chrono::毫秒timeout) |
班级QSqlField :
(since 6.6) void | swap(QSqlField &other) |
班级QSqlIndex :
(since 6.6) QSqlIndex & | operator=(QSqlIndex &&other) |
班级QSqlQuery :
(since 6.6) QString | boundValueName(int pos) const |
(since 6.6) QStringList | boundValueNames() const |
班级QSqlRecord :
班级QString :
(since 6.6) QString & | assign(QAnyStringView v) |
(since 6.6) QString & | assign(InputIterator first, InputIterator last) |
(since 6.6) QString & | assign(qsizetype n, QChar c) |
(since 6.6) QString | fromEcmaString(emscripten::val jsString) |
(since 6.6) emscripten::val | toEcmaString() const |
班级QStringDecoder :
(since 6.6) char16_t * | appendToBuffer(char16_t *out, QByteArrayView in) |
班级QTextListFormat :
班级QTextToSpeech :
(since 6.6) void | aboutToSynthesize(qsizetype id) |
(since 6.6) qsizetype | enqueue(const QString &utterance) |
(since 6.6) QList<QVoice> | findVoices(Args &&... args) const |
(since 6.6) void | sayingWord(const QString &word, qsizetype id, qsizetype start, qsizetype length) |
(since 6.6) void | synthesize(const QString &text, Functor &&functor) |
(since 6.6) void | synthesize(const QString &text, const QObject *context, Functor &&functor) |
班级QThread :
(since 6.6) void | sleep(std::chrono::nanoseconds nsecs) |
班级QUuid :
(since 6.6) QUuid | fromBytes(const void *bytes, QSysInfo::Endian order) |
(since 6.6) QUuid | fromUInt128(quint128 uuid, QSysInfo::Endian order) |
(since 6.6) QUuid::Id128Bytes | toBytes(QSysInfo::Endian order) const |
(since 6.6) quint128 | toUInt128(QSysInfo::Endian order) const |
班级Id128Bytes :
(since 6.6) QUuid::Id128Bytes | qFromBigEndian(QUuid::Id128Bytes src) |
(since 6.6) QUuid::Id128Bytes | qFromLittleEndian(QUuid::Id128Bytes src) |
(since 6.6) QUuid::Id128Bytes | qToBigEndian(QUuid::Id128Bytes src) |
(since 6.6) QUuid::Id128Bytes | qToLittleEndian(QUuid::Id128Bytes src) |
班级QVarLengthArray :
(since 6.6) QVarLengthArray<T, Prealloc> & | assign(std::initializer_list<T> list) |
(since 6.6) QVarLengthArray<T, Prealloc> & | assign(InputIterator first, InputIterator last) |
(since 6.6) QVarLengthArray<T, Prealloc> & | assign(qsizetype n, const T &t) |
班级QVariant :
(since 6.6) T & | emplace(Args &&... args) |
(since 6.6) T & | emplace(std::initializer_list<U> list, Args &&... args) |
(since 6.6) QVariant | fromStdVariant(std::variant<Types...> &&value) |
(since 6.6) QVariant | fromValue(T &&value) |
(since 6.6) T & | get(QVariant &v) |
(since 6.6) T && | get(QVariant &&v) |
(since 6.6) const T & | get(const QVariant &v) |
(since 6.6) const T && | get(const QVariant &&v) |
(since 6.6) T * | get_if(QVariant *v) |
(since 6.6) const T * | get_if(const QVariant *v) |
班级QWebEnginePage :
(since 6.6) QString | devToolsId() const |
(since 6.6) void | setAdditionalResponseHeaders(const QMultiMap<QByteArray, QByteArray> &additionalResponseHeaders) const |
班级QWebSocket :
(since 6.6) void | authenticationRequired(QAuthenticator *authenticator) |
班级QWidget :
(since 6.6) void | setTabOrder(std::initializer_list<QWidget *> widgets) |
(since 6.6) bool | hasStandaloneDeclaration() const |
命名空间中的新函数
(since 6.6) QFuture<ValueType> | makeReadyRangeFuture(std::initializer_list<ValueType> values) |
(since 6.6) QFuture<QtFuture::ContainedType<Container>> | makeReadyRangeFuture(Container &&container) |
(since 6.6) QFuture<std::decay_t<T>> | makeReadyValueFuture(T &&value) |
(since 6.6) QFuture<void> | makeReadyVoidFuture() |
新全局函数
(since 6.6) QString | qWebEngineGetDomainAndRegistry(const QUrl &url) |
新宏
(since 6.6) | QT_NO_QEXCHANGE |
(since 6.6) | QT_SUPPORTS_INT128 |
(since 6.6) qint128 | Q_INT128_C(literal) |
(since 6.6) | Q_INT128_MAX |
(since 6.6) | Q_INT128_MIN |
(since 6.6) | Q_NODISCARD_CTOR |
(since 6.6) quint128 | Q_UINT128_C(literal) |
(since 6.6) | Q_UINT128_MAX |
新枚举类型
(since 6.6) enum | CommunicationMode { Access, Advertise, Default } |
(since 6.6) enum class | ReferenceSurface { Map, Globe } |
(since 6.6) enum class | Option { DontUseNativeDialog } |
(since 6.6) enum class | UnixProcessFlag { ResetSignalHandlers, IgnoreSigPipe, CloseFileDescriptors, UseVFork, CreateNewSession, …, DisableCoreDumps } |
(since 6.6) enum class | Capability { None, Speak, PauseResume, WordByWordProgress, Synthesize } |
新枚举值
enum value | BoundaryHint::Utterance |
enum value | ColorRole::Accent |
enum value | Flag::FetchApiAllowed |
enum value | GraphicsApi::Direct3D12 |
enum value | Language::Baluchi |
enum value | Language::Ligurian |
enum value | Language::Rohingya |
enum value | Language::Torwali |
enum value | Property::ListStart |
enum value | RelationFlag::Described |
enum value | RelationFlag::DescriptionFor |
enum value | RelationFlag::FlowsFrom |
enum value | RelationFlag::FlowsTo |
enum value | Resource::GraphicsQueueFamilyIndexResource |
enum value | Resource::GraphicsQueueIndexResource |
enum value | Script::HanifiScript |
enum value | TabPosition::Moving |
enum value | Type::DevicePixelRatioChange |
enum value | WebAction::ChangeTextDirectionLTR |
enum value | WebAction::ChangeTextDirectionRTL |
enum value | WildcardConversionOption::NonPathWildcardConversion |
新类型别名
新属性
|
|
新变量
(since 6.6) | Windows11_23H2 |
新 QML 类型
新 QML 属性
QML 类型CaptureSession :
(since 6.6) | windowCapture : WindowCapture |
QML 类型CharacterController :
(since 6.6) | enableShapeHitCallback : bool |
QML 类型ColorGroup :
(since 6.6) | accent : color |
QML 类型Dial :
(since 6.6) | endAngle : real |
(since 6.6) | startAngle : real |
QML 类型MediaRecorder :
(since 6.6) | audioBitRate : int |
(since 6.6) | audioChannelCount : int |
(since 6.6) | audioSampleRate : int |
(since 6.6) | encodingMode : enumeration |
(since 6.6) | videoBitRate : int |
(since 6.6) | videoFrameRate : real |
(since 6.6) | videoResolution : Size |
QML 类型Path :
(since 6.6) | simplify : bool |
QML 类型PathText :
(since 6.6) | font.features : object |
QML 类型RenderStats :
(since 6.6) | lastCompletedGpuTime : real |
QML 类型ScrollView :
(since 6.6) | effectiveScrollBarHeight : real |
(since 6.6) | effectiveScrollBarWidth : real |
QML 类型Shape :
(since 6.6) | boundingRect : rect |
(since 6.6) | preferredRendererType : enumeration |
QML 类型SpinBox :
(since 6.6) | live : bool |
QML 类型TableView :
(since 6.6) | selectionMode : enumeration |
QML 类型Text :
(since 6.6) | font.features : object |
QML 类型TextEdit :
(since 6.6) | font.features : object |
QML 类型TextInput :
(since 6.6) | font.features : object |
QML 类型TextToSpeech :
(since 6.6) | engineCapabilities : enumeration |
QML 类型TreeView :
(since 6.6) | rootIndex : QModelIndex |
QML 类型XMLHttpRequest :
(since 6.6) | responseURL : string |
QML 类型voice :
(since 6.6) | language : enumerator |
新 QML 信号
(since 6.6) | aboutToSynthesize(number id) |
(since 6.6) | sayingWord(string word, int id, int start, int length) |
(since 6.6) | shapeHit(PhysicsNode *body, vector3D position, vector3D impulse, vector3D normal) |
(since 6.6) | wrapped(Dial.WrapDirection direction) |
新 QML 方法
QML 类型TextToSpeech :
(since 6.6) | enqueue(string utterance) |
(since 6.6) list<voice> | findVoices(map criteria) |
QML 类型XMLHttpRequest :
(since 6.6) void | overrideMimeType(mime) |
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.