Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. On Android with Honor 6 grabToImage() takes noise image
Forum Updated to NodeBB v4.3 + New Features

On Android with Honor 6 grabToImage() takes noise image

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 568 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PowerNowP Offline
    PowerNowP Offline
    PowerNow
    wrote on last edited by PowerNow
    #1

    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?

    1 Reply Last reply
    0
    • PowerNowP Offline
      PowerNowP Offline
      PowerNow
      wrote on last edited by
      #2

      I fixed the problem by updating to Qt 5.9.1

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved