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

pyside QGraphicsItemGroup.childItems() changes after a return

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.1
    • Widgets: GraphicsView
    • None
    • Ubuntu 12.04, AMD PhenomII

    Description

      The result returned by method childItems()on an instance QGraphicsItemGroup differs before and after a simple return of the instance in PySide.

      Attached file demos the problem.

      Before the return, it prints a non-empty list for childItems().
      After the return, it prints an empty list.

      The attached demo is a reduction but I think the problem exists in my larger app.

      I haven't found a workaround yet but adding the graphic items to the scene first might help?

      Could it be a garbage collection problem of an instance that is only on the stack?

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              bootchk lloyd konneker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes