White background in QTabWidget



  • 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

    Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.