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. QGraphicsPixmapItem display performance
Qt 6.11 is out! See what's new in the release blog

QGraphicsPixmapItem display performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 361 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.
  • S Offline
    S Offline
    sstj
    wrote on last edited by
    #1

    I am currently working on the animation of a QGraphicsPixmapItem. I used a Qtimer to pass the new position to the item every 5 milliseconds and update the position of the item using the setPos() function. However, it seems that the Qgraphicsview updates the position of the item on a different speed than I intended. (5 milliseconds for example). Does qt has a limit on the refresh rate for the screen and how should I deal with this?

    jsulmJ 1 Reply Last reply
    0
    • S sstj

      I am currently working on the animation of a QGraphicsPixmapItem. I used a Qtimer to pass the new position to the item every 5 milliseconds and update the position of the item using the setPos() function. However, it seems that the Qgraphicsview updates the position of the item on a different speed than I intended. (5 milliseconds for example). Does qt has a limit on the refresh rate for the screen and how should I deal with this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @sstj 5 milliseconds update rate means 200Hz - do you even have a display capable of such frequency? If not then it does not make any sense to update that frequently.
      Typical monitors have 60Hz.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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