[Qt-interest] Fwd: mime data
Robert Hairgrove
evorgriahr at hispeed.ch
Tue Dec 30 20:02:23 CET 2008
ami guru wrote:
> Thanks Bob,
>
> I thought about that as well.
>
> Then i pondered a bit ; Are QIcon and QImage the same ?
>
> I am dealing with QIcon that is not defined in the QMimeData
Well, you can set the QPixmap of a QIcon with this function:
void QIcon::addPixmap ( const QPixmap & pixmap, Mode mode = Normal,
State state = Off );
And with QIcon::pixmap, you can read the pixmap out of the icon. QImage
and QPixmap can be converted one to the other (see docs in QtAssistant
about the QPixmap class), so it should work.
More information about the Qt-interest-old
mailing list