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. Canvas.savedoes not work on Android

Canvas.savedoes not work on Android

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 690 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.
  • M Offline
    M Offline
    Mike20120228
    wrote on last edited by
    #1

    I created a canvas using QML, made some drawings, and thenused its"save" function to save the content to an image file. Itworks onPC, but when run on android phone, it gived an warningmessage""Pixel readback is not supported in Cooperative mode,please tryThreaded or Immediate mode", and the "save" functionreturned"false" (i.e. failed). Therefore I set the Canvas's"renderStrategy" property to Canvas.Immediateor Canvas.Threaded, now the"Save"function works, but in both cases, the program soon gived anerrormessage "Fatalsignal 11 (SIGSEGV)at 0x509f93b0 (code=2)" and crashedimmediately.

    I then triedthe followingcodes:
    "var ctx =canvas.getContext('2d')
    var imgData = ctx.getImageData(0, 0, canvas.width, canvas.height)"
    to get the image data, but got the same warning/error message and crash problem.

    This is a very serious issue for Qt as it significantly reduces its application value on android.

    Thanks! Icreated a canvas using QML, made some drawings, and thenused its"save" function to save the content to an image file. Itworks onPC, but when run on android phone, it gived an warningmessage""Pixel readback is not supported in Cooperative mode,please tryThreaded or Immediate mode", and the "save" functionreturned"false" (i.e. failed). Therefore I set the Canvas's"renderStrategy" property to Canvas.Immediateor Canvas.Threaded, now the"Save"function works, but in both cases, the program soon gived anerrormessage "Fatalsignal 11 (SIGSEGV)at 0x509f93b0 (code=2)" and crashedimmediately.

    I then triedthe followingcodes:
    "var ctx =canvas.getContext('2d')
    var imgData = ctx.getImageData(0, 0, canvas.width, canvas.height)"
    to get the image data, but got the same warning/error message and crash problem.

    This is a very serious issue for Qt as it significantly reduces its application value on android.

    Thanks! I am looking forward to your help!

    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