I want to get pressed keyboard in drag/drop work.
I made a process to DO drag/drop in dropMimeData().
So, I can't detect "ctrl" in that process.
In case of mouse, I can get the infomation with QCursor, right?
Is there any way like QCursor for keyboard?
Asked
Active
Viewed 201 times
0

Hyun-geun Kim
- 919
- 3
- 22
- 37
-
possible duplicate of [How to detect the modifier key on mouse click in QT](http://stackoverflow.com/questions/3100090/how-to-detect-the-modifier-key-on-mouse-click-in-qt) – Mat Sep 04 '12 at 06:05
1 Answers
1
QApplication::keyboardModifiers() == Qt::ControlModifier

Eric Hulser
- 3,912
- 21
- 20
-
thanks.. "QApplication" has no "keyboard()" :) I can access directly "keyboardModifiers()" – Hyun-geun Kim Sep 05 '12 at 03:18