[Qt-qml] Relative to absolute paths, and z-order comparison

aaron.kennedy at nokia.com aaron.kennedy at nokia.com
Tue Mar 30 07:33:56 CEST 2010


Hi,

On 30/03/10 3:30 PM, "Malmqvist Mathias (Nokia-SU/London)"
<mathias.malmqvist at nokia.com> wrote:

> Hi Michael,
> 
>> That's correct -- unless a z is specifically set, all of the items
>> will have the same z value.
> [...]
>> What are you using the comparison to achieve in QML?
> 
> 
> I'm trying to implement drag and drop. In my demo I now have multiple
> elements representing drop areas, and I've found that some overlap. So
> I'm trying to work out which is located above which other.

Although this is hardly a clean solution, you could break the z-order tie by
checking the item's order in the "children" property.  Like I say - not
nice, but possible :)

Cheers,

Aaron





More information about the Qt-qml mailing list