Hi, I'm a new Qt4 user and I have my project where I want to open a dock after
the user clicked on a button. I'm using Qt Jambi, but I guess it's the same.

So I add the new dock to the window:
(parent is a QMainWindow and dock is my QDockWidget)

parent.addDockWidget(Qt.DockWidgetArea.RightDockWi dgetArea, dock)
parent.tabifyDockWidget(dock, uiMainWindow.addonDock)

That code will add the dock in the right area and 'tabify' it. But now it is
in the background, i.e. the user need to click on the dock's tab to open it.
In the forderground is still the other dock. You can see the screenshot:
http://gallery2.deventm.org/main.php?g2_itemId=484

What is the method to make the new dock-tab to put in the forderground?

Thank you, Devent.