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 |
공용 함수
QQmlSA::Element | attachingType() const |
QQmlSA::Element | groupType() const |
bool | hasObject() const |
double | numberValue() const |
QQmlSA::Element | objectType() const |
QString | propertyName() const |
QQmlSA::ScriptBindingKind | scriptKind() const |
QQmlSA::SourceLocation | sourceLocation() const |
QString | stringValue() const |
정적 공용 멤버
bool | isLiteralBinding(QQmlSA::BindingType bindingType) |
멤버 함수 문서
QQmlSA::Element Binding::attachingType() const
이 바인딩의 콘텐츠 유형이 AttachedProperty이면 첨부된 유형을 반환하고, 그렇지 않으면 유효하지 않은 요소를 반환합니다.
QQmlSA::Element Binding::groupType() const
이 바인딩의 속성이 그룹 속성인 경우 속성 유형을 반환하고, 그렇지 않으면 유효하지 않은 엘리먼트를 반환합니다.
bool Binding::hasObject() const
이 바인딩에 객체가 있으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
[static]
bool Binding::isLiteralBinding(QQmlSA::BindingType bindingType)
bindingType 이 리터럴 타입이면 true
, 그렇지 않으면 false
을 반환합니다. 리터럴 타입에는 문자열, 부울, 숫자, 정규식이 포함됩니다.
double Binding::numberValue() const
이 바인딩의 콘텐츠 유형이 숫자 리터럴인 경우 연결된 숫자를 반환하고, 그렇지 않으면 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
이 바인딩의 콘텐츠 유형이 문자열 리터럴인 경우 연결된 문자열 리터럴을 반환하고, 그렇지 않으면 빈 문자열을 반환합니다.
© 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.