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

QGraphicsScene::removeItem is slow with many installed scene event filters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.14.0
    • Widgets: GraphicsView
    • None

      QGraphicsScene::removeItem seems slow when there are many installed scene event filters in the scene (as a whole).

      I.e. it seem O(n*m) where n is the number of items (children of item) to remove an m is the number of all scene event filters that are installed in the scene.

       
      The culprit is probably this loop.

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

            bibr Andreas Aardal Hanssen
            aleserjavec Ales Erjavec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes