QAccessibleViewportInterface Class
The QAccessibleViewportInterface class implements support for viewports. More...
| Header: | #include <QAccessibleViewportInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Since: | Qt 6.12 |
| Status: | Technology preview |
This class is in technology preview and is subject to change.
- List of all members, including inherited members
- QAccessibleViewportInterface is part of Accessibility Classes.
Public Functions
| virtual | ~QAccessibleViewportInterface() |
| virtual QSizeF | contentSize() const = 0 |
| virtual bool | isIndexed() const = 0 |
| virtual QPointF | position() const = 0 |
| virtual void | setPosition(const QPointF &position) = 0 |
| virtual QSizeF | viewportSize() const = 0 |
Detailed Description
This interface should be implemented by accessible objects that allow an 2-dimensional or indexed viewports (e.g. by scrolling). For example lists or flickable views.
Member Function Documentation
[virtual noexcept] QAccessibleViewportInterface::~QAccessibleViewportInterface()
Destroys the QAccessibleViewportInterface.
[pure virtual] QSizeF QAccessibleViewportInterface::contentSize() const
Returns the total size of the content in absolute values. For non-indexed viewports this will return the absolute size of the underlying content, for indexed viewports the count of rows and columns is returned.
[pure virtual] bool QAccessibleViewportInterface::isIndexed() const
Returns true if the underlying content is indexed (e.g. a list of items).
[pure virtual] QPointF QAccessibleViewportInterface::position() const
Returns the current position within the viewport in normalized values.
See also setPosition().
[pure virtual] void QAccessibleViewportInterface::setPosition(const QPointF &position)
Sets the viewport's position to the given position defined in normalized values.
See also position().
[pure virtual] QSizeF QAccessibleViewportInterface::viewportSize() const
Returns the currently visible portion of the content in normalized values.
© 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.