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()));
    QImage qi = grabResult.data()->image();

    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

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.