QQmlSA::Element Class
class QQmlSA::ElementQML 유형을 나타냅니다. 더 보기...
| 헤더: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| 상태: | 기술 미리 보기 |
이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.
공개 함수
| Element() | |
| Element(const QQmlSA::Element &other) | |
| Element(QQmlSA::Element &&other) | |
| ~Element() | |
| 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 |
| QQmlSA::SourceLocation | idSourceLocation() const |
| bool | inherits(const QQmlSA::Element &element) const |
| bool | isComposite() const |
| bool | isFileRootComponent() const |
| bool | isNull() 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 |
| operator bool() const | |
| bool | operator!() const |
| QQmlSA::Element & | operator=(QQmlSA::Element &&other) |
| QQmlSA::Element & | operator=(const QQmlSA::Element &other) |
관련 비멤버
| size_t | qHash(const QQmlSA::Element &key, size_t seed = 0) |
| bool | operator!=(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs) |
| bool | operator==(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs) |
멤버 함수 설명
Element::Element()
새로운 Element 객체를 생성합니다.
Element::Element(const QQmlSA::Element &other)
other 의 복사본을 생성합니다.
[noexcept] Element::Element(QQmlSA::Element &&other)
Element 인스턴스를 생성합니다.
[noexcept] Element::~Element()
요소를 삭제합니다.
QQmlSA::AccessSemantics Element::accessSemantics() const
이 요소의 액세스 세미오틱스를 반환합니다. 예를 들어, Reference, Value 또는 Sequence 등이 있습니다.
QQmlSA::Element Element::baseType() const
이 요소가 파생된 요소를 반환합니다.
QString Element::baseTypeName() const
이 요소가 파생된 요소의 이름을 반환합니다.
QString Element::defaultPropertyName() const
이 Element의 기본 속성 이름을 반환합니다. 기본 속성이 없는 경우, 빈 문자열을 반환합니다.
QString Element::filePath() const
이 Element를 정의하는 QML 코드의 파일 경로를 반환합니다.
bool Element::hasMethod(const QString &methodName) const
이 Element에 methodName 라는 이름의 메서드가 있는지 여부를 반환합니다.
bool Element::hasOwnProperty(const QString &propertyName) const
이 Element가 기본 객체나 확장 객체에 정의되어 있지 않은 ' propertyName '라는 이름의 속성을 정의하고 있는지 여부를 반환합니다.
bool Element::hasOwnPropertyBindings(const QString &propertyName) const
이 Element에 기본 객체나 확장 객체에 정의되어 있지 않으면서 이름이 ` propertyName`인 속성 바인딩이 있는지 여부를 반환합니다.
bool Element::hasProperty(const QString &propertyName) const
이 요소에 ‘ propertyName ’이라는 이름의 속성이 있는지 여부를 반환합니다.
bool Element::hasPropertyBindings(const QString &name) const
이 Element에 name 라는 이름의 속성 바인딩이 있는지 여부를 반환합니다.
QQmlSA::SourceLocation Element::idSourceLocation() const
이 Element에 ID가 지정된 경우, QML 코드 내에서 해당 ID가 할당된 위치를 반환합니다.
bool Element::inherits(const QQmlSA::Element &element) const
이 Element가 ` element`를 상속받는지 여부를 반환합니다.
bool Element::isComposite() const
Qml에서 정의된 객체의 경우 ` true `를, C++에서 선언된 객체의 경우 ` false `를 반환합니다.
bool Element::isFileRootComponent() const
이 Element가 해당 QML 파일의 루트 컴포넌트인지 여부를 반환합니다.
bool Element::isNull() const
이 요소가 null인 경우 ` true `를 반환하고, 그렇지 않은 경우 ` false `를 반환합니다.
bool Element::isPropertyRequired(const QString &propertyName) const
이 요소에서 ' propertyName '라는 이름의 속성이 확인되었는지 여부를 반환합니다. 해당 속성을 찾을 수 없는 경우 false를 반환합니다.
QString Element::name() const
이 요소의 이름을 반환합니다.
QQmlSA::Method::Methods Element::ownMethods() const
이 Elements 객체의 메서드 중, 기본 객체나 확장 객체에 정의되어 있지 않은 메서드들을 반환합니다.
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
이 Element 또는 그 기본 객체 및 확장 객체에서 ‘ propertyName ’라는 이름의 속성이 발견되면 해당 속성을 반환하고, 그렇지 않으면 유효하지 않은 속성을 반환합니다.
QList<QQmlSA::Binding> Element::propertyBindings(const QString &propertyName) const
이 요소의 이름이 ` propertyName`인 속성 바인딩을 반환합니다.
QQmlSA::ScopeType Element::scopeType() const
Element의 범위 유형을 반환합니다.
QQmlSA::SourceLocation Element::sourceLocation() const
이 요소가 정의된 QML 코드 내의 위치를 반환합니다.
[explicit] Element::operator bool() const
이 요소가 null이 아닌 경우 ` true `를 반환하고, 그렇지 않은 경우 ` false `를 반환합니다.
bool Element::operator!() const
이 요소가 null인 경우 ` true `를 반환하고, 그렇지 않은 경우 ` false `를 반환합니다.
[noexcept] QQmlSA::Element &Element::operator=(QQmlSA::Element &&other)
other 를 이 Element 인스턴스에 할당합니다.
QQmlSA::Element &Element::operator=(const QQmlSA::Element &other)
이 요소 인스턴스에 ` other `를 할당합니다.
관련 비회원
[noexcept] size_t qHash(const QQmlSA::Element &key, size_t seed = 0)
seed 를 계산의 시드로 사용하여 key 에 대한 해시 값을 반환합니다.
bool operator!=(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs)
lhs 와 rhs 가 같지 않으면 ` true `를 반환하고, 그렇지 않은 경우에는 ` false `를 반환합니다.
bool operator==(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs)
lhs 와 rhs 가 같으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.
© 2026 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.