Hi
How an event can be created by pressing and holding a key like "Ctrl" button on keyboard? For example:
Qt Code:
  1. keyPressingHoldingEvent(QKeyEvent * event)// is there any event function for pressing and holding a key?
  2. {
  3. if(event->key() == Qt::Key_Control)//if "Ctrl" is pressing and holding
  4. //do something
  5. else
  6. //do some other thing (if "Ctrl" is not holding)
  7. }
To copy to clipboard, switch view to plain text mode