Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QQuickItem::grabToImage() do not work in iPhone
I am using QQuickItem::grabToImage() to convert a QQuickItem into image. It is working in Mac OS X, Android , and iOS simulator. However, it don't work in iPhone (tested with iOS8 in iPhone6+). The size of QImage should be correct , but the content is empty.
Anyone know how to fix it? Any hints / advises will be highly welcomed. I don't mind to re-implement a grabToImage() using private API. (I did similar thing in Qt 5.3) But now I don't have any idea what is wrong with it.
This might be related to QTBUG-44450
tscott1213 last edited by tscott1213
I am seeing the same problem. I do not get a correct QImage back from the grabToImage() call on device with ios, but it works fine in the simulator. The image is black on device.
tscott1213 last edited by
This is still happening in the 5.5 beta.
The proper place to report that is the bug tracker
vvolfster last edited by vvolfster
It looks like this still isn't fixed. Is there a work around for this? Getting blank and transparent image.
Charby last edited by
I think this issue already have been reported as QTBUG45902.
Might be a good idea to vote for it to show its importance.
howard74 Banned last edited by
This post is deleted!