이 페이지에서

QGraphsLine Class

QGraphsLine 클래스는 그래프에서 선의 속성을 캡슐화합니다. 더 보기...

Header: #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)

Move - other 에서 새 QGraphsLine을 생성합니다.

참고: 이동한 개체 other 는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 소멸과 새 값 할당뿐입니다.

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

QGraphsLine otherQGraphsLine 으로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.

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