Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Marius Kintel
On Mar 19, 2008, at 11:41 AM, Phil Thompson wrote: 2007/12/28 12:31:03 phil Fixed a bug where PyQt connections from an object owned by C++ were lost when the Python object was garbage collected. Yep, that fixes my problem. Thanks for the hint! ~/= Marius -- We are Elektropeople for a b

Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Phil Thompson
On Wednesday 19 March 2008, you wrote: > On Mar 18, 2008, at 2:44 PM, Phil Thompson wrote: > > What makes you say that? The connection has nothing to do with the > > wrapper > > object of the emitter. > > The underlying Qt connection stays alive, but on the PyQt side the > connection goes down maki

Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Andreas Pakulat
On 18.03.08 17:54:44, Kevin Foss wrote: > I really hate to keep coming back for help like this but even after > re-reading > the reference you gave (I've read it before), I still have yet to understand > what constitutes an INDEX. A QModelIndex is simply a little helper class that stores all d

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Marius Kintel
On Mar 18, 2008, at 2:44 PM, Phil Thompson wrote: What makes you say that? The connection has nothing to do with the wrapper object of the emitter. The underlying Qt connection stays alive, but on the PyQt side the connection goes down making the Qt connection just call the universal slo

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Kevin Foss
I really hate to keep coming back for help like this but even after re-reading the reference you gave (I've read it before), I still have yet to understand what constitutes an INDEX. In the case of the following, I've gotten the selected row from the call to SLOT. I have read through the defi

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Andreas Pakulat
On 18.03.08 13:37:46, [EMAIL PROTECTED] wrote: > I have been successful in getting the row number back to me for a selected > row. I have found that the returned row number is not consistent with the > list but with the view. Therefore row '0' when I start is row '10' on a 10 > item list when

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread fossks
I have been successful in getting the row number back to me for a selected row. I have found that the returned row number is not consistent with the list but with the view. Therefore row '0' when I start is row '10' on a 10 item list when the view is sorted in the opposite direction. Is there

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Matt Newell
On Tuesday 18 March 2008 10:52:20 Matt Newell wrote: > On Tuesday 18 March 2008 09:46:06 [EMAIL PROTECTED] wrote: > > Phil/Andreas, > > > > I've been experimenting again using some of the recommendations and > > some examples I have found. Please look at the new example I am working > > with

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Matt Newell
On Tuesday 18 March 2008 09:46:06 [EMAIL PROTECTED] wrote: > Phil/Andreas, > > I've been experimenting again using some of the recommendations and > some examples I have found. Please look at the new example I am working > with, which is below. > > I can now have a reaction to a selected

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread fossks
Phil/Andreas, I've been experimenting again using some of the recommendations and some examples I have found. Please look at the new example I am working with, which is below. I can now have a reaction to a selected item in a list. When something is selected, the 'slot' function is

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Phil Thompson
On Tuesday 18 March 2008, Marius Kintel wrote: > On Mar 18, 2008, at 2:57 AM, Kevin Foss wrote: > > 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.op

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Kevin Foss
I'm running on Mandriva 2008.0 with Python 2.5 and PyQt 4.3(.4mdv) >From the other person (Marius Kintel) who mentionned it didn't work other, seems like there is a problem somewhere. Kevin On Tuesday 18 March 2008 12:37:25 am Andreas Pakulat wrote: > On 17.03.08 18:57:52, Kevin Foss wrote: > >

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Marius Kintel
On Mar 18, 2008, at 2:57 AM, Kevin Foss wrote: 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

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Andreas Pakulat
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

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Kevin Foss
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

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Andreas Pakulat
On 17.03.08 16:31:54, Kevin Foss wrote: >Your understanding seems to correct. I do not want to change the list > entries at this point. To confirm what you said, I do want to have the item > details of a list entry displayed in a separate widget when the user selects > the list entry. Pa

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Kevin Foss
Andreas, Your understanding seems to correct. I do not want to change the list entries at this point. To confirm what you said, I do want to have the item details of a list entry displayed in a separate widget when the user selects the list entry. Part of the explanation below was an ide

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Andreas Pakulat
On 17.03.08 13:31:01, Kevin wrote: > Andreas, > > The problem is that my connect statement does not call the appropriate > function. > > I've done some searching based on your recommendations, yet I have not > been able to find a basic example I can understand. > >Could you point me to a

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Kevin
Andreas, The problem is that my connect statement does not call the appropriate function. I've done some searching based on your recommendations, yet I have not been able to find a basic example I can understand. Could you point me to a simple example that would take a list with

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Andreas Pakulat
On 17.03.08 10:22:05, [EMAIL PROTECTED] wrote: > Hi, > I'm trying to use a list that contains a media library react to a user > clicking on an item in the list. When clicked, the details of the item would > show up in a GroupBox elsewhere on the screen. However, at this time I'm a > little s

[PyQt] Signal on Selection in QTreeView

2008-03-17 Thread fossks
Hi, I'm trying to use a list that contains a media library react to a user clicking on an item in the list. When clicked, the details of the item would show up in a GroupBox elsewhere on the screen. However, at this time I'm a little stumped on Lists/Trees/Models/Views. I'm including the