hi friends,
i try to display different color with respect to the input ..
so to set the color value i use three variable rd , gr , bl and i use it as QColor(rd,gr,bl)
using i program as
Button->setPalette(p);
1Button->setPalette(p);
2Button->setPalette(p);
3Button->setPalette(p);
1Label->setPalette(p);
2Label->setPalette(p);
1Label->setPalette(p);
2Label->setPalette(p);
QPalette p;
p.setColor(QPalette::Background,QColor(rd,gr,bl));
Button->setPalette(p);
1Button->setPalette(p);
2Button->setPalette(p);
3Button->setPalette(p);
1Label->setPalette(p);
2Label->setPalette(p);
1Label->setPalette(p);
2Label->setPalette(p);
To copy to clipboard, switch view to plain text mode
here all the labels are displaying the color but
pushButtons are not displaying the background colors ... why?
i enabled the autofillBackground() also ... if it is not possible then there is any other way to change the color effect according to input ie using a variable for setting color ... ?
please help
thanks in advance
Bookmarks