Hi to everyone,
I have an issue with changing the color of a QPushButton. I have to change the color, of a pushbutton to green in certain conditions.

I got the code working on Qt 4.8.6 on a Debian machine, but the same code (listed below) doesn't behave at the same manner on a Raspberry Pi.

QPalette PHighlighted = palette();
PHighlighted.setColor(QPalette::Button, QColor(Qt::green));
ui->Btn->setPalette(PHighlighted);

In the first case all the button becomes green with a black text, but on the Raspberry only a small frame around the edges of the button changes to green (with small to none visible effect).

Any ideas?
Thanks in advance

P.S. I use Qt 4.8.6 with QtCreator 3.2.1 if it is helpful.