本页内容

MapCopyrightNotice QML Type

“MapCopyrightNotice”项显示地图元素当前有效的版权声明。更多...

Import Statement: import QtLocation 6.12
Since: QtLocation 5.9

属性

详细说明

该对象可用于通过编程方式添加额外的版权声明。

请注意,与其他QQuickItem 一样,无法在QtLocation::Map元素内部声明MapCopyrightNotice。

该 API 随 Qt 5.9 发布时属于技术预览版。

属性文档

mapSource : Map

该属性存储了当前的地图数据源,该数据源提供了本声明中显示的版权信息。为了让MapCopyrightNotice 显示版权信息,必须设置此属性,因为它是该元素的唯一数据源。

styleSheet : string

该属性存储用于为版权声明(若以 HTML 形式呈现)设置样式的当前 CSS 2.1 样式表。

示例:

MapCopyrightNotice {
    mapSource: myMap
    styleSheet: "body { color : green; font-family: \"Lucida\"; font-size: 8px} a{ font-size: 8px; color:#A62900}"
}

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