Method Class

class QQmlSA ::Method

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 )

详细描述

成员函数文档编制

Method:: 方法 ()

Constructs a new Method object.

Method:: 方法 (const QQmlSA::Method & other )

创建副本为 other .

[noexcept] Method:: 方法 ( QQmlSA::Method && other )

Move-constructs a Method instance.

[noexcept] Method:: ~Method ()

Destroys the Method.

QString Method:: methodName () const

Returns the name of the this method.

QQmlSA::MethodType Method:: methodType () const

Returns the type of this method.

QQmlSA::SourceLocation Method:: sourceLocation () const

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.

QQmlSA::Method &Method:: operator= (const QQmlSA::Method & other )

赋值 other to this Method instance.

相关非成员

bool operator!= (const QQmlSA::Method & lhs , const QQmlSA::Method & rhs )

返回 true if lhs and rhs are not equal, and false 否则。

bool operator== (const QQmlSA::Method & lhs , const QQmlSA::Method & rhs )

返回 true if lhs and rhs are equal, and false 否则。