July 16, 2012

aekam aekam
Ant Farmer
80 posts

function call through loader…

 

I have four files in the same directory at same level.

1] a.qml has a loaderA which loads a b.qml.
2] b.qml has a loaderB which loads a c.qml.
3] c.qml has a function.
4] now i want to call these function from a d.js file.

usually for one loader this can be achieved by loaderA.item.function, but how can i do it in this case.?
loaderA.item.loaderB.item.function didn’t work…

 Signature 

If you take care of inches, you won’t have to worry about miles… :)

3 replies

July 16, 2012

dmcr dmcr
Ant Farmer
161 posts

a js file is included in one QML file.
in this js file, you can use idItem.function()

July 16, 2012

aekam aekam
Ant Farmer
80 posts

@dmcr
yes, it works fine for function call through / for single loader.
but when i have two loaders it doesn’t work…
[please re-read the problem]

 Signature 

If you take care of inches, you won’t have to worry about miles… :)

July 16, 2012

dmcr dmcr
Ant Farmer
161 posts

could you post the code please ?

 
  ‹‹ [Solved]problem with anchors between symbian belle and belle FP1      Any QSlider, QRadioButton, or QSpinBox already built into QML and QtQuick? ››

You must log in to post a reply. Not a member yet? Register here!