PDA

View Full Version : Selection color



jnana
10th November 2006, 12:29
Hi All,

In one project I am using QTableWidget class. When I am selecting some cells the selection color is coming black. But, I want some light selection color. Is there any way to change the selection color? If so , how to do it.

Expecting a quick replay from u.

Thanks
Jnana

jpn
10th November 2006, 13:28
The easiest solution might be to use Qt 4.2's style sheets (http://doc.trolltech.com/4.2/stylesheet.html#selection-background-color-attr).