Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Diez B. Roggisch
Flavio schrieb: >> Who has created these items? Obviously you, so you _can_ store the list >> of selected items. > > well yeah, but the Idea was to let the user select(through the widget) > a subset of the original list and then access that subset... > >> Or you use the equally well documented QL

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Flavio
> Who has created these items? Obviously you, so you _can_ store the list > of selected items. well yeah, but the Idea was to let the user select(through the widget) a subset of the original list and then access that subset... > Or you use the equally well documented QListViewItemIterator to trav

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Phil Thompson
On Thursday 02 February 2006 9:25 pm, Fabian Steiner wrote: > Hi! > > Sorry for adopting your post for my own question, but since it is > related to PyQT I think it's ok: Does anybody of you know where the > openbook »GUI Programming with Python: QT Edition« has gone? It's not > available any more:

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Diez B. Roggisch
Flavio schrieb: > Iterating over the items and checking if it is selected, sounds like a > good idea, but there no obvious way to get a hold of the list of > items!! The only way you can get an item is if you are in single > selection mode and you call selectedItem(). But I have to use multiple >

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Flavio
Iterating over the items and checking if it is selected, sounds like a good idea, but there no obvious way to get a hold of the list of items!! The only way you can get an item is if you are in single selection mode and you call selectedItem(). But I have to use multiple selection mode, for which

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Fabian Steiner
Hi! Sorry for adopting your post for my own question, but since it is related to PyQT I think it's ok: Does anybody of you know where the openbook »GUI Programming with Python: QT Edition« has gone? It's not available any more: http://www.opendocs.org/pyqt/ points now to a non-existing site.

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Diez B. Roggisch
Flavio schrieb: > Hi, > > I have a QListview widget that allows me to store a bunch of strings in > it. This strings can be visualized, sorted, selected, etc. > > My Problem is that I cant find a way to get the user selected items > back from it! I looked over the Qt documentation many times over

PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Flavio
Hi, I have a QListview widget that allows me to store a bunch of strings in it. This strings can be visualized, sorted, selected, etc. My Problem is that I cant find a way to get the user selected items back from it! I looked over the Qt documentation many times over but there is no method to tha