[Qt-interest] "Unable to save type" when drag in a QTreeWidget
cabieces julien
jcabieces at free.fr
Tue Aug 17 09:32:41 CEST 2010
Hi,
I want to develop drag and drop in a QTreeWidget. So, I implement
dragEnterEvent, dragMoveEvent and dropEvent methods. It works fine but when
I drag, I got this message :
QVariant::save: unable to save type 136.
Where type 136 belongs to QMetaType::ObjectStar type. It comes from the fact
that I filled my QTreeWidgetItem data with "QObject*" objects and Qt try to
serialize it in a DataStream but it doesn't have the appropriates operator<<
and operator>>.
So, I would like to know the good way to implement drag'n drop or maybe the
way to prevent from this message.
Thanks
Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100817/b12b8ca6/attachment.html
More information about the Qt-interest-old
mailing list