[Interest] QIcon from ARGB32 data

Damian Ivanov damianatorrpm at gmail.com
Fri Jun 13 00:00:38 CEST 2014


Hello,

I'm trying to show a QIcon from ARGB32 data which come from dbus,
any help suggestions how to do that?

I have a QByteArray which contains the data, I tried

QImage image;
image.loadFromData(myByteArray);
QPixmap pixmap = QPixmap::fromImage(image);
return QIcon(pixmap) ;
unfortunately this doesn't show the icon.

Thanks in advance.
Damian



More information about the Interest mailing list