PDA

View Full Version : How stretch icon in QPushButton?



cutie.monkey
7th July 2010, 06:48
Hi,

I got a QPushButton and added an image on it using stylesheet. Is there anyway to stretch the image like in QLabel setScaledContents? I'm searching for stylesheet syntax to stretch the image but i can't find any.

Thanks.

cutie.monkey
8th July 2010, 09:54
Problem solved through reimplementing paintEvent. ;)