Auf dieser Seite

QGraphsLine Class

Die Klasse QGraphsLine kapselt die Eigenschaften von Linien in einem Graphen. Mehr...

Kopfzeile: #include <QGraphsLine>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
In QML: graphsline

Eigenschaften

Öffentliche Funktionen

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)

Detaillierte Beschreibung

Dokumentation der Eigenschaften

labelTextColor : QColor

Die Farbe des Textes der Achsenbeschriftung. Wenn nicht explizit festgelegt, wird der Wert durch das Thema bestimmt.

Zugriffsfunktionen:

QColor labelTextColor() const
void setLabelTextColor(QColor newColor)

mainColor : QColor

Die Farbe des Hauptrasters oder der Achsenlinien. Wenn nicht explizit festgelegt, wird der Wert durch das Thema bestimmt.

Zugriffsfunktionen:

QColor mainColor() const
void setMainColor(QColor newColor)

mainWidth : qreal

Die Breite des Hauptgitters oder der Achsenlinien in Pixeln.

Zugriffsfunktionen:

qreal mainWidth() const
void setMainWidth(qreal newWidth)

subColor : QColor

Die Farbe des Unterrasters oder der Achsenlinien. Wenn nicht explizit festgelegt, wird der Wert durch das Thema bestimmt.

Zugriffsfunktionen:

QColor subColor() const
void setSubColor(QColor newColor)

subWidth : qreal

Die Breite des Untergitters oder der Achsenlinien in Pixeln.

Zugriffsfunktionen:

qreal subWidth() const
void setSubWidth(qreal newWidth)

Dokumentation der Mitgliedsfunktionen

[constexpr noexcept] QGraphsLine::QGraphsLine(QGraphsLine &&other)

Move-konstruiert eine neue QGraphsLine aus other.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen die Zerstörung und die Zuweisung eines neuen Wertes sind.

[noexcept] void QGraphsLine::swap(QGraphsLine &other)

Tauscht QGraphsLine other mit diesem QGraphsLine aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

[noexcept] QGraphsLine &QGraphsLine::operator=(QGraphsLine &&other)

Verschieben - weist other dieser QGraphsLine Instanz zu.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen Zerstörung und Zuweisung eines neuen Wertes sind.

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