이 페이지에서

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.