Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to handle keyboard and mouse at the same time?
-
Hi,
I have a question about handling the keyboard input synchronously with mouse input such as CTRL key + mouse left button pressed.
I appreciate if you have any reference to Qt-tutorial or Qt-pages or any other link.
Thanks!
-
a mouse event contains this information. See "QWidget::mousePressEvent":http://doc.qt.nokia.com/4.7/qwidget.html#mousePressEvent and "QMouseEvent --> QInputEvent::modifiers":http://doc.qt.nokia.com/4.7/qinputevent.html#modifiers
-
Thank you!