이 페이지에서

QQmlSA::Binding Class

class QQmlSA::Binding

특정 유형에 대한 단일 QML 속성 바인딩을 나타냅니다. 더 보기...

헤더: #include <qqmlsa.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
상태: 기술 미리보기

이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

공개 유형

(technology preview) 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 hasFunctionScriptValue() 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::Binding(const QQmlSA::Binding &other)

other 의 복사본을 생성합니다.

[noexcept] Binding::Binding(QQmlSA::Binding &&other)

Binding 인스턴스를 이동 생성합니다.

[noexcept] Binding::~Binding()

바인딩을 해제합니다.

QQmlSA::Element Binding::attachedType() const

이 바인딩의 콘텐츠 유형이 ` AttachedProperty`인 경우 해당 첨부 유형을 반환하고, 그렇지 않은 경우 유효하지 않은 Element를 반환합니다.

QQmlSA::Element Binding::bindingScope() const

바인딩이 정의된 Element 범위를 반환합니다.

QQmlSA::BindingType Binding::bindingType() const

이 바인딩의 유형을 반환합니다.

QQmlSA::Element Binding::groupType() const

이 바인딩의 속성이 그룹 속성인 경우 해당 속성의 유형을 반환하고, 그렇지 않은 경우 유효하지 않은 Element를 반환합니다.

bool Binding::hasFunctionScriptValue() const

이 바인딩에 (람다) 메서드, 화살표 함수 또는 문장 블록이 할당된 경우와 같이 스크립트 값 유형 함수가 있는지 여부를 반환합니다. 이 바인딩의 콘텐츠 유형이 ` QQmlSA::BindingType::Script`가 아닌 경우, ` false`를 반환합니다.

bool Binding::hasObject() const

이 바인딩에 객체가 포함되어 있으면 ` true `를 반환하고, 그렇지 않으면 ` false`를 반환합니다.

bool Binding::hasUndefinedScriptValue() const

이 바인딩에 ` undefined`가 할당되었을 때와 같이 스크립트 값 유형이 `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

이 바인딩의 콘텐츠 유형이 Object인 경우, 연관된 객체의 유형을 반환하고, 그렇지 않은 경우 유효하지 않은 Element를 반환합니다.

QString Binding::propertyName() const

이 바인딩에 연결된 속성의 이름을 반환합니다.

QQmlSA::ScriptBindingKind Binding::scriptKind() const

이 바인딩의 콘텐츠 유형이 Script인 경우, 관련 스크립트의 종류를 반환하고, 그렇지 않은 경우 Invalid를 반환합니다.

QQmlSA::SourceLocation Binding::sourceLocation() const

이 바인딩이 정의된 QML 코드 내의 위치를 반환합니다.

QString Binding::stringValue() const

이 바인딩의 콘텐츠 유형이 ` StringLiteral`인 경우 해당 문자열 리터럴을 반환하고, 그렇지 않은 경우 빈 문자열을 반환합니다.

[noexcept] QQmlSA::Binding &Binding::operator=(QQmlSA::Binding &&other)

other 를 이 Binding 인스턴스에 할당합니다.

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 는 속성 이름, 콘텐츠 유형 및 소스 위치가 일치할 때 동일한 것으로 간주됩니다.

© 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.