QInputEvent Class
The QInputEvent class is the base class for events that describe user input. More…
| Header | #include <QInputEvent> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Gui) |
| Module | Nt GUI C++ Classes |
| Inherits | QEvent |
| Inherited by | QKeyEvent, QMouseEvent, QWheelEvent |
List of all members, including inherited members
Public Functions
| QInputEvent(Type type, Qt::KeyboardModifiers modifiers = Qt::NoModifier) | |
| Qt::KeyboardModifiers | modifiers() const |
| void | setModifiers(Qt::KeyboardModifiers modifiers) |
Reimplemented Public Functions
| QInputEvent * | clone() const |
Detailed Description
It carries the keyboard modifiers that were down when the input happened.
See also QMouseEvent, QKeyEvent and QWheelEvent.
Differences from Qt
There is no timestamp, device or clone().
Member Function Documentation
QInputEvent::QInputEvent(Type type, Qt::KeyboardModifiers modifiers = Qt::NoModifier)
Constructs an input event of the given type with the keyboard modifiers.
QInputEvent * QInputEvent::clone() const
Reimplements QEvent::clone().
Qt::KeyboardModifiers QInputEvent::modifiers() const
Returns the modifier keys that were down when the event happened.
See also setModifiers().
void QInputEvent::setModifiers(Qt::KeyboardModifiers modifiers)
Sets the modifiers to modifiers.
See also modifiers().