[Qt-interest] Simple question about QPushButton and StyleSheet
Kari Laine
klaine8 at gmail.com
Sun Jan 24 14:48:31 CET 2010
Hi,
I need to change the background color of buttons on the fly. I mean
that the color of the button will change between two values when it is
pressed.
I tested with a stylesheet and got the color of a button to change
when I do it at the time of button creation before it is added to
layout.
But howto change the color when the button is already in the layout?
Do I have to do repaint?
Do I have to remove and readd the button to the layout?
Best Regards
Kari
--
PIC - ARM - Microcontrollers - I2C - SPI
Keypads - USB-RS232 - USB-I2C - Accessories
http://www.byvac.com
I am just a happy customer
More information about the Qt-interest-old
mailing list