Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Weird position of QDockWidget across from QTabWidget
I designed a QMainWindow in Qt designer. This window have a QDockWidget and a QTabWidget. But the two widget aren't at the same "height". The QDockWidget doesn't go as deep as the QTabWidget. This behavior is really weird and I have no clue about its origin. Does anybody can help.
Thanks in advance.
Do you mean the content of the dock widget is not at the same height as the QTabWidget ?
Exactly. The bottom of the QDOckWidget is slighty highter than the bottom of the QTabWidget. I don't know if its normal but it looks weird to the user.
AFAIK this depends partly on the widget you set on the dock widget (i.e. margin/spacing of layouts etc...)
For the moment, the QDockWidget contains a QListView and the QTabWidget contains QPlainTextEdit. Isn't there a way to align the bottom of this two widgets ?
You could try to play with the margin/spacing of the layout of QDockWidget
I wish I could have use something easy to solve this issue. Thanks SGaist, I'll try to play with the margins and so on.