이 페이지에서

QLogValue3DAxisFormatter Class

QLogValue3DAxisFormatter 클래스는 로그 값 축에 대한 서식 지정 규칙을 제공합니다. 더 보기...

헤더: #include <QLogValue3DAxisFormatter>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
QML에서: LogValue3DAxisFormatter
상속: QValue3DAxisFormatter

속성

공개 함수

QLogValue3DAxisFormatter(QObject *parent = nullptr)
virtual ~QLogValue3DAxisFormatter() override
bool autoSubGrid() const
qreal base() const
bool edgeLabelsVisible() const
void setAutoSubGrid(bool enabled)
void setBase(qreal base)
void setEdgeLabelsVisible(bool enabled)

신호

void autoSubGridChanged(bool enabled)
void baseChanged(qreal base)
void edgeLabelsVisibleChanged(bool enabled)

상세 설명

포맷터가 값 축에 연결된 경우, 축 범위에는 음수 값이나 0이 포함될 수 없습니다.

QValue3DAxisFormatter도 참조하십시오 .

속성 문서

autoSubGrid : bool

이 속성은 서브 그리드 위치가 자동으로 생성되는지 여부를 결정합니다.

이 속성 값이 ` true`로 설정된 경우, 서브그리드 선 위치를 계산할 때 상위 축의 서브세그먼트 수는 무시됩니다. 서브그리드 위치는 ` base ` 속성 값에 따라 자동으로 생성됩니다. 서브그리드 선의 수는 기본값에서 1을 뺀 값으로 설정되며, 소수점은 버림 처리됩니다. 기본값이 0인 경우 이 속성은 무시됩니다. 기본값은 ` true`입니다.

액세스 함수:

bool autoSubGrid() const
void setAutoSubGrid(bool enabled)

알림 신호:

void autoSubGridChanged(bool enabled)

base 및 QValue3DAxis::subSegmentCount도 참조하십시오 .

base : qreal

이 속성은 축 값을 매핑하는 데 사용되는 로그의 기수를 저장합니다.

기수가 0이 아닌 경우, 격자선 및 레이블 위치를 계산할 때 상위 축의 세그먼트 개수는 무시됩니다. 범위를 일반 값 축과 같이 균등한 세그먼트로 나누려면 이 속성의 값을 0으로 설정하십시오.

기수는 0이거나 양수여야 하며, 1과 같을 수는 없습니다. 기본값은 10입니다.

액세스 함수:

qreal base() const
void setBase(qreal base)

알림 신호:

void baseChanged(qreal base)

QValue3DAxis::segmentCount도 참조하십시오 .

edgeLabelsVisible : bool

이 속성은 축의 첫 번째 및 마지막 레이블이 표시되는지 여부를 나타냅니다.

base 속성의 값이 0이 아닐 경우, 전체 축 범위가 종종 균등하게 세그먼트로 나뉘지 않습니다. 첫 번째 및 마지막 구간은 다른 구간들보다 작은 경우가 많습니다. 극단적인 경우, 이로 인해 첫 번째와 마지막 두 격자선에서 레이블이 겹칠 수 있습니다. 이 속성을 ` false`로 설정하면, 구간이 축에 정확히 맞지 않는 경우 축의 최소 및 최대 레이블 표시를 억제할 수 있습니다. 기본값은 ` true`입니다.

액세스 함수:

bool edgeLabelsVisible() const
void setEdgeLabelsVisible(bool enabled)

알림 신호:

void edgeLabelsVisibleChanged(bool enabled)

base 및 QAbstract3DAxis::labels도 참조하십시오 .

멤버 함수 문서

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

선택적 상위 객체 parent 를 사용하여 새로운 로그 값 3D 축 포맷터를 생성합니다.

[override virtual noexcept] QLogValue3DAxisFormatter::~QLogValue3DAxisFormatter()

로그 값 3D 축 서식 지정기를 삭제합니다.

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