Solved Window background color problems with 5.10
-
So I have a problem which I don't really know how to tackle as it seems to work on my development machine.
The windows in question look like this:
I started development with 5.9 and just recently changed to 5.10.
Now I'm getting reports that the windows look like this:
This is all on Windows 10.
So it's either wrong on my machine and the dark background doesn't get propagated correctly or it's wrong on their machines. The question is, what in the change from 5.9 to 5.10 could cause this and why is it different? What in the windows settings could possibly cause it?
Edit: image tags aren't working here either
[They are working, you just need to use an image URL, not an URL to a webpage. ~kshegunov] -
Hi,
What version of 5.10 are you using ? Current is 5.10.1.
Can you reproduce that with the Beta of 5.11 ? -
@Roest It looks to me like something changed in the QGroupBox and it is not drawing it's background.
Try
yourGroupBox->setAutoFillBackground(true);
and see if that helps. This is off by default and maybe something changed in 5.9 to 5.10 that caused the difference in drawing. -
@ambershark said in Window background color problems with 5.10:
@Roest It looks to me like something changed in the QGroupBox and it is not drawing it's background.
Try
yourGroupBox->setAutoFillBackground(true);
and see if that helps. This is off by default and maybe something changed in 5.9 to 5.10 that caused the difference in drawing.Well I didn't use groupboxes there but the setAutoFillBackground(true); fixed it for all the tab widgets.
Thanks.