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

wrapped object incorrectly invalidated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.14.1
    • PySide, Shiboken
    • None
    • Linux/X11

      I'm seeing a case where a PySide object is incorrectly invalidated.  I don't know if you care about PySide and Qt4 any more, but it happens both there and PySide2 and Qt5.  I believe that what is happening is that if a PySide parent object goes away it invalidates its children, but it does this even if the PySide object does not own (did not create) the Qt object and will not destroy it.  So I think the fix might be that the invalidation only happens if the PySide object owns (created) the wrapped Qt object.

      I've attached a test program that I wrote that demonstrates the bug.  The first assertion passes, but the second assertion fails.

        1. test.cpp
          2 kB
          Jeffery Yost
        2. test (1).cpp
          2 kB
          Jeffery Yost
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            jyost Jeffery Yost
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes