[Interest] Re-ordering items in QListWidget by drag-and-drop

2012-10-01 Thread Stephen Chu
I am showing a list of item in a QListWidget and would like to allow user to reorder them by drag-and-drop. I set the movement to free but it doesn't really do anything. I can't even select any of the items. The selection mode is set to SingleSelection. What else should I set so I can reorder

Re: [Interest] Re-ordering items in QListWidget by drag-and-drop

2012-10-01 Thread R. Reucher
On Monday 01 October 2012 15:38:46 Stephen Chu wrote: I am showing a list of item in a QListWidget and would like to allow user to reorder them by drag-and-drop. I set the movement to free but it doesn't really do anything. I can't even select any of the items. The selection mode is set to

Re: [Interest] Re-ordering items in QListWidget by drag-and-drop

2012-10-01 Thread Stephen Chu
On 10/1/12 9:55 AM, R. Reucher wrote: On Monday 01 October 2012 15:54:30 R. Reucher wrote: What else should I set so I can reorder items? Or does QListWidget not support it? You have set the dragDropMode property to InterMove! Correction: the property's value is 'InternalMove'. That doesn't

Re: [Interest] Re-ordering items in QListWidget by drag-and-drop

2012-10-01 Thread Tony Rietwyk
Sent: Tuesday, 2 October 2012 12:12 AM On 10/1/12 9:55 AM, R. Reucher wrote: On Monday 01 October 2012 15:54:30 R. Reucher wrote: What else should I set so I can reorder items? Or does QListWidget not support it? You have set the dragDropMode property to InterMove! Correction: the

Re: [Interest] Re-ordering items in QListWidget by drag-and-drop

2012-10-01 Thread Stephen Chu
On 10/1/12 10:55 AM, Tony Rietwyk wrote: Sent: Tuesday, 2 October 2012 12:12 AM On 10/1/12 9:55 AM, R. Reucher wrote: On Monday 01 October 2012 15:54:30 R. Reucher wrote: What else should I set so I can reorder items? Or does QListWidget not support it? You have set the dragDropMode