QInputSettings Class

class Qt3DInput::QInputSettings

QInputSettings 클래스는 입력 이벤트 소스 개체에 대한 포인터를 보유합니다. 더 보기...

Header: #include <QInputSettings>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML에서: InputSettings
상속합니다: Qt3DCore::QComponent
상태: Deprecated

속성

공용 기능

QObject *eventSource() const

공용 슬롯

void setEventSource(QObject *eventSource)

신호

void eventSourceChanged(QObject *)

상세 설명

QInputSettings 컴포넌트는 씬 루트 엔티티의 컴포넌트로 설정해야 합니다. 여기에는 다양한 입력 클래스에서 처리할 입력 이벤트의 소스 역할을 하는 객체에 대한 포인터가 저장됩니다. 예를 들어 QWindow 인스턴스가 이벤트 소스가 될 수 있습니다.

QMouseDeviceQKeyboardDevice참조하세요 .

프로퍼티 문서

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.