[SOLVED] QTabWidget inside of centralWidget
-
Hi,
I have a problem setting a QTabWidget as my centralWidget for my application.
It is just a small apparence problem, you can see in the screenshot below, a small gray line still appear up north even when margin is set to 0 in centralWidget (QTabWidget should take all space) :
https://www.dropbox.com/s/ultw4h8c0sw5yle/interface1.pngHere is the structure of my widgets in QtCreator :
https://www.dropbox.com/s/g74bvn6lwudqagv/structureWidget.pngMy question, is it possible to fix this?
Maybe I could set directly QTabWidget as the Root of my project instead of MainWindow? I will not use status bar and menu so is that a good option?Thanks in advance :)
-
You should enable the "documentMode":http://qt-project.org/doc/qt-4.8/qtabwidget.html#documentMode-prop. It disables the frame around the internal widget.
-
Setting document mode to true in QTabWidget fixed the issue
Thank you very much!