PDA

View Full Version : selecting/activating tabify'd DockWidget?



iraytrace
12th February 2010, 22:19
I've got several QDockWidgets stacked up (with tabifyDockWidget()) in the right hand dock widget area. I'd like to programmatically select which of the tabs is selected (on top, activated) both at application start-up time and in response to user keyboard input. Is there a way to set a particular QDockWidget to be selected?

Lykurg
12th February 2010, 23:12
You can use QWidget::activateWindow() and/or QWidget::raise().

iraytrace
19th February 2010, 18:44
Thanks! As it turns out, QWidget::activateWindow() doesn't do the job. However, QWidget::raise() was necessary and sufficient.