01-03-2013 12:22 AM
I'm currently having s problem with calling c++ function from qml.
Normal calls works. But when I call a function in onCreationCompleted, it can't access qml object on the page.
For example:
Page{
onCreationComplete:
{ myFunction();}
Button{
ojbectName: "button1"
}
}
myFunction access button1 using findChild.
But this return 0x0, mean the button does not exist.
So how to access button1 in c++ when page is loaded?
i posted from a phone, so sorry if there's any mistake.
Solved! Go to Solution.
01-03-2013 03:37 AM
01-03-2013 03:50 AM