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. QGraphicsView: Strange performance (at least on Mac)
Forum Update on Monday, May 27th 2025

QGraphicsView: Strange performance (at least on Mac)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 934 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.
  • G Offline
    G Offline
    Greger
    wrote on 23 Mar 2012, 10:32 last edited by
    #1

    Hi,

    I have the following, somewhat strange--at least to me, behavior of a QGraphicsView: When the window with the view is active the performance is significantly worse than when the window is deselected.

    To sum my situation up, I have a QGraphicsView with a number of QGraphicsObjects that I pan using the standard mouse panning action (the default mouseWheelEvent handler). All the objects are cached with DeviceCoordinateCache and neither case (window active or inactive) they are getting paint events, so I would expect them to redraw equally quickly from the pixmap buffer. However, when the window is selected, scrolling lags so bad it can take many seconds to catch up.

    If I start the application with -graphicssystem raster, the performance difference is much less subtle but still noticeable.

    Any tips on how to improve on this situation?

    I use Qt 4.7.4 (macports).

    1 Reply Last reply
    0

    1/1

    23 Mar 2012, 10:32

    • 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