QBoxPlotSeries Class

QBoxPlotSeries 클래스는 데이터를 상자형 및 수염형 차트로 표시합니다. 더 보기...

Header: #include <QBoxPlotSeries>
In QML: BoxPlotSeries
Inherits: QAbstractSeries

속성

공용 함수

QBoxPlotSeries(QObject *parent = nullptr)
virtual ~QBoxPlotSeries()
bool append(QBoxSet *set)
bool append(const QList<QBoxSet *> &sets)
bool boxOutlineVisible()
QList<QBoxSet *> boxSets() const
qreal boxWidth()
QBrush brush() const
void clear()
int count() const
bool insert(int index, QBoxSet *set)
QPen pen() const
bool remove(QBoxSet *set)
void setBoxOutlineVisible(bool visible)
void setBoxWidth(qreal width)
void setBrush(const QBrush &brush)
void setPen(const QPen &pen)
bool take(QBoxSet *set)

재구현된 공용 함수

virtual QAbstractSeries::SeriesType type() const override

신호

void boxOutlineVisibilityChanged()
void boxWidthChanged()
void boxsetsAdded(const QList<QBoxSet *> &sets)
void boxsetsRemoved(const QList<QBoxSet *> &sets)
void brushChanged()
void clicked(QBoxSet *boxset)
void countChanged()
void doubleClicked(QBoxSet *boxset)
void hovered(bool status, QBoxSet *boxset)
void penChanged()
void pressed(QBoxSet *boxset)
void released(QBoxSet *boxset)

상세 설명

박스형 플롯 계열은 박스형 및 수염형 항목의 컨테이너 역할을 합니다. 여러 계열의 항목은 인덱스 값에 따라 카테고리로 그룹화됩니다.

QBarCategoryAxis 클래스는 차트 축에 카테고리를 추가하는 데 사용됩니다. 카테고리 레이블은 고유해야 합니다. 여러 상자 및 수염 항목에 대해 동일한 범주 레이블이 정의된 경우 첫 번째 항목만 그려집니다.

상자형 수염 차트를 만드는 방법은 위젯이 있는 차트 갤러리를 참조하세요.

QBoxSetQBarCategoryAxis참조하세요 .

속성 문서

boxOutlineVisible : bool

이 속성은 상자 윤곽의 가시성을 유지합니다.

기능에 액세스합니다:

bool boxOutlineVisible()
void setBoxOutlineVisible(bool visible)

알림 신호:

boxWidth : qreal

이 속성은 상자 및 수염 항목의 너비를 저장합니다. 이 값은 해당 카테고리 내에서 항목의 상대적인 너비를 나타냅니다. 값은 0.0에서 1.0 사이일 수 있습니다. 음수 값은 0.0으로 대체되고 1.0보다 큰 값은 1.0으로 대체됩니다.

기능에 액세스합니다:

qreal boxWidth()
void setBoxWidth(qreal width)

알림 신호:

brush : QBrush

이 속성에는 상자 및 수염 항목의 상자를 채우는 데 사용되는 브러시가 저장됩니다.

함수에 액세스합니다:

QBrush brush() const
void setBrush(const QBrush &brush)

알림 신호:

void brushChanged()

[read-only] count : const int

이 속성은 박스 플롯 시리즈에 있는 박스 및 수염 항목의 수를 보유합니다.

함수에 액세스합니다:

int count() const

알림 신호:

void countChanged()

pen : QPen

이 속성에는 상자 및 수염 항목의 선을 그리는 데 사용되는 펜이 저장됩니다.

함수에 액세스합니다:

QPen pen() const
void setPen(const QPen &pen)

알림 신호:

void penChanged()

멤버 함수 문서

[explicit] QBoxPlotSeries::QBoxPlotSeries(QObject *parent = nullptr)

QObjectparent 의 자식인 빈 상자 플롯 계열을 구축합니다 .

[virtual noexcept] QBoxPlotSeries::~QBoxPlotSeries()

차트에서 시리즈를 제거합니다.

bool QBoxPlotSeries::append(QBoxSet *set)

set 에 지정된 상자 및 수염 항목 하나를 시리즈에 추가하고 해당 항목의 소유권을 가져옵니다. 항목이 null이거나 이미 시리즈에 속해 있으면 추가되지 않습니다. 추가에 성공하면 true 을 반환합니다.

bool QBoxPlotSeries::append(const QList<QBoxSet *> &sets)

sets 에 지정된 상자 및 수염 항목 목록을 시리즈에 추가하고 해당 항목의 소유권을 가져옵니다. 목록이 null이거나 항목이 이미 시리즈에 속해 있으면 추가되지 않습니다. 추가에 성공하면 true 을 반환합니다.

