QGraphsLine Class
The QGraphsLine class encapsulates properties of lines on a graph. More...
| Header: | #include <QGraphsLine> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs)target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| In QML: | graphsline |
Properties
|
Public Functions
| 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) |
Property Documentation
labelTextColor : QColor
The color of the text used for labels.
Access functions:
| QColor | labelTextColor() const |
| void | setLabelTextColor(QColor newColor) |
mainColor : QColor
The color of the main lines.
Access functions:
| QColor | mainColor() const |
| void | setMainColor(QColor newColor) |
mainWidth : qreal
The width of the main lines.
Access functions:
| qreal | mainWidth() const |
| void | setMainWidth(qreal newWidth) |
subColor : QColor
The color of the sub lines.
Access functions:
| QColor | subColor() const |
| void | setSubColor(QColor newColor) |
subWidth : qreal
The width of the sub lines.
Access functions:
| qreal | subWidth() const |
| void | setSubWidth(qreal newWidth) |
Member Function Documentation
[constexpr noexcept] QGraphsLine::QGraphsLine(QGraphsLine &&other)
Move-constructs a new QGraphsLine from other.
Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.
[noexcept] void QGraphsLine::swap(QGraphsLine &other)
Swaps QGraphsLine other with this QGraphsLine. This operation is very fast and never fails.
[noexcept] QGraphsLine &QGraphsLine::operator=(QGraphsLine &&other)
Move-assigns other to this QGraphsLine instance.
Note: The moved-from object other is placed in a partially-formed state, in which the only valid operations are destruction and assignment of a new value.
© 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.