Radio button circle becomes colored in when using a scroll area Qt6 on Windows
-
I'm moving a Qt5 project to Qt6.7 on Windows and have come across what appears to be a weird thing with how radio buttons are rendered. Instead of having an outline circle showing the highlighting, the entire circle of the radio button is also colored in.
I've narrowed it down to occurring when the widgets are placed within in scroll area. In the example below, the bottom groupbox is inside a scroll area widget. That seems to cause any radio buttons to be rendered that way. Also the entire scroll area has a lighter gray background. Testing on Windows 11.
Question 1: Is this normal / expected?
Question 2: Can this be turned off?
-
@Will said in Radio button circle becomes colored in when using a scroll area Qt6 on Windows:
Question 1: Is this normal / expected?
Yes since it's the windows 11 style
Question 2: Can this be turned off?
Yes, use the windowsvista style: https://doc.qt.io/qt-6/qstyle.html#setting-a-style