[signal] void QBoxPlotSeries::boxOutlineVisibilityChanged()

이 신호는 상자 윤곽선 표시 여부가 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 boxOutlineVisible.

QList<QBoxSet *> QBoxPlotSeries::boxSets() const

박스 플롯 계열의 박스 및 수염 항목 목록을 반환합니다. 항목의 소유권을 유지합니다.

[signal] void QBoxPlotSeries::boxWidthChanged()

이 신호는 상자 및 수염 항목의 너비가 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 boxWidth.

[signal] void QBoxPlotSeries::boxsetsAdded(const QList<QBoxSet *> &sets)

이 신호는 sets 에 지정된 상자 및 수염 항목 목록이 시리즈에 추가될 때 발생합니다.

[signal] void QBoxPlotSeries::boxsetsRemoved(const QList<QBoxSet *> &sets)

이 신호는 sets 에서 지정한 상자 및 수염 항목 목록이 시리즈에서 제거될 때 발생합니다.

[signal] void QBoxPlotSeries::brushChanged()

이 신호는 상자 및 수염 항목의 상자를 채우는 데 사용되는 브러시가 변경될 때 발산됩니다.

참고: 속성에 대한 알림 신호 brush.

void QBoxPlotSeries::clear()

시리즈에서 모든 상자 및 수염 항목을 제거하고 영구적으로 삭제합니다.

[signal] void QBoxPlotSeries::clicked(QBoxSet *boxset)

이 신호는 사용자가 차트에서 boxset 에 지정된 상자 및 수염 항목을 클릭할 때 발생합니다.

int QBoxPlotSeries::count() const

박스 플롯 시리즈에 있는 박스 및 수염 항목의 수를 반환합니다.

참고: 속성 개수에 대한 Getter 함수입니다.

[signal] void QBoxPlotSeries::countChanged()

이 신호는 시리즈의 상자 및 수염 항목 수가 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 count.

[signal] void QBoxPlotSeries::doubleClicked(QBoxSet *boxset)

이 신호는 사용자가 차트에서 boxset 에 지정된 상자 및 수염 항목을 더블클릭할 때 발생합니다.

[signal] void QBoxPlotSeries::hovered(bool status, QBoxSet *boxset)

이 신호는 차트에서 boxset 으로 지정된 상자 및 수염 항목 위로 마우스를 가져가면 발생합니다. 마우스가 항목 위로 이동하면 statustrue 으로 바뀌고, 마우스가 다시 멀어지면 false 으로 바뀝니다.

bool QBoxPlotSeries::insert(int index, QBoxSet *set)

set 에 지정된 상자 및 수염 항목을 index 에 지정된 위치의 계열에 삽입하고 해당 항목의 소유권을 가져옵니다. 항목이 null이거나 이미 시리즈에 속해 있으면 추가되지 않습니다. 삽입에 성공하면 true 을 반환합니다.

[signal] void QBoxPlotSeries::penChanged()

이 신호는 상자 및 수염 항목의 선을 그리는 데 사용된 펜이 변경될 때 발생합니다.

참고: 속성에 대한 알림 신호 pen.

[signal] void QBoxPlotSeries::pressed(QBoxSet *boxset)

이 신호는 사용자가 차트에서 boxset 에 지정된 상자 및 수염 항목을 클릭하고 마우스 버튼을 누르고 있을 때 발생합니다.

[signal] void QBoxPlotSeries::released(QBoxSet *boxset)

이 신호는 사용자가 차트에서 boxset 에 지정된 상자 및 수염 항목을 마우스로 누르고 있다가 손을 떼면 발생합니다.

bool QBoxPlotSeries::remove(QBoxSet *set)

set 으로 지정된 상자 및 수염 항목을 시리즈에서 제거하고 제거에 성공하면 영구 삭제합니다. 항목이 제거된 경우 true 을 반환합니다.

bool QBoxPlotSeries::take(QBoxSet *set)

set 에 지정된 상자 및 수염 항목을 시리즈에서 가져옵니다. 항목을 삭제하지 않습니다.

참고: 시리즈는 항목의 상위 개체로 유지됩니다. 전체 소유권을 가져오려면 부모 객체를 설정해야 합니다.

가져오기 작업이 성공하면 true 을 반환합니다.

[override virtual] QAbstractSeries::SeriesType QBoxPlotSeries::type() const

속성에 대한 액세스 함수를 다시 구현합니다: QAbstractSeries::type.

시리즈의 유형을 반환합니다.

QAbstractSeriesSeriesType도 참조하세요 .

© 2025 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.