[Qt-jambi-interest] Question converting form QMimeData to QImage
Robert Lebel
boblebel2 at gmail.com
Sat Jan 2 17:40:33 CET 2010
Did you find a solution? I'm curious if mime.toByteArray with perhaps
QIMage.loadFromData or something like that would work.
2009/12/30 Randy Baumgarte <randy at fbn.cx>
> Hello,
>
> I am trying to copy data from the clipboard to a QImage. I've checked
> mime.hasImage() and it is returning true so I know I have the proper data,
> but I'm unclear as to how to get it to a QImage. I looked at the
> documentation and it says that for C++ I need to use qvariant_cast(), but
> there is no matching function for Jambi. QVariant doesn't seem to have a
> toImage() function. Is there any example I can look at?
>
> Thanks,
> R.
>
> _______________________________________________
> Qt-jambi-interest mailing list
> Qt-jambi-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20100102/1533ad32/attachment.html
More information about the Qt-jambi-interest
mailing list