Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to tell when QchartView series animation on zoom is finished

How to tell when QchartView series animation on zoom is finished

Scheduled Pinned Locked Moved Unsolved General and Desktop
animationsqchartqchartview
2 Posts 1 Posters 560 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.
  • C Offline
    C Offline
    clayton_tx
    wrote on 30 May 2020, 22:24 last edited by
    #1

    I’m using QchartView for real time graphs and only want the series animation to be done for zooming. The zoom happens on left click and dragging to create a box area then release left button and zoom happens. My plan is then to turn on series animation on the left click and then turn it off when animation of zoom is complete. I’m not sure how to tell when complete though. The reason for doing this is because the graphs update frequently so the animation when new points are added slows things down. But animation on zoom is nice feature.

    C 1 Reply Last reply 3 Jun 2020, 21:29
    0
    • C clayton_tx
      30 May 2020, 22:24

      I’m using QchartView for real time graphs and only want the series animation to be done for zooming. The zoom happens on left click and dragging to create a box area then release left button and zoom happens. My plan is then to turn on series animation on the left click and then turn it off when animation of zoom is complete. I’m not sure how to tell when complete though. The reason for doing this is because the graphs update frequently so the animation when new points are added slows things down. But animation on zoom is nice feature.

      C Offline
      C Offline
      clayton_tx
      wrote on 3 Jun 2020, 21:29 last edited by
      #2

      To do this what can be done put a QtTimer in onMouseRelease ( when left mouse is released the zoom is done ). Set the timer for the chart.animationDuration() and then when timer is finished have the callback so chart.setSeriesAnimation( NoAnimation)

      The animation on qtchart really slows things down even if chart is not updating. It looks good when doing zoom so keep it for that but turn off when zoom finished.

      1 Reply Last reply
      0

      1/2

      30 May 2020, 22:24

      • Login

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