Leutzig
28th November 2015, 02:08
Hi,
I'm making a color picker program for an RBG-LED and I found a color wheel online that I've been using. I decided later on to use a Tab Widget as my main widget, but I'm having some trouble with the background color of the color wheel. Since the tab widget's default background color is white and a "normal" widget's (which I've used as parent for the color wheel) default background color is grey, the color wheel ends up with a visible grey square around it (see attached picture).
I tried writing this in my main, but it makes the whole widget white including the color wheel.
colorWheelWidget->setStyleSheet("background-color:white;");
The color wheel is written all in code, which I'm not very familiar with, so I wonder if there is a way to change the color wheel's default color to white inside the colorwheel cpp-file?
I found the color wheel here:
https://forum.qt.io/topic/19261/colorwheel
//Leutzig
I'm making a color picker program for an RBG-LED and I found a color wheel online that I've been using. I decided later on to use a Tab Widget as my main widget, but I'm having some trouble with the background color of the color wheel. Since the tab widget's default background color is white and a "normal" widget's (which I've used as parent for the color wheel) default background color is grey, the color wheel ends up with a visible grey square around it (see attached picture).
I tried writing this in my main, but it makes the whole widget white including the color wheel.
colorWheelWidget->setStyleSheet("background-color:white;");
The color wheel is written all in code, which I'm not very familiar with, so I wonder if there is a way to change the color wheel's default color to white inside the colorwheel cpp-file?
I found the color wheel here:
https://forum.qt.io/topic/19261/colorwheel
//Leutzig