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 Updated to NodeBB v4.3 + New Features

QGraphicsView: Strange performance (at least on Mac)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 970 Views 1 Watching
  • 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 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

    • Login

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