이 페이지에서

QAccessibleViewportInterface Class

QAccessibleViewportInterface 클래스는 뷰포트 기능을 구현합니다. 더 보기...

헤더: #include <QAccessibleViewportInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
다음 버전부터: Qt 6.12부터
상태: 기술 미리보기

이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

공개 함수

QAccessibleViewportInterface()
virtual ~QAccessibleViewportInterface()
virtual QSizeF contentSize() const = 0
virtual bool isIndexed() const = 0
virtual QPointF position() const = 0
virtual void setPosition(QPointF position) = 0
virtual QSizeF viewportSize() const = 0

상세 설명

이 인터페이스는 2차원 또는 인덱스 뷰포트(예: 스크롤)를 허용하는 접근 가능한 개체에서 구현되어야 합니다. 예를 들어 목록이나 플릭 가능한 뷰 등이 있습니다.

멤버 함수 설명

[constexpr noexcept default] QAccessibleViewportInterface::QAccessibleViewportInterface()

QAccessibleViewportInterface 의 인스턴스를 기본 생성합니다.

[virtual noexcept] QAccessibleViewportInterface::~QAccessibleViewportInterface()

QAccessibleViewportInterface 를 파괴합니다.

[pure virtual] QSizeF QAccessibleViewportInterface::contentSize() const

콘텐츠의 총 크기를 절대값으로 반환합니다. 인덱싱되지 않은 뷰포트의 경우 기본 콘텐츠의 절대 크기가 반환되며, 인덱싱된 뷰포트의 경우 행과 열의 개수가 반환됩니다.

[pure virtual] bool QAccessibleViewportInterface::isIndexed() const

기본 콘텐츠가 인덱싱된 경우(예: 항목 목록) true를 반환합니다.

[pure virtual] QPointF QAccessibleViewportInterface::position() const

뷰포트 내의 현재 위치를 정규화된 값으로 반환합니다.

setPosition()도 참조하십시오 .

[pure virtual] void QAccessibleViewportInterface::setPosition(QPointF position)

뷰포트의 위치를 정규화된 값으로 정의된 지정된 원점 좌표계( position )로 설정합니다.

position()도 참조하십시오 .

[pure virtual] QSizeF QAccessibleViewportInterface::viewportSize() const

콘텐츠 중 현재 표시되고 있는 부분을 정규화된 값으로 반환합니다.

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