이 페이지에서

QBarDataItem Class

QBarDataItem 클래스는 막대 그래프에 추가될 처리된 데이터를 담을 수 있는 컨테이너를 제공합니다. 더 보기...

헤더: #include <QBarDataItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs

공개 함수

QBarDataItem()
QBarDataItem(float value)
QBarDataItem(float value, float angle)
float rotation() const
void setRotation(float angle)
void setValue(float val)
float value() const

상세 설명

막대 데이터 항목은 그래프에서 렌더링된 단일 막대에 대한 데이터를 보관합니다. 막대 데이터 프록시는 데이터를 분석하여 막대 그래프용 QBarDataItem 인스턴스로 변환합니다.

QBarDataProxy 및 Qt Graphs 3D용 C++ 클래스도 참조하십시오 .

멤버 함수 문서

[constexpr noexcept default] QBarDataItem::QBarDataItem()

막대형 데이터 항목을 생성합니다.

[explicit constexpr noexcept] QBarDataItem::QBarDataItem(float value)

value 라는 값을 가진 막대형 데이터 항목을 생성합니다.

[explicit constexpr noexcept] QBarDataItem::QBarDataItem(float value, float angle)

값이 ` value `이고 각도가 ` angle`인 막대형 데이터 항목을 생성합니다.

[constexpr noexcept] float QBarDataItem::rotation() const

이 데이터 항목의 회전 각도를 도 단위로 반환합니다.

setRotation()도 참조하십시오 .

[constexpr noexcept] void QBarDataItem::setRotation(float angle)

이 데이터 항목의 회전 각도 angle 를 도 단위로 설정합니다.

rotation()도 참조하십시오 .

[constexpr noexcept] void QBarDataItem::setValue(float val)

이 데이터 항목에 val 값을 설정합니다.

value()도 참조하십시오 .

[constexpr noexcept] float QBarDataItem::value() const

이 데이터 항목의 값을 반환합니다.

setValue()도 참조하십시오 .

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