このページでは

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.