IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

MapCopyrightNotice QML Type

The MapCopyrightNotice item displays the current valid copyright notice for a Map element.

This type was introduced in QtLocation 5.9.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

MapCopyrightNotice QML Type

  • Import Statement: import QtLocation 6.5

  • Since:: QtLocation 5.9

  • Group: MapCopyrightNotice is part of QML Maps Plugin

I. Detailed Description

This object can be used to place an additional copyright notices programmatically.

Note that declaring a MapCopyrightNotice inside a QtLocation::Map element is not possible, like for any other QQuickItem.

The release of this API with Qt 5.9 is a Technology Preview.

II. Property Documentation

 

II-1. mapSource : Map

This property holds the current map source providing the copyright data shown in this notice. In order to let the MapCopyrightNotice display a copyright, this property must be set, as it is the only data source for this element.

II-2. styleSheet : string

This property holds the current css2.1 style sheet used to style the copyright notice, if in HTML form.

Example:

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+