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

mathias.malmqvist at nokia.com mathias.malmqvist at nokia.com
Mon Mar 29 22:43:10 CEST 2010


Two more questions for the QML wizards:

1) Is there a way to turn a relative path/URL into an absolute one? I have two QML 
elements implemented in different folders, and they need to be able to exchange paths 
that are defined relative to each elements implementation folder. (this time they are 
image file paths, so I can just use the Image element's source property after the image 
has been loaded, but this may not always be an option so it would be good to know for 
future reference.)

2) How can I determine which of two random elements is on top in z-order? 
I don't think I can just compare the z-properties, right...? (also, it needs to take the 
elements visibility into account! is a parent's opacity reflected on its children's opacity 
property?)


Cheers
Mathias
 
------------------------------------------------------------
Mathias Malmqvist
CWRT Prototype Lead
S SE UX Prototyping GB
10 Great Pulteney Street, London, W1F 9NB, UK
Got no reply? Try giving me a call:
Mobile: +44 (0)77 6522 2738
http://www.nokia.com
 



More information about the Qt-qml mailing list