このページでは

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] QGraphsLine::QGraphsLine(QGraphsLine &&other)

移動-other から新しい QGraphsLine を構築する。

注意: 移動元のオブジェクトother は、部分的に形成された状態に置かれます。この状態では、有効な操作は破壊と新しい値の割り当てのみです。

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

QGraphsLine other をこのQGraphsLine と入れ替える。この操作は非常に速く、失敗することはない。

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

Move-assignother をこの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.