PDA

View Full Version : editable QListWidgetItem cannot be edited after drag and drop within a QLIstWidget



feverzsj
21st January 2010, 02:59
I insert a editable QListWidgetItem into a QLIstWidget. The item is editable until I drag it. Is it a normal behaviour for QLIstWidget? How to fix that?

aamer4yu
21st January 2010, 06:14
I had similar problem. I used a trick to solve it.
I catch itemPressed signal of QListWidget, and make the item editable by setting edit role through QTreeWidgetItem::setData

feverzsj
24th January 2010, 13:30
I had similar problem. I used a trick to solve it.
I catch itemPressed signal of QListWidget, and make the item editable by setting edit role through QTreeWidgetItem::setData

that's kinda different from what I want. Is it possible to fix that by subclassing the QListWidget and how?

aamer4yu
25th January 2010, 06:30
that's kinda different from what I want.
What do you want then ?

feverzsj
25th January 2010, 13:52
What do you want then ?

keep the original ItemFlags after dnd