QInputSettings Class

class Qt3DInput::QInputSettings

QInputSettingsクラスは、入力イベント・ソース・オブジェクトへのポインタを保持します。詳細...

ヘッダー #include <QInputSettings>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake QT += 3dinput
QML で InputSettings
を継承しています: Qt3DCore::QComponent
ステータス非推奨

プロパティ

パブリック機能

QObject *eventSource() const

パブリックスロット

void setEventSource(QObject *eventSource)

シグナル

void eventSourceChanged(QObject *)

詳細説明

QInputSettingsコンポーネントは、シーンルートエンティティのコンポーネントとして設定されなければならない。これは、様々な入力クラスによって処理される入力イベントのソースとして動作するオブジェクトへのポインタを格納します。例えば、QWindow インスタンスは、イベントソースになることができる。

QMouseDevice およびQKeyboardDeviceも参照してください

プロパティ ドキュメント

eventSource : QObject*

現在のイベント・ソースを保持する。イベント・ソースは、マウスやキーボード・イベントなどの様々な入力イベントを受け取ることができるオブジェクトです。通常、QWindow インスタンスです。

アクセス関数:

QObject *eventSource() const
void setEventSource(QObject *eventSource)

ノーティファイア・シグナル:

void eventSourceChanged(QObject *)

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