Weird position of QDockWidget across from QTabWidget
-
Hello folks,
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.
!http://i.imgur.com/0NXFVTW.png(Wrong align)!
-
Hi,
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.