QAccessibleValueInterface Class
QAccessibleValueInterface 클래스는 값을 조작하는 객체에 대한 지원을 구현합니다. 더 보기...
Header: | #include <QAccessibleValueInterface> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
- 상속된 멤버를 포함한 모든 멤버의 목록
- QAccessibleValueInterface는 접근성 클래스의 일부입니다.
공용 함수
virtual | ~QAccessibleValueInterface() |
virtual QVariant | currentValue() const = 0 |
virtual QVariant | maximumValue() const = 0 |
virtual QVariant | minimumStepSize() const = 0 |
virtual QVariant | minimumValue() const = 0 |
virtual void | setCurrentValue(const QVariant &value) = 0 |
상세 설명
이 인터페이스는 값을 나타내는 접근 가능한 객체에 의해 구현되어야 합니다. 예를 들어 스피너, 슬라이더, 다이얼, 스크롤 바 등이 있습니다.
이 인터페이스는 사용자가 위젯의 개별 부분을 다루도록 강요하는 대신 위젯이 나타내는 위젯의 종류에 대해 더 쉽게 접근할 수 있도록 해줍니다.
일반적으로 이 인터페이스는 QAccessibleInterface 를 구현하는 클래스에서 구현됩니다.
멤버 함수 문서
[virtual noexcept]
QAccessibleValueInterface::~QAccessibleValueInterface()
QAccessibleValueInterface 를 파괴합니다.
[pure virtual]
QVariant QAccessibleValueInterface::currentValue() const
위젯의 현재 값을 반환합니다. 일반적으로 더블 또는 정숫값입니다.
setCurrentValue()도 참조하세요 .
[pure virtual]
QVariant QAccessibleValueInterface::maximumValue() const
이 객체가 허용하는 최대값을 반환합니다.
minimumValue() 및 currentValue()도 참조하세요 .
[pure virtual]
QVariant QAccessibleValueInterface::minimumStepSize() const
접근 가능한 최소 단계 크기를 반환합니다. 이 값은 값을 변경할 때 의미가 있는 가장 작은 단위입니다. 프로그래밍 방식으로 값을 변경할 때는 항상 최소 단계 크기의 배수여야 합니다.
일부 도구는 setCurrentValue 에서 아무런 작업을 수행하지 않을 때에도 이 값을 사용합니다. 예를 들어 진행률 표시줄은 읽기 전용이지만 그 범위를 100으로 나눈 값을 반환해야 합니다.
[pure virtual]
QVariant QAccessibleValueInterface::minimumValue() const
이 객체가 허용하는 최소값을 반환합니다.
maximumValue() 및 currentValue()도 참조하세요 .
[pure virtual]
void QAccessibleValueInterface::setCurrentValue(const QVariant &value)
value 을 설정합니다. 원하는 value 이 허용되는 값 범위를 벗어나면 이 호출은 무시됩니다.
currentValue(), minimumValue() 및 maximumValue()도 참조하세요 .
© 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.