qCheckbox back ground color
Hi,
i set the qCheckbox coloring using setPalette(), but it changes the background color of text beside checkbox.
I want to change the color of the checkbox (the small box where we can check and uncheck the option) and not the text.
please provide any code snippet if possible
regards
Re: qCheckbox back ground color
The QPalette::Base role is responsible for the color of the box.
The following snippet would set it do blue.
Code:
cb.setPalette( p );
See
http://doc.trolltech.com/4.2/qpalett...ColorRole-enum
This also should solve your QComboBox problem.