Hi,

I have the following Problem. While trying to get Drag&Drop working (only 
accepting items whose ID is not yet in the List) with the mime-type 
"application/x-qabstractitemmodeldatalist" i found that i can't get conversion 
between datastreams and items working. The following Listing gives me this 
result:

1 - test
0 - 

So what am I doing wrong?

---- Source ----
QListWidgetItem i = new QListWidgetItem("test", ui.geschwisterList, 1);
QDataStream d = new QDataStream();
i.write(d);
QListWidgetItem i2 = new QListWidgetItem();
i2.read(d);
log.debug(i.type() +" - "+i.text());
log.debug(i2.type() +" - "+i2.text());
-------------------
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to