Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Canvas] getContext error for canvas
QtWS25 Last Chance

[Canvas] getContext error for canvas

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlcanvas5.35.6
1 Posts 1 Posters 1.5k 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.
  • T Offline
    T Offline
    treatmaster
    wrote on last edited by
    #1

    Hi everyone, i'm developing an feature using canvas in QT 5.6. It's ok but when i downgrade to QT 5.3, it occurs error with method getContext for canvas.
    Here is the error message:

    Canvas {
       id: canvas
       onImageLoaded: {
          var ctx = canvas.getContext('2d');    ===> QML Canvas: Unable to use getContext() at this time, please wait for available: true
       }
    }
    
    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