Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
Accepted Solution

Z index of a visual node

Hi all,

is there a way to change dynamically the z index of a visual node in QML ?

 

Thanks.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Developer
blackqtcoder
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C

Re: Z index of a visual node

I have the same questions. Any idea? 

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: Z index of a visual node

[ Edited ]

Someone know if something changed about this ?

 

Cause I have a page with some elements draggable, the problem is that when I drag an element, there is a conflict if this one is under another element, so I would like to increase it z index.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)

Re: Z index of a visual node

I am only 99% sure, but I don't think this is possible.

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: Z index of a visual node

Arf in QtQuick it was...

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Z index of a visual node

It appears as if z-order is strictly a property of when the element was created, with the most recently created elements having the highest z-order.

 

It is a hack, but I am generating one of my pages from the bottom up in order to get the proper z-ordering on things...


Read my thoughts on BlackBerry Development at news.ebscer.com
Developer
hakimrie
Posts: 82
Registered: ‎07-23-2009
My Device: 9900

Re: Z index of a visual node

if you want your overlap control receive touch event you should allow OverlapTouchPolicy https://developer.blackberry.com/cascades/reference/bb__cascades__overlaptouchpolicy.html

this documentation may be can help you : https://developer.blackberry.com/cascades/documentation/dev/touch/touch_propagation.html

 

but if you want to re arrange z-index of a component, you must re-arrange the scene graph, sample is available at bbjamcarousel sample : 

https://github.com/blackberry/Cascades-Community-Samples/tree/master/stumpers/bbjamcarousel

 

 

Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: Z index of a visual node

Thanks for all replies, the carrousel example help me a lot.

 

Now i use the swap() fonction.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr