QQmlSA::Binding Class
class QQmlSA::BindingRepresenta una única propiedad QML vinculante para un tipo específico. Más...
| Cabecera: | #include <Binding> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Tipos públicos
| class | Bindings |
Funciones públicas
| 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) |
Miembros públicos estáticos
| bool | isLiteralBinding(QQmlSA::BindingType bindingType) |
No miembros relacionados
| bool | operator!=(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs) |
| bool | operator==(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs) |
Documentación de las funciones de los miembros
Binding::Binding()
Construye un nuevo objeto Binding.
Binding::Binding(const QQmlSA::Binding &other)
Crea una copia de other.
[noexcept] Binding::Binding(QQmlSA::Binding &&other)
Mover-construye una instancia de Binding.
[noexcept] Binding::~Binding()
Destruye la encuadernación.
QQmlSA::Element Binding::attachedType() const
Devuelve el tipo adjunto si el tipo de contenido de esta vinculación es AttachedProperty, de lo contrario devuelve un Elemento no válido.
QQmlSA::Element Binding::bindingScope() const
Devuelve el ámbito del elemento en el que está definido el enlace.
QQmlSA::BindingType Binding::bindingType() const
Devuelve el tipo de este enlace.
QQmlSA::Element Binding::groupType() const
Devuelve el tipo de la propiedad de este enlace si es una propiedad de grupo, en caso contrario devuelve un Elemento inválido.
bool Binding::hasFunctionScriptValue() const
Devuelve si este binding tiene función de tipo script value como cuando se le asigna un método (lambda), una función de flecha o un bloque de sentencia. Si el tipo de contenido de este enlace no es QQmlSA::BindingType::Script, devuelve false.
bool Binding::hasObject() const
Devuelve true si esta vinculación tiene un objeto, en caso contrario devuelve false.
bool Binding::hasUndefinedScriptValue() const
Devuelve si esta vinculación tiene un tipo de valor de guión indefinido como cuando se le asigna undefined. Si el tipo de contenido de esta vinculación no es QQmlSA::BindingType::Script, devuelve false.
bool Binding::isAttached() const
Devuelve true si este tipo está unido a otro, false en caso contrario.
[static] bool Binding::isLiteralBinding(QQmlSA::BindingType bindingType)
Devuelve true si bindingType es un tipo literal, y false en caso contrario.
double Binding::numberValue() const
Devuelve el número asociado si el tipo de contenido de este enlace es NumberLiteral, en caso contrario devuelve 0.
QQmlSA::Element Binding::objectType() const
Devuelve el tipo del objeto asociado si el tipo de contenido de esta vinculación es Object, de lo contrario devuelve un Elemento no válido.
QString Binding::propertyName() const
Devuelve el nombre de la propiedad vinculada con esta vinculación.
QQmlSA::ScriptBindingKind Binding::scriptKind() const
Devuelve el tipo del script asociado si el tipo de contenido de este enlace es Script, de lo contrario devuelve Invalid.
QQmlSA::SourceLocation Binding::sourceLocation() const
Devuelve la ubicación en el código QML donde se define este enlace.
QString Binding::stringValue() const
Devuelve la cadena literal asociada si el tipo de contenido de este enlace es StringLiteral, de lo contrario devuelve una cadena vacía.
[noexcept] QQmlSA::Binding &Binding::operator=(QQmlSA::Binding &&other)
Mover: asigna other a esta instancia de enlace.
QQmlSA::Binding &Binding::operator=(const QQmlSA::Binding &other)
Asigna other a esta instancia de enlace.
No miembros relacionados
bool operator!=(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs)
Devuelve true si lhs y rhs no son iguales, y false en caso contrario. Dos Bindings se consideran iguales si su nombre de propiedad, tipo de contenido y ubicación de origen coinciden.
bool operator==(const QQmlSA::Binding &lhs, const QQmlSA::Binding &rhs)
Devuelve true si lhs y rhs son iguales, y false en caso contrario. Dos Bindings se consideran iguales si su nombre de propiedad, tipo de contenido y ubicación de origen coinciden.
© 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.