QLineSeries Class
QLineSeries 클래스는 데이터를 선 그래프로 표시합니다. 더 보기...
| 헤더: | #include <QLineSeries> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs) target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| QML에서: | LineSeries |
| 상속: | QXYSeries |
- 상속된 멤버를 포함한 모든 멤버 목록
- QLineSeries는 2D용Qt Graphs C++ 클래스의 일부입니다.
공개 유형
(since 6.11) enum class | LineStyle { Straight, StepLeft, StepRight, StepCenter } |
(since 6.11) enum class | StrokeStyle { SolidLine, DashLine } |
속성
|
|
공개 함수
| Qt::PenCapStyle | capStyle() const |
| qreal | dashOffset() const |
| QList<qreal> | dashPattern() const |
| QPointF | dataPointCoordinatesAt(qreal x, qreal y) |
| Qt::PenJoinStyle | joinStyle() const |
| QLineSeries::LineStyle | lineStyle() const |
| void | setCapStyle(Qt::PenCapStyle newCapStyle) |
| void | setDashOffset(qreal newDashOffset) |
| void | setDashPattern(const QList<qreal> &pattern) |
| void | setJoinStyle(Qt::PenJoinStyle newJoinStyle) |
| void | setLineStyle(QLineSeries::LineStyle newLineStyle) |
| void | setStrokeStyle(QLineSeries::StrokeStyle newStrokeStyle) |
| void | setWidth(qreal newWidth) |
| QLineSeries::StrokeStyle | strokeStyle() const |
| qreal | width() const |
신호
| void | capStyleChanged() |
| void | dashOffsetChanged(qreal newDashOffset) |
| void | dashPatternChanged(const QList<qreal> &newDashPattern) |
| void | joinStyleChanged(Qt::PenJoinStyle newJoinStyle) |
| void | lineStyleChanged(QLineSeries::LineStyle newLineStyle) |
| void | strokeStyleChanged(QLineSeries::StrokeStyle newStrokeStyle) |
| void | widthChanged() |
멤버 유형 문서
[since 6.11] enum class QLineSeries::LineStyle
시리즈의 선 스타일을 나타냅니다.
| 상수 | 값 | 설명 |
|---|---|---|
QLineSeries::LineStyle::Straight | 0 | 점들은 직선으로 연결됩니다. |
QLineSeries::LineStyle::StepLeft | 1 | 점들은 계단으로 연결되며, 각 계단의 높이는 왼쪽의 값입니다. |
QLineSeries::LineStyle::StepRight | 2 | 점들은 각 단계의 높이가 오른쪽의 값인 계단식으로 연결됩니다. |
QLineSeries::LineStyle::StepCenter | 3 | 점들은 두 값 사이의 중간에서 값이 변하는 단계로 연결됩니다. |
이 열거형은 Qt 6.11에서 도입되었습니다.
[since 6.11] enum class QLineSeries::StrokeStyle
시리즈의 획 스타일을 나타냅니다. 기본값은 StrokeStyle.SolidLine입니다.
| 상수 | 값 | 설명 |
|---|---|---|
QLineSeries::StrokeStyle::SolidLine | Qt::SolidLine | 일반 선. |
QLineSeries::StrokeStyle::DashLine | Qt::DashLine | 몇 픽셀 간격으로 구분된 파선입니다. |
이 열거형은 Qt 6.11에서 도입되었습니다.
속성 문서
capStyle : Qt::PenCapStyle
이 속성은 줄 끝 부분에 사용되는 캡 스타일을 지정합니다.
기본값은 ` Qt.SquareCap`입니다.
액세스 함수:
| Qt::PenCapStyle | capStyle() const |
| void | setCapStyle(Qt::PenCapStyle newCapStyle) |
알림 신호:
| void | capStyleChanged() |
[since 6.11] dashOffset : qreal
이 속성은 ` strokeStyle `가 ` LineSeries.DashLine`로 설정되었을 때 대시 오프셋을 유지합니다.
이 열거형은 Qt 6.11에서 도입되었습니다.
액세스 함수:
| qreal | dashOffset() const |
| void | setDashOffset(qreal newDashOffset) |
Notifier 신호:
| void | dashOffsetChanged(qreal newDashOffset) |
[since 6.11] dashPattern : QList<qreal>
strokeStyle 가 LineSeries.DashLine 로 설정된 경우, 이 속성은 대시 패턴을 유지합니다.
이 열거형은 Qt 6.11에서 도입되었습니다.
액세스 함수:
| QList<qreal> | dashPattern() const |
| void | setDashPattern(const QList<qreal> &pattern) |
Notifier 신호:
| void | dashPatternChanged(const QList<qreal> &newDashPattern) |
[since 6.11] joinStyle : Qt::PenJoinStyle
이 속성은 줄 끝 처리 시 사용되는 연결 스타일을 지정합니다.
기본값은 ` Qt.BevelJoin`입니다.
이 열거형은 Qt 6.11에서 도입되었습니다.
액세스 함수:
| Qt::PenJoinStyle | joinStyle() const |
| void | setJoinStyle(Qt::PenJoinStyle newJoinStyle) |
Notifier 신호:
| void | joinStyleChanged(Qt::PenJoinStyle newJoinStyle) |
[since 6.11] lineStyle : QLineSeries::LineStyle
이 속성은 선 렌더링에 사용되는 선 스타일을 지정합니다.
기본값은 ` LineSeries.Straight`입니다.
이 열거형은 Qt 6.11에서 도입되었습니다.
액세스 함수:
| QLineSeries::LineStyle | lineStyle() const |
| void | setLineStyle(QLineSeries::LineStyle newLineStyle) |
Notifier 신호:
| void | lineStyleChanged(QLineSeries::LineStyle newLineStyle) |
[since 6.11] strokeStyle : QLineSeries::StrokeStyle
이 속성은 시리즈의 획 스타일을 지정합니다.
기본값은 ` LineSeries.SolidLine`입니다.
이 열거형은 Qt 6.11에서 도입되었습니다.
액세스 함수:
| QLineSeries::StrokeStyle | strokeStyle() const |
| void | setStrokeStyle(QLineSeries::StrokeStyle newStrokeStyle) |
Notifier 신호:
| void | strokeStyleChanged(QLineSeries::StrokeStyle newStrokeStyle) |
width : qreal
이 속성은 시리즈의 선 너비를 저장합니다.
이 속성은 시리즈 선을 그릴 때 사용되는 펜 너비를 나타냅니다.
액세스 함수:
| qreal | width() const |
| void | setWidth(qreal newWidth) |
알림 신호:
| void | widthChanged() |
멤버 함수 문서
[invokable] QPointF QLineSeries::dataPointCoordinatesAt(qreal x, qreal y)
x 및 y 의 렌더링 좌표를 데이터 포인트 좌표로 변환하여 반환합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
© 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.