QGraphsLine Class
QGraphsLine クラスは、グラフ上の線のプロパティをカプセル化しています。詳細...
| ヘッダー: | #include <QGraphsLine> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| QML内では: | graphsline |
プロパティ
|
公開関数
| 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) |
プロパティのドキュメント
labelTextColor : QColor
軸ラベルのテキストの色。明示的に設定されていない場合、その値はテーマによって決定されます。
アクセス関数:
| QColor | labelTextColor() const |
| void | setLabelTextColor(QColor newColor) |
mainColor : QColor
メイングリッドまたは軸線の色。明示的に設定されていない場合、その値はテーマによって決定されます。
アクセス関数:
| QColor | mainColor() const |
| void | setMainColor(QColor newColor) |
mainWidth : qreal
メイングリッドまたは軸線の幅(ピクセル単位)。
アクセス関数:
| qreal | mainWidth() const |
| void | setMainWidth(qreal newWidth) |
subColor : QColor
サブグリッドまたは軸線の色。明示的に設定されていない場合、その値はテーマによって決定されます。
アクセス関数:
| QColor | subColor() const |
| void | setSubColor(QColor newColor) |
subWidth : qreal
サブグリッドまたは軸線の幅(ピクセル単位)。
アクセス関数:
| qreal | subWidth() const |
| void | setSubWidth(qreal newWidth) |
メンバ関数のドキュメント
[constexpr noexcept default] QGraphsLine::QGraphsLine(QGraphsLine &&other)
other から新しい QGraphsLine をムーブコンストラクタで生成します。
注:移動元のオブジェクト `other `は 、部分的に形成された状態になります。この状態では、有効な操作は破棄と新しい値の代入のみです。
[noexcept] void QGraphsLine::swap(QGraphsLine &other)
QGraphsLine other をQGraphsLine に置き換えます。この操作は非常に高速で、失敗することはありません。
[noexcept] QGraphsLine &QGraphsLine::operator=(QGraphsLine &&other)
other をこのQGraphsLine インスタンスに割り当てます。
注:移動元のオブジェクト `other `は 、部分的に形成された状態になります。この状態では、有効な操作は破棄と新しい値への代入のみです。
© 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.