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

Objects apparently destroyed too early

XMLWordPrintable

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

      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

        1. combotest.py
          1 kB
        2. basewrapper.diff
          0.7 kB
        3. pyside10.py
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes