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

Need to invalidate QStandardItemModel's invisibleRootItem on clear

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 1.2.x
    • PySide
    • None
    • 1cea6192fa32fee29ae64cdc2bda1414e6a443bd

    Description

      Attached patch invalidates the wrapper for the invibleRootItem in the clear method. If this is not done, another C++ object may be created at the same address and then the QStandardItem wrapper returned for it.

      Note that just setting the parent to None as is done for the other items leads to a segfault. Should the other items simply be invalidated?

      Attachments

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

        Activity

          People

            hugopl Hugo Parente Lima
            jpe John Ehresman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes