Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

On Android with Honor 6 grabToImage() takes noise image



  • QEventLoop loop;
    QSharedPointer<QQuickItemGrabResult> grabResult = itemInQml->grabToImage();
    loop.connect(grabResult.data(), SIGNAL(ready()), &loop, SLOT(quit()));
    loop.exec();
    loop.exit();
    QImage qi = grabResult.data()->image();
    qi.save("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