PDA

View Full Version : 'Alt+Tab' Operation for QT Apps containg dockable widgets



nileshsince1980
20th May 2009, 08:46
Hi All,
I am developing QT application which is having QMainWindow with central tab Widget and other 4/5 dockable widgets. Now I want to swich over from one dockable widget to another using keyboard short-cut like 'Shift+Tab' Or 'Ctrl+Tab'. This behaviour is same like
on windows when we have more than one window opened, we can switch using 'Alt+Tab' which shows windows opened on taskbar.

Please give me any clue/ suggestion to add this feature in my Qt based application.

wysota
20th May 2009, 09:05
Popup a widget containing a list of icons representing each window and allow the user to iterate over them using the key combination you have chosen. When the last key (the modifier) is released, close the widget and call setFocus() and raise() on the dock widget you want to bring to front.