Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QGraphicsView: Strange performance (at least on Mac)

    General and Desktop
    1
    1
    862
    Loading More Posts
    • 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
      Greger last edited by

      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 Reply Quote 0
      • First post
        Last post