[PyQt] Signal on Selection in QTreeView
Andreas Pakulat
apaku at gmx.de
Tue Mar 18 07:37:25 GMT 2008
On 17.03.08 18:57:52, Kevin Foss wrote:
> Andreas,
> I am sorry but I am still not seeing the whole picture. I've been through my
> reference books as well as just about any page that exists online that talks
> about selection models and I just can't put 2 and 2 together.
>
> To show you my difficulties, I've tried to test this whole selection model
> capability using an example from David Boddie at Trolltech. It can be found
> here:
>
> http://www.opensubscriber.com/message/pyqt@riverbankcomputing.com/8447872.html
>
> Guess what, even his example doesn't work. When I run his example,
> nothing is printed when an item is selected.
Thats strange, it works fine for me.
> I could really use a link to a complete example that shows the proper setup
> of a model, indexing and the selection of an item.
The example you referenced is a pretty basic one.
What version of PyQt and Qt are you using? If such an example doesn't
work as you expect it then I think somethings fishy with your setup.
Andreas
--
Advancement in position.
More information about the PyQt
mailing list