Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Jérôme Godbout
2018 8:21 AM To: interest@qt-project.org Subject: Re: [Interest] How to determine whether QML item is anchored? But I wanted to query anchors at runtime once too, a few years ago; I think I’ve forgotten why. > On 6 Apr 2018, at 13:58, Mitch Curtis wrote: > > https://bugreports.qt.io/b

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Shawn Rutledge
> > > PropertyChanges { > > target: myRect > > color: "red" > > } > > } > > ] > > > > This assumes that you have control over the anchors, thoug

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Mitch Curtis
, 6 April 2018 1:41 PM To: Mitch Curtis Cc: interest@qt-project.org Subject: Re: [Interest] How to determine whether QML item is anchored? Thanks, I'm aware of this, but this is a bit different.. Would be great to get ability to compare against something like anchors.defaultLeft&

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Alexander Ivash
: "red" > } > } > ] > > This assumes that you have control over the anchors, though. > > From: Alexander Ivash [mailto:elder...@gmail.com] > Sent: Friday, 6 April 2018 1:23 PM > To: Mitch Curtis > Cc: interest@qt-project.org > Subject: Re: [Interest] How t

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Mitch Curtis
This assumes that you have control over the anchors, though. From: Alexander Ivash [mailto:elder...@gmail.com] Sent: Friday, 6 April 2018 1:23 PM To: Mitch Curtis Cc: interest@qt-project.org Subject: Re: [Interest] How to determine whether QML item is anchored? Let's say I'm trying to

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Alexander Ivash
Let's say I'm trying to make the logic like this: "If parent component is anchored, make a child green, otherwise make it red" Sent from Mailspring (https://link.getmailspring.com/link/1523013678.local-18836154-ab75-v1.2.1-7e744...@getmailspring.com/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&

Re: [Interest] How to determine whether QML item is anchored?

2018-04-06 Thread Mitch Curtis
What are you trying to do? From: Interest [mailto:interest-bounces+mitch.curtis=qt...@qt-project.org] On Behalf Of Alexander Ivash Sent: Friday, 6 April 2018 11:40 AM To: interest@qt-project.org Subject: [Interest] How to determine whether QML item is anchored? What I'm missing? It seems like ev