QColorAxis Class

QColorAxis 클래스는 차트의 축 중 하나로 색상 눈금을 표시합니다. 더 보기...

Header: #include <QColorAxis>
Since: Qt 6.2
Inherits: QAbstractAxis

속성

공공 기능

virtual ~QColorAxis()
bool autoRange() const
QLinearGradient gradient() const
qreal max() const
qreal min() const
void setAutoRange(bool autoRange)
void setGradient(const QLinearGradient &gradient)
void setMax(qreal max)
void setMin(qreal min)
void setSize(const qreal size)
void setTickCount(int count)
qreal size() const
int tickCount() const

신호

void autoRangeChanged(bool autoRange)
void maxChanged(qreal max)
void minChanged(qreal min)
void rangeChanged(qreal min, qreal max)
void sizeChanged(const qreal size)
void tickCountChanged(int tickCount)

상세 설명

전달된 그라데이션에 따라 색상 눈금을 표시하도록 색상 축을 설정할 수 있습니다. 스케일에는 QXYSeries::colorby 메서드로 전달된 데이터에 따라 레이블이 있는 체크 표시가 있습니다.

프로퍼티 문서

autoRange : bool

이 속성은 QXYSeries::colorBy 메서드에서 전달된 값 목록에서 범위를 설정할지 아니면 축 자체에서 가져올지를 나타내는 속성을 보유합니다.

기본값은 true 입니다.

함수에 액세스합니다:

bool autoRange() const
void setAutoRange(bool autoRange)

알림 신호:

void autoRangeChanged(bool autoRange)

max : qreal

이 속성은 축의 최대값을 보유합니다.

이 속성을 설정할 때 필요한 경우 최소값을 조정하여 범위가 유효하게 유지되도록 합니다.

기능에 액세스합니다:

qreal max() const
void setMax(qreal max)

알림 신호:

void maxChanged(qreal max)

min : qreal

이 속성은 축의 최소값을 유지합니다.

이 속성을 설정할 때 필요한 경우 최대값을 조정하여 범위가 유효하게 유지되도록 합니다.

기능에 액세스합니다:

qreal min() const
void setMin(qreal min)

알림 신호:

void minChanged(qreal min)

size : qreal

이 속성은 색상 눈금의 크기를 보유합니다.

정렬에 따라 값은 너비 또는 높이를 나타냅니다.

함수에 액세스합니다:

qreal size() const
void setSize(const qreal size)

알림 신호:

void sizeChanged(const qreal size)

tickCount : int

이 속성은 축의 눈금선 수를 보유합니다. QColorAxis::gridVisible이 true 인 경우 차트에 그려지는 격자선의 수를 나타냅니다. 기본값은 5이며, 2보다 작을 수 없습니다.

참고: 이 유형의 축은 기하학적 값을 나타내지 않으므로 QColorAxis 에서 격자선은 기본적으로 의도적으로 보이지 않습니다.

기능에 액세스합니다:

int tickCount() const
void setTickCount(int count)

알림 신호:

void tickCountChanged(int tickCount)

멤버 함수 문서

[virtual noexcept] QColorAxis::~QColorAxis()

개체를 파괴합니다.

[signal] void QColorAxis::autoRangeChanged(bool autoRange)

이 신호는 autoRange 에 지정된 자동 범위 모드가 변경될 때 발생합니다.

참고: 속성 autoRange 에 대한 알림 신호입니다.

QLinearGradient QColorAxis::gradient() const

현재 색상 눈금에 사용된 그라데이션을 반환합니다.

참고: 축이 계열에 연결된 경우 그라데이션은 QXYSeries::colorBy 메서드에서도 사용됩니다.

setGradient참조하세요 .

[signal] void QColorAxis::maxChanged(qreal max)

이 신호는 max 에 지정된 축의 최대값이 변경될 때 발생합니다.

참고: max 속성에 대한 알림 신호입니다.

[signal] void QColorAxis::minChanged(qreal min)

이 신호는 min 에 지정된 축의 최소값이 변경될 때 발생합니다.

참고: 프로퍼티 min 에 대한 알림 신호입니다.

[signal] void QColorAxis::rangeChanged(qreal min, qreal max)

이 신호는 minmax 에서 지정한 축의 최소값 또는 최대값이 변경될 때 발생합니다.

void QColorAxis::setGradient(const QLinearGradient &gradient)

색상 눈금의 그라데이션을 gradient 으로 설정합니다.

참고: 축이 계열에 연결된 경우 그라데이션은 QXYSeries::colorBy 메서드에서도 사용됩니다.

gradient도 참조하세요 .

[signal] void QColorAxis::tickCountChanged(int tickCount)

이 신호는 tickCount 에 지정된 축의 체크 표시 개수가 변경될 때 발생합니다.

참고: tickCount 속성에 대한 알림 신호입니다.

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