PDA

View Full Version : Round Icon shaped QPushButton Click event



kcsomisetty
16th June 2010, 06:16
Hi,
I wanted a round icon to function as a button. For this purpose i used a
QpushButton
set flat to true
seticon a png file(round one).
and border:none.

This looks fine on screen but the real issue comes now.

When the button is pressed, the image remains same. The pushed button effect is not there. (like gradient change to show that the button is in pressed state.

How to do that. please help.
- kc

Ginsengelf
16th June 2010, 06:52
Hi, probably the "flat" property is responsible for this. Did you try it with a non-flat button?

Ginsengelf