6.0.0-rc4Source

QInputEvent Class

The QInputEvent class is the base class for events that describe user input. More…

Header#include <QInputEvent>
CMaketarget_link_libraries(app PRIVATE Nt::Gui)
ModuleNt GUI C++ Classes
InheritsQEvent
Inherited byQKeyEvent, QMouseEvent, QWheelEvent

List of all members, including inherited members

Public Functions

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.

[override] 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().