icon QML Value Type

图标类型代表一个地方的图标。更多

Import Statement: import QtLocation 6.9
Since: QtLocation 5.5

详细说明

图标的典型用法是使用 url() 函数指定首选图标尺寸。

图标通常取决于后端,如果管理器后端不支持给定尺寸,则会返回与这些参数最匹配的图标 URL。

图标类还有一组键值参数。需要使用的精确键值取决于所使用的插件。这些参数会影响管理器返回的图标 URL,也可以在保存图标时用于指定图标 URL 的位置。

如果一个图标只有一张图片,那么QPlaceIcon::SingleUrl 可用作参数键,相关值为QUrl 。如果设置了该键,url() 函数将始终返回指定的 URL,而不会转给任何管理器。

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