[Qt-interest] Add docks and make them visible
Erwin Mueller
devent at deventm.org
Fri Jul 31 08:38:27 CEST 2009
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.RightDockWidgetArea, 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 be in the forderground?
Thank you, Erwin.
More information about the Qt-interest-old
mailing list