Creating a rectangular icon

Marco Martin notmart at gmail.com
Fri Feb 26 17:40:17 CET 2010


On Thu, Feb 25, 2010 at 10:29 PM, Antony Loebs
<barefootedjournalist at gmail.com> wrote:
>  I have been trying to figure out how to display a rectangular image in the
> panel to use as a button. The image itself is 30x120, but I can't get it to
> display to my satisfaction. If I use IconWidget, the image is squashed into
> a square. If I use PushButton, the image is likewise squashed by the
> button's borders. I tried changing the stylesheet for the button, setting
> margin and padding to 0, but with no success. Below is the sample code (the
> PushButton code is commented out).

to just display an image you probably want to use Label (yes, it can
display images and a click signaliirc)

Cheers,
Marco Marton


More information about the Plasma-devel mailing list