Element Class
class QQmlSA::ElementQML 유형을 나타냅니다. 더 보기...
헤더: | #include <Element> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
상태: | 기술 미리보기 |
공용 함수
QQmlSA::AccessSemantics | accessSemantics() const |
QQmlSA::Element | baseType() const |
QString | baseTypeName() const |
QString | defaultPropertyName() const |
QString | filePath() const |
bool | hasMethod(const QString &methodName) const |
bool | hasOwnProperty(const QString &propertyName) const |
bool | hasOwnPropertyBindings(const QString &propertyName) const |
bool | hasProperty(const QString &propertyName) const |
bool | hasPropertyBindings(const QString &name) const |
bool | inherits(const QQmlSA::Element &element) const |
bool | isComposite() const |
bool | isPropertyRequired(const QString &propertyName) const |
QString | name() const |
QQmlSA::Method::Methods | ownMethods() const |
QQmlSA::Binding::Bindings | ownPropertyBindings() const |
QQmlSA::Binding::Bindings | ownPropertyBindings(const QString &propertyName) const |
QQmlSA::Element | parentScope() const |
QQmlSA::Property | property(const QString &propertyName) const |
QList<QQmlSA::Binding> | propertyBindings(const QString &propertyName) const |
QQmlSA::ScopeType | scopeType() const |
QQmlSA::SourceLocation | sourceLocation() const |
멤버 함수 문서
QQmlSA::AccessSemantics Element::accessSemantics() const
이 엘리먼트의 액세스 시맨틱을 반환합니다. 예를 들어 참조, 값 또는 시퀀스입니다.
QQmlSA::Element Element::baseType() const
이 엘리먼트가 파생된 엘리먼트를 반환합니다.
QString Element::baseTypeName() const
이 엘리먼트가 파생된 엘리먼트의 이름을 반환합니다.
QString Element::defaultPropertyName() const
이 엘리먼트의 기본 프로퍼티의 이름을 반환합니다. 없는 경우 빈 문자열을 반환합니다.
QString Element::filePath() const
이 요소를 정의하는 QML 코드의 파일 경로를 반환합니다.
bool Element::hasMethod(const QString &methodName) const
이 엘리먼트에 methodName 라는 이름의 메서드가 있는지 여부를 반환합니다.
bool Element::hasOwnProperty(const QString &propertyName) const
이 엘리먼트가 기본 또는 확장 객체에 정의되지 않은 propertyName 이름의 프로퍼티를 정의하는지 여부를 반환합니다.
bool Element::hasOwnPropertyBindings(const QString &propertyName) const
이 엘리먼트에 기본 또는 확장 객체에 정의되지 않았고 이름이 propertyName 인 프로퍼티 바인딩이 있는지 여부를 반환합니다.
bool Element::hasProperty(const QString &propertyName) const
이 엘리먼트에 propertyName 라는 이름의 프로퍼티가 있는지 여부를 반환합니다.
bool Element::hasPropertyBindings(const QString &name) const
이 엘리먼트에 name 라는 이름의 프로퍼티 바인딩이 있는지 여부를 반환합니다.
bool Element::inherits(const QQmlSA::Element &element) const
이 요소가 element 에서 상속되는지 여부를 반환합니다.
bool Element::isComposite() const
Qml에서 정의된 객체에는 참을 반환하고 C++에서 선언된 객체에는 거짓을 반환합니다.
bool Element::isPropertyRequired(const QString &propertyName) const
이 엘리먼트에서 확인된 propertyName 이름의 프로퍼티가 필요한지 여부를 반환합니다. 프로퍼티를 찾을 수 없으면 false를 반환합니다.
QString Element::name() const
이 엘리먼트의 이름을 반환합니다.
QQmlSA::Method::Methods Element::ownMethods() const
기본 또는 확장 객체에 정의되지 않은 이 엘리먼트의 메서드를 반환합니다.
QQmlSA::Binding::Bindings Element::ownPropertyBindings() const
기본 또는 확장 객체에 정의되지 않은 이 엘리먼트의 프로퍼티 바인딩을 반환합니다.
QQmlSA::Binding::Bindings Element::ownPropertyBindings(const QString &propertyName) const
기본 또는 확장 객체에 정의되지 않았고 이름이 propertyName 인 이 엘리먼트의 프로퍼티 바인딩을 반환합니다.
QQmlSA::Element Element::parentScope() const
이 엘리먼트를 둘러싸는 엘리먼트를 반환합니다.
QQmlSA::Property Element::property(const QString &propertyName) const
이 엘리먼트 또는 그 기본 및 확장 객체에서 발견되면 propertyName 이라는 이름의 프로퍼티를 반환하고, 그렇지 않으면 유효하지 않은 프로퍼티를 반환합니다.
QList<QQmlSA::Binding> Element::propertyBindings(const QString &propertyName) const
propertyName 이라는 이름을 가진 이 엘리먼트의 프로퍼티 바인딩을 반환합니다.
QQmlSA::ScopeType Element::scopeType() const
엘리먼트의 범위 유형을 반환합니다.
QQmlSA::SourceLocation Element::sourceLocation() const
이 요소가 정의된 QML 코드의 위치를 반환합니다.
© 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.