Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-10

Objects apparently destroyed too early

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 1.2.3
    • 1.2.x
    • PySide
    • None
    • win32, but I don't think it's specific to win32

    Description

      A wrapper returned by parentWidget() raises a RuntimeException as if it were destroyed the second time it is accessed. See the attached script – when it is run and the menu on the combo box is displayed, the BadGetWindow function will be called and raise the exception:

      Traceback (most recent call last):
      File "\src\tmp\combotest.py", line 34, in onFocusChange
      win = BadGetWindow(new)
      File "\src\tmp\combotest.py", line 27, in BadGetWindow
      w = w.parentWidget()
      RuntimeError: Internal C++ object (PySide.QtGui.QWidget) already deleted.

      It works as expected if the GetWindow function is called instead of BadGetWindow.

      Bug is in pyside 1.1 and github HEAD

      Attachments

        1. basewrapper.diff
          0.7 kB
        2. combotest.py
          1 kB
        3. pyside10.py
          0.9 kB

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jpe John Ehresman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes