PDA

View Full Version : stylesheet of radiobutton



DEEPADEV
4th June 2012, 12:23
How to change the color of indicators in checkbox and radiobutton.
I tried something like this for checkbox
checkbox1->setStyleSheet("spacing: 5px;::indicator:checked { width: 15px; height: 15px;border-width: 2px;background:white; border-style: outset; border-color: blue; }");

but if i try it. I am not able to see the checkmark over it
.
And i didn't find anything for radiobutton.
I searched and applied some code but none working

tferreira
4th June 2012, 12:41
Here you go: http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qradiobutton

DEEPADEV
4th June 2012, 13:27
Sorry but i don't want to use images
i need to recolor radiobutton's center striker to different color .
may be stylesheet can do this?
but not able to find the proper way to implement