QLineSeries Class
QLineSeries 클래스는 데이터를 선 그래프로 표시합니다. 더 보기...
| Header: | #include <QLineSeries> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Graphs)target_link_libraries(mytarget PRIVATE Qt6::Graphs) |
| qmake: | QT += graphs |
| QML에서: | LineSeries |
| 상속합니다: | QXYSeries |
- 상속된 멤버를 포함한 모든 멤버의 목록
- QLineSeries는 Qt Graphs 2D용 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입니다.
| Constant | 값 | 설명 |
|---|---|---|
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) |
알림 신호:
| 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) |
알림 신호:
| 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) |
알림 신호:
| 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) |
알림 신호:
| 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) |
알림 신호:
| 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.