[Solved] Clicking QPushButtons with icons inside
-
A normal QPushButton changes appearance when you click it. It's different with QPushButtons that have the pixmap property - only the area that isn't taken up by the image changes appearance.
Unfortunately the images in my QPushButtons are as big as the button itself, so when it's clicked, it accepts the click, but there's no change in appearance to indicate that it was clicked. Any ideas on how to get around this?
-
Did you have a look at "stylesheets":http://doc.qt.nokia.com/4.8-snapshot/stylesheet-examples.html#customizing-qpushbutton?
It is possible to make the appearance different depending on the clicked state using stylesheets.
Edit : Here is a "similar thread":http://developer.qt.nokia.com/forums/viewthread/867
You could find similar topics yourself using the tag system on the right of your screen. ;)