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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes