In looking at the code, it appears that the outer square is filled with a brush created from the style's "Window" QPalette::ColorRole. So when you create your instance of the ColorWheel, retrieve the palette, change the brush for the Normal ColorGroup and Window ColorRole to white, then set the palette back on the widget:
ColorWheel * myWheel = new ColorWheel( this );
QPalette wheelPalette
= myWheel
->palette
();
myWheel->setPalette( wheelPalette );
ColorWheel * myWheel = new ColorWheel( this );
QPalette wheelPalette = myWheel->palette();
wheelPalette.setBrush( QPalette::Normal, QPalette::Window, QBrush( Qt::white ) );
myWheel->setPalette( wheelPalette );
To copy to clipboard, switch view to plain text mode
This code sets the background color only for the active (normal) mode. The color for the inactive and disabled modes remain whatever they are. If you want the background color as white regardless of mode, then use the setBrush() method that takes only the ColorRole and QBrush as arguments.
Bookmarks