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;
QList<QPushButton*> arrayOfPushbutton;
To copy to clipboard, switch view to plain text mode
{
if ((e->key()==Qt::Key_E) && (e->modifiers()==Qt::AltModifier))
HandleKeyCombo();
}
void keyPressEvent(QKeyEvent *e)
{
if ((e->key()==Qt::Key_E) && (e->modifiers()==Qt::AltModifier))
HandleKeyCombo();
}
To copy to clipboard, switch view to plain text mode
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.
Bookmarks