MapCopyrightNotice QML Type
MapCopyrightNotice 项目显示地图元素的当前有效版权声明。更多
Import Statement: | import QtLocation 6.9 |
Since: | QtLocation 5.9 |
- 所有成员(包括继承成员)的列表
- MapCopyrightNotice 是QML 地图插件的一部分。
属性
- mapSource : Map
- styleSheet : string
详细说明
该对象可用于以编程方式放置额外的版权声明。
请注意,在QtLocation::Map元素内声明MapCopyrightNotice是不可能的,就像其他QQuickItem 。
随 Qt 5.9 发布的此 API 是技术预览版。
属性文档
mapSource : Map |
该属性保存当前地图源,提供本通知中显示的版权数据。为了让MapCopyrightNotice 显示版权,必须设置该属性,因为它是该元素的唯一数据源。
styleSheet : string |
如果是 HTML 格式,该属性包含当前用于样式化版权声明的 css2.1 样式表。
示例
MapCopyrightNotice { mapSource: myMap styleSheet: "body { color : green; font-family: \"Lucida\"; font-size: 8px} a{ font-size: 8px; color:#A62900}" }
© 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.