QQmlSA::Element Class
class QQmlSA::ElementRepresenta un tipo QML. Más...
| Cabecera: | #include <Element> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
Funciones públicas
| 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) |
No miembros relacionados
| qsizetype | qHash(const QQmlSA::Element &key, qsizetype seed = 0) |
| bool | operator!=(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs) |
| bool | operator==(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs) |
Documentación de las funciones de los miembros
Element::Element()
Construye un nuevo objeto Elemento.
Element::Element(const QQmlSA::Element &other)
Crea una copia de other.
[noexcept] Element::Element(QQmlSA::Element &&other)
Mover-construye una instancia de Elemento.
[noexcept] Element::~Element()
Destruye el elemento.
QQmlSA::AccessSemantics Element::accessSemantics() const
Devuelve la semántica de acceso de este elemento. Por ejemplo, Referencia, Valor o Secuencia.
QQmlSA::Element Element::baseType() const
Devuelve el elemento del que deriva este elemento.
QString Element::baseTypeName() const
Devuelve el nombre del elemento del que deriva este elemento.
QString Element::defaultPropertyName() const
Devuelve el nombre de la propiedad por defecto de este Elemento. Si no tiene ninguna, devuelve una cadena vacía.
QString Element::filePath() const
Devuelve la ruta del archivo del código QML que define este elemento.
bool Element::hasMethod(const QString &methodName) const
Devuelve si este Elemento tiene un método con el nombre methodName.
bool Element::hasOwnProperty(const QString &propertyName) const
Devuelve si este Elemento define una propiedad con el nombre propertyName que no está definida en sus objetos base o extensión.
bool Element::hasOwnPropertyBindings(const QString &propertyName) const
Devuelve si este elemento tiene propiedades que no están definidas en sus objetos base o de extensión y que tienen el nombre propertyName.
bool Element::hasProperty(const QString &propertyName) const
Devuelve si este elemento tiene una propiedad con el nombre propertyName.
bool Element::hasPropertyBindings(const QString &name) const
Devuelve si este elemento tiene una propiedad vinculante con el nombre name.
QQmlSA::SourceLocation Element::idSourceLocation() const
Devuelve la ubicación en el código QML donde este Elemento tiene asignado su id, si tiene uno.
bool Element::inherits(const QQmlSA::Element &element) const
Devuelve si este elemento hereda de element.
bool Element::isComposite() const
Devuelve true para objetos definidos a partir de Qml, y false para objetos declarados a partir de C++.
bool Element::isFileRootComponent() const
Devuelve si este elemento es el componente raíz de su archivo QML.
bool Element::isNull() const
Devuelve true si este elemento es nulo, false en caso contrario.
bool Element::isPropertyRequired(const QString &propertyName) const
Devuelve si la propiedad con el nombre propertyName resuelta en este Elemento es requerida. Devuelve false si la propiedad no puede ser encontrada.
QString Element::name() const
Devuelve el nombre de este elemento.
QQmlSA::Method::Methods Element::ownMethods() const
Devuelve los métodos de este Elemento, que no están definidos en sus objetos base o extensión.
QQmlSA::Binding::Bindings Element::ownPropertyBindings() const
Devuelve las propiedades de este elemento que no están definidas en sus objetos base o extensión.
QQmlSA::Binding::Bindings Element::ownPropertyBindings(const QString &propertyName) const
Devuelve las propiedades de este elemento que no están definidas en sus objetos base o extensión y que tienen el nombre propertyName.
QQmlSA::Element Element::parentScope() const
Devuelve el elemento que encierra este elemento.
QQmlSA::Property Element::property(const QString &propertyName) const
Devuelve la propiedad con el nombre propertyName si se encuentra en este Elemento o en sus objetos base y extensión, en caso contrario devuelve una propiedad inválida.
QList<QQmlSA::Binding> Element::propertyBindings(const QString &propertyName) const
Devuelve los enlaces de propiedad de este elemento que tienen el nombre propertyName.
QQmlSA::ScopeType Element::scopeType() const
Devuelve el tipo de ámbito del elemento.
QQmlSA::SourceLocation Element::sourceLocation() const
Devuelve la ubicación en el código QML donde está definido este Elemento.
[explicit] Element::operator bool() const
Devuelve true si este elemento no es nulo, false en caso contrario.
bool Element::operator!() const
Devuelve true si este elemento es nulo, false en caso contrario.
[noexcept] QQmlSA::Element &Element::operator=(QQmlSA::Element &&other)
Mover-asigna other a esta instancia de Elemento.
QQmlSA::Element &Element::operator=(const QQmlSA::Element &other)
Asigna other a esta instancia de elemento.
No miembros relacionados
[noexcept] qsizetype qHash(const QQmlSA::Element &key, qsizetype seed = 0)
Devuelve el hash para key utilizando seed para sembrar el cálculo.
bool operator!=(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs)
Devuelve true si lhs y rhs no son iguales, y false en caso contrario.
bool operator==(const QQmlSA::Element &lhs, const QQmlSA::Element &rhs)
Devuelve true si lhs y rhs son iguales, y false en caso contrario.
© 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.