QQmlSA::Binding Class
class QQmlSA::Binding특정 유형에 대한 단일 QML 속성 바인딩을 나타냅니다. 더 보기...
Header: | #include <Binding> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
상태: | 기술 미리보기 |
공용 유형
class | Bindings |
공용 함수
Binding() | |
Binding(const QQmlSA::Binding &other) | |
Binding(QQmlSA::Binding &&other) | |
~Binding() | |
QQmlSA::Element | attachedType() const |
QQmlSA::Element | bindingScope() const |
QQmlSA::BindingType | bindingType() const |
QQmlSA::Element | groupType() const |
bool | hasObject() const |
bool | hasUndefinedScriptValue() const |
bool | isAttached() const |
double | numberValue() const |
QQmlSA::Element | objectType() const |
QString | propertyName() const |
QQmlSA::ScriptBindingKind | scriptKind() const |
QQmlSA::SourceLocation | sourceLocation() const |
QString | stringValue() const |
QQmlSA::Binding & | operator=(QQmlSA::Binding &&other) |
QQmlSA::Binding & | operator=(const QQmlSA::Binding &other) |
정적 공용 멤버
bool | isLiteralBinding(QQmlSA::BindingType bindingType) |
관련 비회원
bool | operator!=(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs) |
bool | operator==(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs) |
멤버 함수 문서
Binding::Binding()
새 바인딩 객체를 생성합니다.
Binding::Binding(const QQmlSA::Binding &other)
other 의 복사본을 만듭니다.
[noexcept]
Binding::Binding(QQmlSA::Binding &&other)
Move - Binding
인스턴스를 생성합니다.
[noexcept]
Binding::~Binding()
바인딩을 삭제합니다.
QQmlSA::Element Binding::attachedType() const
이 바인딩의 콘텐츠 유형이 AttachedProperty 인 경우 첨부된 유형을 반환하고 그렇지 않으면 유효하지 않은 요소를 반환합니다.
QQmlSA::Element Binding::bindingScope() const
바인딩이 정의된 엘리먼트 스코프를 반환합니다.
QQmlSA::BindingType Binding::bindingType() const
이 바인딩의 유형을 반환합니다.
QQmlSA::Element Binding::groupType() const
그룹 속성인 경우 이 바인딩의 속성 유형을 반환하고, 그렇지 않으면 유효하지 않은 엘리먼트를 반환합니다.
bool Binding::hasObject() const
이 바인딩에 객체가 있으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
bool Binding::hasUndefinedScriptValue() const
이 바인딩이 undefined
으로 할당되었을 때처럼 스크립트 값 유형이 정의되지 않았는지 여부를 반환합니다. 이 바인딩의 콘텐츠 유형이 QQmlSA::BindingType::Script 이 아닌 경우 false
을 반환합니다.
bool Binding::isAttached() const
이 유형이 다른 유형에 첨부된 경우 true
, 그렇지 않으면 false
을 반환합니다.
[static]
bool Binding::isLiteralBinding(QQmlSA::BindingType bindingType)
bindingType 이 리터럴 타입이면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
double Binding::numberValue() const
이 바인딩의 콘텐츠 유형이 NumberLiteral 인 경우 관련 번호를 반환하고, 그렇지 않으면 0을 반환합니다.
QQmlSA::Element Binding::objectType() const
이 바인딩의 콘텐츠 유형이 객체인 경우 연결된 객체의 유형을 반환하고, 그렇지 않으면 잘못된 엘리먼트를 반환합니다.
QString Binding::propertyName() const
이 바인딩으로 바인딩된 프로퍼티의 이름을 반환합니다.
QQmlSA::ScriptBindingKind Binding::scriptKind() const
이 바인딩의 콘텐츠 유형이 스크립트인 경우 연결된 스크립트의 종류를 반환하고, 그렇지 않으면 유효하지 않음을 반환합니다.
QQmlSA::SourceLocation Binding::sourceLocation() const
QML 코드에서 이 바인딩이 정의된 위치를 반환합니다.
QString Binding::stringValue() const
이 바인딩의 콘텐츠 유형이 StringLiteral 인 경우 연결된 문자열 리터럴을 반환하고, 그렇지 않으면 빈 문자열을 반환합니다.
[noexcept]
QQmlSA::Binding &Binding::operator=(QQmlSA::Binding &&other)
이동 - other 이 바인딩 인스턴스에 할당합니다.
QQmlSA::Binding &Binding::operator=(const QQmlSA::Binding &other)
이 바인딩 인스턴스에 other 을 할당합니다.
관련 비회원
bool operator!=(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs)
lhs 과 rhs 이 같지 않으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다. 속성 이름, 콘텐츠 유형, 소스 위치가 일치하면 Bindings
두 개가 동일한 것으로 간주됩니다.
bool operator==(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs)
lhs 과 rhs 이 같으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다. 속성 이름, 콘텐츠 유형, 소스 위치가 일치하면 Bindings
두 개가 동일한 것으로 간주됩니다.
© 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.