[SOLVED] QTabWidget inside of centralWidget
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) :
Here is the structure of my widgets in QtCreator :
My 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!