icon QML Value Type
El tipo de icono representa el icono de un lugar. Más...
| Import Statement: | import QtLocation 6.12 |
| Since: | QtLocation 5.5 |
Descripción detallada
Lo habitual es utilizar la función url() para especificar el tamaño de icono deseado.
Los iconos suelen depender del backend; si el backend de un gestor no admite un tamaño determinado, se devuelve la URL del icono que más se aproxime a esos parámetros.
La clase «icon» también cuenta con un conjunto de parámetros clave-valor. La clave concreta que hay que utilizar depende del complemento que se esté utilizando. Estos parámetros influyen en la URL del icono que devuelve el gestor y también pueden utilizarse para especificar las ubicaciones de las URL de los iconos al guardarlos.
Si solo hay una imagen para un icono, se puede utilizar « QPlaceIcon::SingleUrl » como clave de parámetro con « QUrl » como valor asociado. Si se establece esta clave, la función url() siempre devolverá la URL especificada y no se remitirá a ningún gestor.
© 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.