QGraphsLine Class
La classe `QGraphsLine` encapsule les propriétés des lignes d'un graphique. En savoir plus...
| En-tête : | #include <QGraphsLine> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake : | QT += graphs |
| En QML : | graphsline |
Propriétés
|
Fonctions publiques
| QGraphsLine(QGraphsLine &&other) | |
| QColor | labelTextColor() const |
| QColor | mainColor() const |
| qreal | mainWidth() const |
| void | setLabelTextColor(QColor newColor) |
| void | setMainColor(QColor newColor) |
| void | setMainWidth(qreal newWidth) |
| void | setSubColor(QColor newColor) |
| void | setSubWidth(qreal newWidth) |
| QColor | subColor() const |
| qreal | subWidth() const |
| void | swap(QGraphsLine &other) |
| QGraphsLine & | operator=(QGraphsLine &&other) |
Documentation sur les propriétés
labelTextColor : QColor
Couleur du texte des étiquettes d’axe. Si elle n’est pas définie explicitement, la valeur est déterminée par le thème.
Fonctions d'accès :
| QColor | labelTextColor() const |
| void | setLabelTextColor(QColor newColor) |
mainColor : QColor
Couleur de la grille principale ou des lignes d’axe. Si elle n’est pas définie explicitement, la valeur est déterminée par le thème.
Fonctions d’accès :
| QColor | mainColor() const |
| void | setMainColor(QColor newColor) |
mainWidth : qreal
Largeur de la grille principale ou des lignes d'axe, en pixels.
Fonctions d'accès :
| qreal | mainWidth() const |
| void | setMainWidth(qreal newWidth) |
subColor : QColor
Couleur des lignes de la sous-grille ou des axes. Si elle n'est pas définie explicitement, la valeur est déterminée par le thème.
Fonctions d'accès :
| QColor | subColor() const |
| void | setSubColor(QColor newColor) |
subWidth : qreal
Largeur de la sous-grille ou des lignes d'axe, en pixels.
Fonctions d'accès :
| qreal | subWidth() const |
| void | setSubWidth(qreal newWidth) |
Documentation sur les fonctions membres
[constexpr noexcept default] QGraphsLine::QGraphsLine(QGraphsLine &&other)
La fonction « move » construit un nouvel objet `QGraphsLine` à partir de ` other`.
Remarque : l'objet d'origine other est placé dans un état partiellement formé, dans lequel les seules opérations valides sont la destruction et l'affectation d'une nouvelle valeur.
[noexcept] void QGraphsLine::swap(QGraphsLine &other)
Remplace QGraphsLine other par ceci : QGraphsLine. Cette opération est très rapide et ne pose jamais de problème.
[noexcept] QGraphsLine &QGraphsLine::operator=(QGraphsLine &&other)
Cette opération attribue other à cette instance de QGraphsLine.
Remarque : l’objet d’origine other est placé dans un état partiellement formé, dans lequel les seules opérations valides sont la destruction et l’affectation d’une nouvelle valeur.
© 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.