QInputSettings Class

( Qt3DInput::QInputSettings )

QInputSettings class holds the pointer to an input event source object. 更多...

頭: #include <QInputSettings>
qmake: QT += 3dinput
Since: Qt 5.7
實例化: InputSettings
繼承: Qt3DCore::QComponent

特性

公共函數

QInputSettings (Qt3DCore::QNode * parent = nullptr)
~QInputSettings ()
QObject * eventSource () const

公共槽

void setEventSource (QObject * eventSource )

信號

void eventSourceChanged ( QObject * )

額外繼承成員

詳細描述

QInputSettings class holds the pointer to an input event source object.

The QInputSettings component must be set as a component of the scene root entity. It stores a pointer to the object that acts as the source of input events to be handled by various input classes. For example, a QWindow instance can be an event source.

另請參閱 QMouseDevice and QKeyboardDevice .

特性文檔編製

eventSource : QObject *

Holds the current event source. An event source is an object that is capable of receiving various input events, such as mouse or keyboard events. Typically it is a QWindow 實例。

訪問函數:

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

通知程序信號:

void eventSourceChanged ( QObject * )

成員函數文檔編製

QInputSettings:: QInputSettings ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QInputSettings.

QInputSettings:: ~QInputSettings ()

Destroys the instance of QInputSettings.