Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QDockWidget Tab Position

When I group multiple QDockWidgets in the same place, their tabs go at the bottom. Is there a way to put them at the top?

Even better is if I can replace the title bar with the tabs themselves. the Eclipse IDE has very similar behavior, as can be seen in this screenshot:

Eclipse Tabs.

For example, the JUnit tab is also it's header and can be dragged to dock it anywhere else.

like image 969
EricP Avatar asked Feb 05 '26 08:02

EricP


1 Answers

You can control where the tabs are in each of the dock areas with QMainWindow::setTabPosition.

like image 159
Stephen Chu Avatar answered Feb 07 '26 22:02

Stephen Chu