Qt 6.5 新增类和函数
此页面包含 Qt 6.5 中的所有新类和函数的完整列表。
新命名空间
(自 6.5) 命名空间 | QtCanBus |
(自 6.5) 命名空间 | QtProtobuf |
新类
- A
- QAbstractGrpcChannel
- QAbstractGrpcClient
- QAbstractProtobufSerializer
- QAccessibleSelectionInterface
- C
- QCalendarPermission
- QCameraPermission
- QCanDbcFileParser
- QCanFrameProcessor
- QCanMessageDescription
- QCanSignalDescription
- QCanUniqueIdDescription
- QContactsPermission
新成员函数
(自 6.5) void | setSslConfiguration(const QSslConfiguration &configuration) |
(自 6.5) QSslConfiguration | sslConfiguration() const |
(自 6.5) void | sslConfigurationChanged(const QSslConfiguration &configuration) |
(自 6.5) QAccessibleSelectionInterface * | selectionInterface() |
(自 6.5) void | chop(qsizetype n) |
(自 6.5) QAnyStringView | chopped(qsizetype n) const |
(自 6.5) QAnyStringView | first(qsizetype n) const |
(自 6.5) QAnyStringView | last(qsizetype n) const |
(自 6.5) QAnyStringView | sliced(qsizetype pos) const |
(自 6.5) QAnyStringView | sliced(qsizetype pos, qsizetype n) const |
(自 6.5) void | truncate(qsizetype n) |
(自 6.5) void | start(std::chrono::milliseconds duration, QObject *object) |
(自 6.5) void | start(std::chrono::milliseconds duration, Qt::TimerType timerType, QObject *obj) |
(since 6.5) QByteArray::iterator | erase(QByteArray::const_iterator it) |
(since 6.5) QByteArray | fromEcmaUint8Array(emscripten::val uint8array) |
(since 6.5) QByteArray & | removeAt(qsizetype pos) |
(since 6.5) QByteArray & | removeFirst() |
(since 6.5) QByteArray & | removeLast() |
(since 6.5) emscripten::val | toEcmaUint8Array() |
(since 6.5) Qt::PermissionStatus | checkPermission(const QPermission &permission) |
(自 6.5) void | requestPermission(const QPermission &permission, Functor &&functor) |
(自 6.5) void | requestPermission(const QPermission &permission, const QObject *context, Functor functor) |
(since 6.5) QCryptographicHash::Algorithm | algorithm() const |
(since 6.5) QCryptographicHash & | operator=(QCryptographicHash &&other) |
(since 6.5) bool | supportsAlgorithm(QCryptographicHash::Algorithm method) |
(自 6.5) void | swap(QCryptographicHash &other) |
类 QDate
(since 6.5) QDateTime | endOfDay() const |
(since 6.5) QDateTime | startOfDay() const |
(since 6.5) QDateTime | currentDateTime(const QTimeZone &zone) |
(since 6.5) QDateTime | fromMSecsSinceEpoch(qint64 msecs) |
(since 6.5) QDateTime | fromSecsSinceEpoch(qint64 secs) |
(since 6.5) QTimeZone | timeRepresentation() const |
类 QDebug
(since 6.5) QDebug & | operator<<(const std::basic_string<Char, Args...> &s) |
(since 6.5) QDebug & | operator<<(std::basic_string_view<Char, Args...> s) |
(since 6.5) QDomDocument::ParseResult | setContent(const QByteArray &data, QDomDocument::ParseOptions options) |
(since 6.5) QDomDocument::ParseResult | setContent(QAnyStringView data, QDomDocument::ParseOptions options) |
(since 6.5) QDomDocument::ParseResult | setContent(QIODevice *device, QDomDocument::ParseOptions options) |
(since 6.5) QDomDocument::ParseResult | setContent(QXmlStreamReader *reader, QDomDocument::ParseOptions options) |
(自 6.5) void | setSourceString(const QString &sourceString) |
(自 6.5) void | setStringIndexes(const QList<qsizetype> &stringIndexes) |
(since 6.5) QString | sourceString() const |
(since 6.5) QList<qsizetype> | stringIndexes() const |
(自 6.5) void | setBadgeNumber(qint64 number) |
(since 6.5) bool | operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs) |
(since 6.5) bool | operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs) |
(since 6.5) size_t | qHash(const QHttp1Configuration &key, size_t seed) |
(since 6.5) QHostAddress | localAddress() const |
(since 6.5) quint16 | localPort() const |
(since 6.5) quint16 | remotePort() const |
(自 6.5) void | sendResponse(const QHttpServerResponse &response) |
(since 6.5) int | compare(QUtf8StringView str, Qt::CaseSensitivity cs) const |
(since 6.5) bool | isSharedBuild() |
(自 6.5) void | fatal(const QLoggingCategory &cat, const char *msg, ...) const |
(自 6.5) void | fatal(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const |
(since 6.5) QDebug | fatal() const |
(since 6.5) QDebug | fatal(const QLoggingCategory &cat) const |
(since 6.5) QDebug | fatal(QMessageLogger::CategoryFunction catFunc) const |
(since 6.5) bool | invoke(QObject *obj, Qt::ConnectionType type, QTemplatedMetaMethodReturnArgument<ReturnArg> ret, Args &&... arguments) const |
(since 6.5) bool | invoke(QObject *obj, Qt::ConnectionType type, Args &&... arguments) const |
(since 6.5) bool | invoke(QObject *obj, QTemplatedMetaMethodReturnArgument<ReturnArg> ret, Args &&... arguments) const |
(since 6.5) bool | invoke(QObject *obj, Args &&... arguments) const |
(since 6.5) bool | invokeOnGadget(void *gadget, QTemplatedMetaMethodReturnArgument<ReturnArg> ret, Args &&... arguments) const |
(since 6.5) bool | invokeOnGadget(void *gadget, Args &&... arguments) const |
(since 6.5) bool | invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QTemplatedMetaMethodReturnArgument<ReturnArg> ret, Args &&... args) |
(since 6.5) bool | invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, Args &&... args) |
(since 6.5) bool | invokeMethod(QObject *obj, const char *member, QTemplatedMetaMethodReturnArgument<ReturnArg> ret, Args &&... args) |
(since 6.5) bool | invokeMethod(QObject *obj, const char *member, Args &&... args) |
(since 6.5) QObject * | newInstance(Args &&... arguments) const |
(since 6.5) bool | isCopyConstructible() const |
(since 6.5) bool | isDefaultConstructible() const |
(since 6.5) bool | isDestructible() const |
(since 6.5) bool | isMoveConstructible() const |
(since 6.5) QDebug | operator<<(QDebug d, QMetaType m) |
(since 6.5) int | qRegisterMetaType(QMetaType meta) |
(自 6.5) void | registerType() const |
(since 6.5) virtual void | invalidateContext() = 0 |
(since 6.5) QHttp1Configuration | http1Configuration() const |
(自 6.5) void | setHttp1Configuration(const QHttp1Configuration &configuration) |
(since 6.5) QOpenGLWidget::TargetBuffer | currentTargetBuffer() const |
(since 6.5) GLuint | defaultFramebufferObject(QOpenGLWidget::TargetBuffer targetBuffer) const |
(since 6.5) QImage | grabFramebuffer(QOpenGLWidget::TargetBuffer targetBuffer) |
(自 6.5) void | makeCurrent(QOpenGLWidget::TargetBuffer targetBuffer) |
(自 6.5) void | loadFromModule(QAnyStringView uri, QAnyStringView typeName) |
(since 6.5) bool | isBound() const |
(自 6.5) void | loadFromModule(QAnyStringView uri, QAnyStringView typeName, QQmlComponent::CompilationMode mode) |
(自 6.5) void | offlineStoragePathChanged() |
(since 6.5) T | singletonInstance(QAnyStringView uri, QAnyStringView typeName) |
(since 6.5) bool | isAutomaticPipelineCacheEnabled() const |
(自 6.5) void | setAutomaticPipelineCache(bool enable) |
(自 6.5) void | setDebugLayer(bool enable) |
(自 6.5) void | setDebugMarkers(bool enable) |
(自 6.5) void | setPipelineCacheLoadFile(const QString &filename) |
(自 6.5) void | setPipelineCacheSaveFile(const QString &filename) |
(自 6.5) void | setPreferSoftwareDevice(bool enable) |
类 QRectF
(since 6.5) QRectF | fromDOMRect(emscripten::val domRect) |
(since 6.5) emscripten::val | toDOMRect() const |
(since 6.5) QRegularExpressionMatchIterator | globalMatchView(QStringView subjectView, qsizetype offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const |
(since 6.5) QRegularExpressionMatch | matchView(QStringView subjectView, qsizetype offset, QRegularExpression::MatchType matchType, QRegularExpression::MatchOptions matchOptions) const |
(自6.5版本起) const QMatrix4x4 * | projectionMatrix() const |
类 QString
(自6.5版本起) QString & | append(QUtf8StringView str) |
(自6.5版本起) QString::iterator | erase(QString::const_iterator it) |
(自6.5版本起) QString & | insert(qsizetype position, QUtf8StringView str) |
(自6.5版本起) QString & | operator+=(QUtf8StringView str) |
(自6.5版本起) QString & | prepend(QUtf8StringView str) |
(自6.5版本起) QString & | removeAt(qsizetype pos) |
(自6.5版本起) QString & | removeFirst() |
(自6.5版本起) QString & | removeLast() |
(since 6.5) int | compare(QUtf8StringView str, Qt::CaseSensitivity cs) const |
(自6.5版本起) QSvgGenerator::SvgVersion | svgVersion() const |
(自6.5版本起) QList | glyphRuns(int from, int length, QTextLayout::GlyphRunRetrievalFlags retrievalFlags) const |
(自6.5版本起) QList | glyphRuns(int from, int length, QTextLayout::GlyphRunRetrievalFlags retrievalFlags) const |
(since 6.5) QTimeZone | asBackendZone() const |
(since 6.5) int | fixedSecondsAheadOfUtc() const |
(since 6.5) QTimeZone | fromDurationAheadOfUtc(std::chrono::seconds offset) |
(since 6.5) QTimeZone | fromSecondsAheadOfUtc(int offset) |
(since 6.5) bool | isUtcOrFixedOffset(Qt::TimeSpec spec) |
(since 6.5) bool | isUtcOrFixedOffset() const |
(自6.5版本起) Qt::TimeSpec | timeSpec() const |
(自6.5版本起) QTransform & | rotate(qreal a, Qt::Axis axis, qreal distanceToPlane) |
(自6.5版本起) QTransform & | rotateRadians(qreal a, Qt::Axis axis, qreal distanceToPlane) |
(since 6.5) int | compare(QUtf8StringView str, Qt::CaseSensitivity cs) const |
(since 6.5) int | compare(QStringView str, Qt::CaseSensitivity cs) const |
(since 6.5) int | compare(QLatin1StringView str, Qt::CaseSensitivity cs) const |
(自 6.5) void | clearDebugOutputFilters() |
(自 6.5) void | installDebugOutputFilter(QVulkanInstance::DebugUtilsFilter filter) |
(since 6.5) bool | isPushServiceEnabled() const |
(自 6.5) void | setPushServiceEnabled(bool enable) |
(自6.5版本起) QHash | httpHeaders() const |
(自 6.5) void | errorOccurred(QAbstractSocket::SocketError error) |
命名空间中的新功能
(since 6.5) bool | currentTestResolved() |
(自 6.5) void | qRegisterTestCase(const QString &name, QTest::TestEntryFunction entryFunction) |
(since 6.5) char * | toString(const QKeySequence &ks) |
新宏 definitions
(since 6.5) | QML_CONSTRUCTIBLE_VALUE |
(since 6.5) | QML_STRUCTURED_VALUE |
(since 6.5) | Q_DECLARE_EXPORTED_LOGGING_CATEGORY(name, EXPORT_MACRO) |
(since 6.5) | Q_PROCESSOR_LOONGARCH |
(since 6.5) | Q_PROCESSOR_LOONGARCH_32 |
(since 6.5) | Q_PROCESSOR_LOONGARCH_64 |
(自 6.5) void | Q_UNREACHABLE_RETURN(...) |
(since 6.5) | qCFatal(category, const char *message, ...) |
(since 6.5) | qCFatal(category) |
新枚举类型
(since 6.5) enum class | ParseOption { Default, UseNamespaceProcessing, PreserveSpacingOnlyNodes } |
(since 6.5) enum | TargetBuffer { LeftBuffer, RightBuffer } |
(since 6.5) enum class | SvgVersion { SvgTiny12, Svg11 } |
(since 6.5) enum | GlyphRunRetrievalFlag { RetrieveGlyphIndexes, RetrieveGlyphPositions, RetrieveStringIndexes, RetrieveString, DefaultRetrievalFlags, RetrieveAll } |
(since 6.5) enum | Initialization { LocalTime, UTC } |
(since 6.5) enum | DebugMessageSeverityFlag { VerboseSeverity, InfoSeverity, WarningSeverity, ErrorSeverity } |
(since 6.5) enum | DebugMessageTypeFlag { GeneralMessage, ValidationMessage, PerformanceMessage } |
(since 6.5) enum class | PermissionStatus { Undetermined, Granted, Denied } |
新枚举值
enum value | Error::RssiReadError |
enum value | Flag::NoPortabilityDrivers |
enum value | InterfaceType::SelectionInterface |
enum value | Language::Haryanvi |
enum value | Language::Moksha |
enum value | Language::NorthernFrisian |
enum value | Language::Obolo |
enum value | Language::Pijin |
enum value | Language::Rajasthani |
enum value | Language::TokiPona |
enum value | PointConfiguration::LabelFormat |
enum value | Script::Script_Kawi |
enum value | UnicodeVersion::Unicode_15_0 |
新类型别名
(since 6.5) | DebugUtilsFilter |
新属性
|
|
新变量
(since 6.5) | dstAlpha |
(since 6.5) | separateBlendFactors |
(since 6.5) | srcAlpha |
(since 6.5) | Android12 |
(since 6.5) | Android12L |
(since 6.5) | Android13 |
(since 6.5) | Windows10_22H2 |
新 QML 类型
- F
- Fog
新 QML 属性
QML 类型 Camera
(since 6.5) | levelOfDetailBias : float |
QML 类型 CaptureSession
(since 6.5) | screenCapture : ScreenCapture |
QML 类型 DebugSettings
(since 6.5) | materialOverride : 枚举 |
(since 6.5) | wireframeEnabled : 布尔值 |
QML 类型 DynamicRigidBody
(since 6.5) | kinematicEulerRotation : 四维向量 |
(since 6.5) | kinematicPivot : 三维向量 |
(since 6.5) | kinematicPosition : 三维向量 |
(since 6.5) | kinematicRotation : 三维向量 |
QML 类型 Item
(since 6.5) | layer.live : 布尔值 |
QML 类型 MapCircle
(since 6.5) | referenceSurface : 枚举 |
QML 类型 MapPolygon
(since 6.5) | referenceSurface : 枚举 |
QML 类型 MapPolyline
(since 6.5) | referenceSurface : 枚举 |
QML 类型 MapRectangle
(since 6.5) | referenceSurface : 枚举 |
QML 类型 MediaPlayer
(since 6.5) | playing : 布尔值 |
QML 类型 Model
(since 6.5) | levelOfDetailBias : 实数 |
QML 类型 PickResult
(since 6.5) | instanceIndex : 整数 |
QML 类型 PrincipledMaterial
(since 6.5) | vertexColorsEnabled : 布尔值 |
QML 类型 ReflectionProbe
(since 6.5) | texture : 立方体贴图 |
QML 类型 RenderStats
(since 6.5) | drawCallCount : 无符号长整型 |
(since 6.5) | drawVertexCount : 无符号长整型 |
(since 6.5) | effectGenerationTime : 有符号长整型 |
(since 6.5) | extendedDataCollectionEnabled : 布尔值 |
(since 6.5) | graphicsAPIName : 字符串 |
(since 6.5) | imageDataSize : 无符号长整型 |
(since 6.5) | materialGenerationTime : 有符号长整型 |
(since 6.5) | meshDataSize : 无符号长整型 |
(since 6.5) | pipelineCount : 整数 |
(since 6.5) | pipelineCreationTime : 有符号长整型 |
(since 6.5) | renderPassCount : 整数 |
(since 6.5) | vmemAllocCount : 无符号长整型 |
(since 6.5) | vmemUsedBytes : 无符号长整型 |
QML 类型 SceneEnvironment
(since 6.5) | aoEnabled : 布尔值 |
(since 6.5) | debugSettings : QtQuick3D::DebugSettings |
(since 6.5) | fog : QtQuick3D::Fog |
(since 6.5) | scissorRect : 矩形 |
QML 类型 SpecularGlossyMaterial
(since 6.5) | vertexColorsEnabled : 布尔值 |
QML 类型 TableView
(since 6.5) | editTriggers : 枚举类型 |
(since 6.5) | resizableColumns : 布尔值 |
(since 6.5) | resizableRows : 布尔值 |
QML 类型 TapHandler
(since 6.5) | exclusiveSignals : 枚举类型 |
QML 类型 TreeViewDelegate
(since 6.5) | editing : 布尔值 |
新 QML 信号
(since 6.5) | frameDone(浮点数 timestep) |
(since 6.5) | layoutChanged() |
新 QML 方法
QML 类型 Locale
(自 6.5 版起) 字符串 | toString(整数 i) |
(自 6.5 版起) 字符串 | toString(浮点数 f, 字符 format, 整数 precision) |
(自 6.5 版起) 字符串 | toString(日期 date, 字符串 format) |
(自 6.5 版起) 字符串 | toString(日期 date, 格式类型 format) |
QML 类型 TableView
(since 6.5) | closeEditor() |
(since 6.5) | edit(QModelIndex modelIndex) |
(自 6.5 版起) 项目 | itemAtIndex(QModelIndex index) |
(since 6.5) | positionViewAtIndex(QModelIndex index, 位置模式 mode, 点 offset, 矩形 subRect) |
QML 类型 TestCase
(since 6.5) bool | waitForPolish(对象 windowOrItem, 整数 timeout) |
© 2024 Qt 公司有限公司。此处包含的文档贡献者是各自版权的所有者。本处的文档是根据自由软件基金会发布的 GNU 自由文档许可证第 1.3 版的条款提供的。Qt 及相关标志是芬兰的 Qt 公司及其在全球的子公司和关联公司的商标。所有其他商标均为其各自所有者的财产。