Qt 6.6 中的新类和函数
本页包含 Qt 6.6 中引入的所有新类和函数的完整列表。
新命名空间
(since 6.6) 命名空间 | 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
新成员函数
(自6.6版本) void | tokenRequestErrorOccurred(QAbstractOAuth::Error error, const QString &errorString) |
(自6.6版本) size_t | qHash(const QBluetoothAddress &key, size_t seed) |
(自6.6版本) QBluetoothPermission::CommunicationModes | communicationModes() const |
(自6.6版本) void | setCommunicationModes(QBluetoothPermission::CommunicationModes modes) |
(自6.6版本) QBluetoothUuid | fromCBUUID(CBUUID *cbUuid) |
(自6.6版本) CBUUID * | toCBUUID() const |
(自6.6版本) QByteArray & | assign(QByteArrayView v) |
(自6.6版本) QByteArray & | assign(qsizetype n, char c) |
(自6.6版本) QByteArray & | assign(InputIterator first, InputIterator last) |
类 QDebug
(自6.6版本) QDebug & | operator<<(std::chrono::duration<Rep, Period> duration) |
(自6.6版本) void | setNameserver(const QHostAddress &nameserver, quint16 port) |
(自6.6版本) QElapsedTimer::Duration | durationElapsed() const |
(自6.6版本) QElapsedTimer::Duration | durationTo(const QElapsedTimer &other) const |
(自6.6版本) QDateTime | birthTime(const QTimeZone &tz) const |
(自6.6版本) QDateTime | fileTime(QFileDevice::FileTime time, const QTimeZone &tz) const |
(自6.6版本) std::filesystem::path | filesystemReadSymLink() const |
(自6.6版本) QDateTime | lastModified(const QTimeZone &tz) const |
(自6.6版本) QDateTime | lastRead(const QTimeZone &tz) const |
(自6.6版本) QDateTime | metadataChangeTime(const QTimeZone &tz) const |
(自6.6版本) QString | readSymLink() const |
(自6.6版本) QDateTime | lastModified(const QModelIndex &index, const QTimeZone &tz) const |
(自6.6版本) bool | isPrivateUse() const |
(自6.6版本) const void * | constData() const |
(自6.6以来) void * | 数据() |
(自6.6版本) const void * | 数据() const |
(自6.6以来) QMetaType | metaType() const |
(自6.6以来) QJSPrimitiveValue | to() const |
类 QList
(自6.6以来) QList<T> & | assign(qsizetype n, QList<T>::parameter_type t) |
(自6.6以来) QList<T> & | assign(InputIterator first, InputIterator last) |
(自6.6以来) QList<T> & | assign(std::initializer_list<T> l) |
(自6.6以来) QMessageAuthenticationCode & | operator=(QMessageAuthenticationCode &&other) |
(自6.6以来) QByteArrayView | resultView() const |
(自6.6版本) void | swap(QMessageAuthenticationCode &other) |
(自6.6版本) void | setOption(QMessageBox::Option option, bool on) |
(自6.6版本) bool | testOption(QMessageBox::Option option) const |
(自6.6以来) QMetaType | metaType() const |
(自6.6版本) bool | write(QObject *object, QVariant &&v) const |
(自6.6版本) bool | writeOnGadget(void *gadget, QVariant &&value) const |
(自6.6以来) QMetaType | underlyingType() const |
类 QMutex
(自6.6版本) bool | tryLock(QDeadlineTimer timer) |
(自6.6以来) QSGTexture * | fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options) |
(自6.6版本) bool | qAreNtfsPermissionChecksEnabled() |
(自6.6版本) bool | qDisableNtfsPermissionChecks() |
(自6.6版本) bool | qEnableNtfsPermissionChecks() |
类 QObject
(自6.6版本) bool | setProperty(const char *name, QVariant &&value) |
(自6.6以来) QOpcUaConnectionSettings | connectionSettings() const |
(自6.6版本) void | setConnectionSettings(const QOpcUaConnectionSettings &connectionSettings) |
类 QPalette
(自6.6以来) const QBrush & | highlight() const |
(自6.6版本) bool | operator==(const QPalette &p) const |
(自6.6以来) int | pageIndexForLabel(const QString &label) |
类 QPointer
(自6.6以来) QPointer<T> & | operator=(const QPointer<X> &other) |
类 QProcess
(自6.6版本) void | setUnixProcessParameters(const QProcess::UnixProcessParameters ¶ms) |
(自6.6版本) void | setUnixProcessParameters(QProcess::UnixProcessFlags flagsOnly) |
(自6.6以来) QProcess::UnixProcessParameters | unixProcessParameters() const |
类 QPromise
(自6.6版本) bool | addResults(const QList<T> &results) |
(自6.6版本) bool | emplaceResult(Args &&... args) |
(自6.6版本) bool | emplaceResultAt(int index, Args &&... args) |
(自6.6版本) bool | setProperty(QAnyStringView propertyName, QVariant &&value) |
(自6.6版本) void | 将当前函数标记为翻译绑定() |
(自6.6版本) void | addTargetAttribute(quint32 targetId, QQuick3DGeometry::Attribute::Semantic semantic, int offset, int stride) |
(自6.6版本) void | addTargetAttribute(const QQuick3DGeometry::TargetAttribute &attribute) |
(自6.6版本) void | setTargetData(const QByteArray &data) |
(自6.6版本) void | setTargetData(int offset, const QByteArray &data) |
(since 6.6) QQuick3DGeometry::TargetAttribute | targetAttribute(int index) const |
(自6.6以来) int | targetAttributeCount() const |
(since 6.6) QByteArray | targetData() const |
(自6.6版本) void | setTimestamps(bool enable) |
(自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) |
(自6.6以来) QSGTexture * | createTextureFromRhiTexture(QRhiTexture *texture, QQuickWindow::CreateTextureOptions options) const |
(since 6.6) QRhi * | rhi() const |
(since 6.6) QRhiSwapChain * | swapChain() const |
(自6.6版本) bool | tryLockForRead(QDeadlineTimer timeout) |
(自6.6版本) bool | tryLockForWrite(QDeadlineTimer timeout) |
(自6.6版本) bool | tryLock(QDeadlineTimer timeout) |
(since 6.6) QRhiCommandBuffer * | commandBuffer() const |
(since 6.6) QRhiRenderTarget * | renderTarget() const |
(自6.6版本) bool | tryAcquire(int n, QDeadlineTimer timer) |
(since 6.6) QNativeIpcKey | nativeIpcKey() const |
(自6.6版本) void | setNativeKey(const QNativeIpcKey &key) |
(自6.6版本) bool | wait(std::chrono::milliseconds timeout) |
(自6.6版本) void | swap(QSqlField &other) |
(since 6.6) QSqlIndex & | operator=(QSqlIndex &&other) |
(自6.6版本) QString | boundValueName(int pos) const |
(since 6.6) QStringList | boundValueNames() const |
(since 6.6) QString & | assign(QAnyStringView v) |
(since 6.6) QString & | assign(qsizetype n, QChar c) |
(since 6.6) QString & | assign(InputIterator first, InputIterator last) |
(自6.6版本) QString | fromEcmaString(emscripten::val jsString) |
(since 6.6) emscripten::val | toEcmaString() const |
(since 6.6) char16_t * | appendToBuffer(char16_t *out, QByteArrayView in) |
(自6.6版本) void | aboutToSynthesize(qsizetype id) |
(since 6.6) qsizetype | enqueue(const QString &utterance) |
(since 6.6) QList<QVoice> | findVoices(Args &&... args) const |
(自6.6版本) void | sayingWord(const QString &word, qsizetype id, qsizetype start, qsizetype length) |
(自6.6版本) void | synthesize(const QString &text, const QObject *context, Functor &&functor) |
(自6.6版本) void | synthesize(const QString &text, Functor &&functor) |
(自6.6版本) void | sleep(std::chrono::nanoseconds nsecs) |
(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 |
(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) |
(since 6.6) QVarLengthArray<T, Prealloc> & | assign(qsizetype n, const T &t) |
(since 6.6) QVarLengthArray<T, Prealloc> & | assign(InputIterator first, InputIterator last) |
(since 6.6) QVarLengthArray<T, Prealloc> & | assign(std::initializer_list<T> list) |
类 QVariant
(自6.6) T & | emplace(Args &&... args) |
(自6.6) T & | emplace(std::initializer_list<U> list, Args &&... args) |
(自6.6) QVariant | fromStdVariant(std::variant<Types...> &&value) |
(自6.6) QVariant | fromValue(T &&value) |
(自6.6) T & | get(QVariant &v) |
(自6.6) const T & | get(const QVariant &v) |
(自6.6) T && | get(QVariant &&v) |
(自6.6) const T && | get(const QVariant &&v) |
(自6.6) T * | get_if(QVariant *v) |
(自6.6) const T * | get_if(const QVariant *v) |
(自6.6版本) QString | devToolsId() const |
(自6.6版本) void | setAdditionalResponseHeaders(const QMultiMap<QByteArray, QByteArray> &additionalResponseHeaders) const |
(自6.6版本) void | authenticationRequired(QAuthenticator *authenticator) |
类 QWidget
(自6.6版本) void | setTabOrder(std::initializer_list<QWidget *> widgets) |
(自6.6版本) bool | hasStandaloneDeclaration() const |
命名空间中的新函数
(自6.6) QFuture<ValueType> | makeReadyRangeFuture(std::initializer_list<ValueType> values) |
(自6.6) QFuture<QtFuture::ContainedType<Container>> | makeReadyRangeFuture(Container &&container) |
(自6.6) QFuture<std::decay_t<T>> | makeReadyValueFuture(T &&value) |
(自6.6) QFuture<void> | makeReadyVoidFuture() |
全局函数的新增
(自6.6版本) QString | qWebEngineGetDomainAndRegistry(const QUrl &url) |
新宏
(自6.6) | QT_SUPPORTS_INT128 |
(自6.6) qint128 | Q_INT128_C(literal) |
(自6.6) | Q_INT128_MAX |
(自6.6) | Q_INT128_MIN |
(自6.6) | Q_NODISCARD_CTOR |
(since 6.6) quint128 | Q_UINT128_C(literal) |
(自6.6) | Q_UINT128_MAX |
新枚举类型
(自6.6) enum | CommunicationMode { Access, Advertise, Default } |
(自6.6) enum class | ReferenceSurface { Map, Globe } |
(自6.6) enum class | Option { DontUseNativeDialog } |
(自6.6) enum class | UnixProcessFlag { ResetSignalHandlers, IgnoreSigPipe, CloseFileDescriptors, UseVFork, CreateNewSession, …, ResetIds } |
(自6.6) enum class | 能力 { None, Speak, PauseResume, WordByWordProgress, Synthesize } |
新枚举值
新类型别名
新属性
|
|
新 QML 类型
新 QML 属性
QML 类型 CaptureSession
(自6.6) | windowCapture : WindowCapture |
QML 类型 CharacterController
(自6.6) | enableShapeHitCallback : bool |
QML 类型 ColorGroup
(自6.6) | accent : color |
QML 类型 Dial
(自6.6) | endAngle : real |
(自6.6) | startAngle : real |
QML 类型 MediaRecorder
(自6.6) | audioBitRate : int |
(自6.6) | audioChannelCount : int |
(自6.6) | audioSampleRate : int |
(自6.6) | encodingMode : enumeration |
(自6.6) | videoBitRate : int |
(自6.6) | videoFrameRate : real |
(自6.6) | videoResolution : Size |
QML 类型 Path
(自6.6) | simplify : bool |
QML 类型 PathText
(自6.6) | font.features : object |
QML 类型 RenderStats
(自6.6) | lastCompletedGpuTime : float |
QML 类型 ScrollView
(自6.6) | effectiveScrollBarHeight : real |
(自6.6) | effectiveScrollBarWidth : real |
QML 类型 Shape
(自6.6) | boundingRect : rect |
(自6.6) | preferredRendererType : 枚举 |
QML 类型 SpinBox
(自6.6) | live : bool |
QML 类型 TableView
(自6.6) | selectionMode : 枚举 |
QML 类型 Text
(自6.6) | font.features : 对象 |
QML 类型 TextEdit
(自6.6) | font.features : 对象 |
QML 类型 TextInput
(自6.6) | font.features : 对象 |
QML 类型 TextToSpeech
(自6.6) | engineCapabilities : 枚举 |
QML 类型 TreeView
(自6.6) | rootIndex : QModelIndex |
QML 类型 XMLHttpRequest
(自6.6) | responseURL : string |
QML 类型 voice
(自6.6) | language : 枚举 |
新的 QML 信号
(自6.6) | aboutToSynthesize(number id) |
(自6.6) | sayingWord(string word, int id, int start, int length) |
(自6.6) | shapeHit(PhysicsNode *body, vector3D position, vector3D impulse, vector3D normal) |
(自6.6) | wrapped(Dial.WrapDirection direction) |
新的 QML 方法
QML 类型 TextToSpeech
(自6.6) | enqueue(string utterance) |
(自 6.6) list<voice> | findVoices(map criteria) |
QML 类型 XMLHttpRequest
(自6.6版本) void | overrideMimeType(mime) |
© 2024 Qt 公司 Ltd. 本文档中的贡献版权属于各自的拥有者。本提供文档是在 Free Software Foundation 发布的协议下授予的 GNU 自由文档许可证版本 1.3。Qt 和相应的标志是 Qt 公司在芬兰及全球其他国家的商标。所有其他商标均为其各自所有者的财产。