QQmlSA::Method Class
class QQmlSA::Method代表 QML 方法。更多
头文件: | #include <Method> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
状态: 技术预览 | 技术预览 |
公共类型
class | Methods |
公共函数
Method() | |
Method(const QQmlSA::Method &other) | |
Method(QQmlSA::Method &&other) | |
~Method() | |
QString | methodName() const |
QQmlSA::MethodType | methodType() const |
QQmlSA::SourceLocation | sourceLocation() const |
QQmlSA::Method & | operator=(QQmlSA::Method &&other) |
QQmlSA::Method & | operator=(const QQmlSA::Method &other) |
相关非成员
bool | operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
bool | operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs) |
成员函数文档
Method::Method()
构造一个新的方法对象。
Method::Method(const QQmlSA::Method &other)
创建other 的副本。
[noexcept]
Method::Method(QQmlSA::Method &&other)
Move-构建方法实例。
[noexcept]
Method::~Method()
破坏方法。
QString Method::methodName() const
返回此方法的名称。
QQmlSA::MethodType Method::methodType() const
返回此方法的类型。
QQmlSA::SourceLocation Method::sourceLocation() const
返回 QML 代码中定义此方法的位置。
[noexcept]
QQmlSA::Method &Method::operator=(QQmlSA::Method &&other)
移动-将other 指定给此方法实例。
QQmlSA::Method &Method::operator=(const QQmlSA::Method &other)
为该方法实例指定other 。
相关非成员
bool operator!=(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
如果lhs 和rhs 不相等,则返回true
,否则返回false
。
bool operator==(const QQmlSA::Method &lhs, const QQmlSA::Method &rhs)
如果lhs 和rhs 相等,则返回true
,否则返回false
。
© 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.