Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6958

Performance Issue in QGraphicsScene's _q_polishItems()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.1
    • 4.6.0
    • Widgets: GraphicsView
    • None
    • openSuse 11.1 with Qt 4.6 and qt-git-master-branch.
    • 6026436f0de6020252410c021e0745a22599b159

    Description

      After adding >30000 Items to a GraphicsScene the first draw takes very long time.
      That's because it first calls _q_polishItems(), which removes the Itemes one-by-one from the QSet of unpolished GraphicsItems.
      (The actual slow instruction seems to be "it = unpolishedItems.begin();". Tested with callgrind).

      A suggested fix is attached...

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            martinpley Martin Pley
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes