Re: [SailfishDevel] connect gridview on delegates click signal

2013-11-22 Thread Franck Routier (perso)
Hi, This worked. I also had to stop using variant as a type (I also did read the doc, which helps :-) ), and instead used basic types to directly passed the needed values. Thanks a lot. Franck Le 22/11/2013 03:18, Bea Lam a écrit : > Hi Franck, > > To get a reference to a particular instance

Re: [SailfishDevel] connect gridview on delegates click signal

2013-11-21 Thread Bea Lam
Hi Franck, To get a reference to a particular instance of a delegate, just give the delegate an id, and references to that id from within the delegate declaration will refer to that instance only. The “this” keyword is not valid in this context. (See http://qt-project.org/doc/qt-5.0/qtqml/qtqm

Re: [SailfishDevel] connect gridview on delegates click signal

2013-11-21 Thread Franck Routier (perso)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for your tips, and sorry for the lte reply. Le 18/10/2013 12:50, Matt Austin a écrit : > > I think you should be able to get what you're after with the > following - assuming you have a reference to your 'detail page' > (lets call it 'de

Re: [SailfishDevel] connect gridview on delegates click signal

2013-10-18 Thread Matt Austin
On 18 October 2013 16:43, Franck Routier (perso) wrote: > 2) create a function in the gridview, and call it in the delegate onClicked > handler. But then, I could find a way the pass a reference to the delegate > (using this keyword resulted in an undefined variable). Hi Franck, I think you sho

[SailfishDevel] connect gridview on delegates click signal

2013-10-18 Thread Franck Routier (perso)
Hi, Firstly, I am really just trying to learn Qt, and I am not sure it is specific enough to be asked here, if not just tell me... Anyway, I am using SailfishGridView (but it must be the same with standard GridView), with a ListModel, and a delegate component, in Qt Quick. What I want to ach