Re: [Interest] React to signal only when at top of StackView

2016-05-07 Thread Elvis Stansvik
2016-05-07 10:20 GMT+02:00 J-P Nurmi : >> On 06 May 2016, at 23:27, Elvis Stansvik wrote: >> >> 2016-05-06 22:41 GMT+02:00 J-P Nurmi : >>> >>> >>> The Stack.status property must be attached to an item that is in a >>> StackView. In the snippet above, it is attached to the Connections element. >>

Re: [Interest] React to signal only when at top of StackView

2016-05-07 Thread J-P Nurmi
> On 06 May 2016, at 23:27, Elvis Stansvik wrote: > > 2016-05-06 22:41 GMT+02:00 J-P Nurmi : >> >> >> The Stack.status property must be attached to an item that is in a >> StackView. In the snippet above, it is attached to the Connections element. >> You can give the Rectangle element an id t

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
2016-05-06 22:41 GMT+02:00 J-P Nurmi : >> On 06 May 2016, at 22:27, Elvis Stansvik wrote: >> >> Hi all, >> >> I want that an item reacts to a certain signal only when it is at the >> top of a StackView, so I tried something like: >> >>Connections { >>// Below wo

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
2016-05-06 22:39 GMT+02:00 Jason H : > > Why not handle the signal and see if you are visible? Yes, that should also work. But I realize now my mistake was just like J-P suggested, that I was using the Stack.status property attached to the Connections element, not the Rectangle element like I inte

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Elvis Stansvik
2016-05-06 22:41 GMT+02:00 J-P Nurmi : >> On 06 May 2016, at 22:27, Elvis Stansvik wrote: >> >> Hi all, >> >> I want that an item reacts to a certain signal only when it is at the >> top of a StackView, so I tried something like: >> >>Connections { >>// Below wo

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread J-P Nurmi
> On 06 May 2016, at 22:27, Elvis Stansvik wrote: > > Hi all, > > I want that an item reacts to a certain signal only when it is at the > top of a StackView, so I tried something like: > >Connections { >// Below won't work: >target: Stack.

Re: [Interest] React to signal only when at top of StackView

2016-05-06 Thread Jason H
Why not handle the signal and see if you are visible? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest