PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 660 - QMimeData type deleted prematurely when overriding mime-type in QStandardItemModel drag and drop
: QMimeData type deleted prematurely when overriding mime-type in QStandardItem...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: 1.0.0 beta4
: PC MS Windows XP/Vista/7
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-02 13:05 EET by Bjorn Helge Kjosnes
Modified: 2011-02-17 19:18 EET (History)
9 users (show)

See Also:


Attachments
Test case for the problem (2.64 KB, text/plain)
2011-02-02 20:45 EET, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjorn Helge Kjosnes 2011-02-02 13:05:46 EET
When using QStandardItemModel and a QListView with a user defined drag and drop
mime-type, you get the following traceback:

python.exe main.py
Traceback (most recent call last):
  File "main.py", line 23, in mimeData
    self.__mimedata.setData(u'application/my-form',self.__qextra)
RuntimeError: Internal C++ object (PySide.QtCore.QMimeData) already deleted.
Traceback (most recent call last):
  File "main.py", line 23, in mimeData
    self.__mimedata.setData(u'application/my-form',self.__qextra)
RuntimeError: Internal C++ object (PySide.QtCore.QMimeData) already deleted.

Attached is an application that demonstrates the problem in PySide. It works
well if you run it in PyQt4. 

The application defines a mime type called 'application/my-form' in the
QListView's QStandardItemModel (MyItemModel) and list the content from the drop
in QTextEdit (MyTextEdit) using the defined mime-type.
Comment 1 Hugo Parente Lima 2011-02-02 20:45:05 EET
Created attachment 248 [details]
Test case for the problem
Comment 2 Matti Airas 2011-02-03 05:09:09 EET
Thanks, I'm prioritizing this P3. Hence, the bug should most likely be fixed
before the next relese.
Comment 3 Hugo Parente Lima 2011-02-04 19:31:47 EET
Fixed in commit
pyside/ac325f24e47402ee9493713399a934d0d005470b
Comment 4 Hugo Parente Lima 2011-02-17 19:18:19 EET
Released in 1.0.0~rc1