Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.3.0
-
None
Description
from PySide6 import QAbstractItemModel ...
def mimeData(self, indexes):
...
mimeData = QMimeData()
....
return mimeData
This code crashes app.
So I create an attribute in initializer and recreate this attribute in mimeData method because it is garbaged after drop.
def _init_(self):
self.mimeData = QMimeData()
def mimeData(self, indexes):
...
self.mimeData = QMimeData()
...
return self.mimeData
I think this problem is a kind of lifecycle of PySide.
On the past time, I have reported a bug about createObject of QTextDocument. I think this is very similar to this bug.