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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: Widgets: GraphicsView
    • Labels:
      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

            Assignee:
            bibr Andreas Aardal Hanssen
            Reporter:
            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