Represents a QML method. 更多...
| 头: |
#include <Method>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
|
| 状态: | 技术预览 |
| class | 方法 |
| 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 ) |
Constructs a new Method object.
创建副本为 other .
[noexcept]
Method::
方法
(
QQmlSA::Method
&&
other
)
Move-constructs a Method instance.
[noexcept]
Method::
~Method
()
Destroys the Method.
Returns the name of the this method.
Returns the type of this method.
Returns the location in the QML code where this method is defined.
[noexcept]
QQmlSA::Method
&Method::
operator=
(
QQmlSA::Method
&&
other
)
移动赋值 other to this Method instance.
赋值 other to this Method instance.
返回
true
if
lhs
and
rhs
are not equal, and
false
否则。
返回
true
if
lhs
and
rhs
are equal, and
false
否则。