Re: [PyQt] Problem coding QListWidget

2008-12-20 Thread piotr maliński
Well I have one problem right now - enable dropping item/s on another item in the same widget (to move those files/folders to a folder). Another one is when I have dropEvent then the moving of items is slightly broken, as I described it earlyer - I can select them, move and drop but they end up in

Re: [PyQt] Problem coding QListWidget

2008-12-16 Thread piotr maliński
> > - Left click (single or maybe double) for activating the item (go to > > directory or open file) ( mouseDoubleClickEvent or ??) > > There are already SIGNALS for them... > DoubleClick: SIGNAL("itemDoubleClicked(QTreeWidgetItem *, int)") > SingleClick: SIGNAL("itemClicked(QTreeWidgetItem *, int

Re: [PyQt] Problem coding QListWidget

2008-12-16 Thread Stephan Hermann
Hi Piotr, On Tue, 2008-12-16 at 09:01 +0100, piotr maliński wrote: > I'm trying to use QListWidget to make basic file manager. Here: > http://www.wklej.org/id/28628/ is a example code of a problem that I > have. If I use mousePressEvent, then SelectionMode doesn't work > properly (selection range

[PyQt] Problem coding QListWidget

2008-12-16 Thread piotr maliński
I'm trying to use QListWidget to make basic file manager. Here: http://www.wklej.org/id/28628/ is a example code of a problem that I have. If I use mousePressEvent, then SelectionMode doesn't work properly (selection range is from top-left corner to cursor position, not the area selected by the cur