Important: Please read the Qt Code of Conduct -

On Android with Honor 6 grabToImage() takes noise image

  • QEventLoop loop;
    QSharedPointer<QQuickItemGrabResult> grabResult = itemInQml->grabToImage();
    loop.connect(, SIGNAL(ready()), &loop, SLOT(quit()));
    QImage qi =>image();"Test.jpg");

    On LG G2 / Android 5.1 and Win10 it works correctly. On Honor 6 / Android 6 the result is a randomly noise image, The format shows Format_RGBA8888_Premultiplied.

    I created QTBUG-61713.

    Has maybe anyone an idea?

  • I fixed the problem by updating to Qt 5.9.1

Log in to reply