How to capture a sequence of key presses and then fire an event in Qt? -


i know how fire event on key press in qt. need handle sequence. fire event when user presses ctrlaltt.

how can capture sequence? tell me how can detect keys pressed.

create qaction, add required key sequence setshortcut(const qkeysequence& shortcut). associate qaction calling qwidget::addaction(qaction* action), , can create appropriate signal/slot connections between qaction , qwidget.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -