Hyun-geun Kim
Hyun-geun Kim

Reputation: 1069

qt : Can I get keyboard like QCursor?

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?

Upvotes: 0

Views: 207

Answers (1)

Eric Hulser
Eric Hulser

Reputation: 4022

QApplication::keyboardModifiers() == Qt::ControlModifier

Upvotes: 1

Related Questions