[Po]lentino
9th April 2009, 18:28
Hi all,
I need some help on creating a widget shaped with an icon I choosed, and with the same icon displayed.
For the first part, all is simple:
...
QDialog myDialog;
QPixmap myPixmap = QPixmap( QString::fromUTF8(":/img/logo.svg") );
myDialog.setMask( pixmap.mask() );
Now, how can I embed the same .svg icon inside the shaped dialog, in order to display it ??
Or, there is a simpler way to do it ??
Thanks in advance, cheers !
I need some help on creating a widget shaped with an icon I choosed, and with the same icon displayed.
For the first part, all is simple:
...
QDialog myDialog;
QPixmap myPixmap = QPixmap( QString::fromUTF8(":/img/logo.svg") );
myDialog.setMask( pixmap.mask() );
Now, how can I embed the same .svg icon inside the shaped dialog, in order to display it ??
Or, there is a simpler way to do it ??
Thanks in advance, cheers !