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
否則。