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. QML Canvas saving drawings to image WinCE
Qt 6.11 is out! See what's new in the release blog

QML Canvas saving drawings to image WinCE

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    paukis
    wrote on last edited by
    #1

    I have two canvases, one for loading an image and the other one for painting. I managed to get the save of my drawings into the image with the following code on windows desktop, but could not get the same code working on WinCE HW. Not sure what could be wrong. Is it a bug in Qt side or do i need to do any additional step to get it to work?

    onImageLoaded:
    {
    var ctx = getContext('2d')
    ctx.clearRect(0, 0 , width, height)
    ctx.drawImage(flickable.imgfile, 0, 0, width, height)
    ctx.drawImage(canvas, 0, 0, width, height) // canvas has all the drawings
    save(...)
    }

    Any help would be great...

    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