Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
White background in QTabWidget
AnKlatt last edited by
I have a problem using QTabWidget. In the form designer, the widget appears as it should be, with gray background and only the current tab highlighted in white. If I build and run the application though, the whole tab page has a white background, and making an ugly contrast with the other gray widgets.
If I set documentMode to true, then the page has the expected behavior, with the background gray. I also tried styling the interface (with app.setStyle("fusion")), but the background is still white. Is this a bug or the default behavior of the tab widget in 'non-documentMode'?
I'm running Qt 5.4.0, Qt Creator 3.3.0, Windows 8.1