Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61713

On Android with Honor 6 grabToImage() takes noise image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.12
    • Labels:
      None
    • Environment:
      Android 6 / Honor 6
    • Platform/s:
      Android

      Description

      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.

      Similar to QTBUG-59303.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tiroler Armin Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes