Qt 6.12 LTS is out! See what's new in the release
blog
How to handle keyboard and mouse at the same time?
General and Desktop
3
Posts
2
Posters
4.3k
Views
1
Watching
-
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!