Add space between toolbar and dock widgets
Unsolved
General and Desktop
-
wrote on 31 May 2022, 14:24 last edited by
-
wrote on 31 May 2022, 14:47 last edited by
Well you can use the layout to add space, or add a spaceritem.
https://doc.qt.io/qt-6/qspaceritem.html#details -
Well you can use the layout to add space, or add a spaceritem.
https://doc.qt.io/qt-6/qspaceritem.html#details -
@Maluna34 After reading your post again, i think perhaps all you need is to set contentsmargin?
E.g. ui->centralwidget->layout()->setContentsMargins(0,40,0,0); -
wrote on 31 May 2022, 19:36 last edited by
@Maluna34 said in Add space between toolbar and dock widgets:
@Tink It does not work. :(
I'm sorry, my last remark was non-sensical since a dockwidget is not part of the centralwidget. This is probably some very specific dockwidget stuff that i don't know about. Perhaps some of the guru's here will know if it's possible.
6/6