Focusing on a tabified QDockWidget in PyQt
Thanks to an answer on the qt-interest mailing list, this is very simple to do with QWidget.raise()
:
http://qt-project.org/doc/qt-4.8/qwidget.html#raise
In PyQt, it's QWidget.raise_()
:
http://pyqt.sourceforge.net/Docs/PyQt4/qwidget.html#raise
For me:
dock2.show();
dock2.raise();
was enough. But yes, both are needed!