Dessiner une légende par-dessus un graphique

Remarque : ceci fait partie de l'exemple « Charts with Widgets Gallery ».

Capture d'écran montrant un point aléatoire de deux graphiques mis en évidence

La classe `QChart` fournit deux méthodes qui assurent la correspondance entre les coordonnées de la scène et le domaine de la série (défini par les plages des axes).

QPointF QChart::mapToPosition(const &value, QAbstractSeries *series) QPointF

QPointF QChart::mapToValue(const &position, QAbstractSeries *series) QPointF

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