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 redraws only on resize
Forum Update on Monday, May 27th 2025

Canvas redraws only on resize

Scheduled Pinned Locked Moved QML and Qt Quick
canvasanimation
1 Posts 1 Posters 799 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.
  • R Offline
    R Offline
    rarara
    wrote on 9 Aug 2015, 07:55 last edited by
    #1

    Hi,
    I need help with a js animation on a canvas in my qml app.
    I want to draw a circle that starts at full circumference but as the variable progress goes down, the circles circumference gets smaller as well. So I have the basic code working, it draws the circle correctly I think. But:
    it only redraws when I resize the window! Drives me nuts.

    pastebin

    In the code you can see several parts where I commented out some function calls which are supposed to clear or redraw the area but didn't for me.

    I (and my future cardiologist) would be really grateful if you could help!

    If it helps, I am on Ubuntu 15.04, Qt 5.5 and tried as ubuntu app as well as pure qml, same results.

    1 Reply Last reply
    0

    1/1

    9 Aug 2015, 07:55

    • Login

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