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) | |
virtual | ~QInputSettings () |
QObject * | eventSource () const |
void | setEventSource (QObject * eventSource ) |
void | eventSourceChanged ( QObject * ) |
const QMetaObject | staticMetaObject |
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 .
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 * ) |
Default constructs an instance of QInputSettings.
[虚拟]
QInputSettings::
~QInputSettings
()
Destroys the instance of QInputSettings. The destructor is virtual.