View Full Version : How to achieve Alt+Tab effect ?

11th November 2011, 13:22
Hi All,

How can I achieve similar effect like windows Alt+Tab ( I can use different key combo (Alt+E)) to traverse my focus across array of QPushbutton
while Alt key pressed and frequently hitting 'E' key. To make final selection by leaving both keys (Alt+E) and QPushbutton which has final selection will emit click signal.

QList<QPushButton*> arrayOfPushbutton;

void keyPressEvent(QKeyEvent *e)
if ((e->key()==Qt::Key_E) && (e->modifiers()==Qt::AltModifier))

This way I am able to get Alt+E combo handle but how to traverse through QPushButtonList (procedure explained above) ?

Thanks in advance.

Added after 1 50 minutes:

Please mark this issue as RESOLVED.