QML (Qt 4.8.5): javascript function executed outside it's object



  • Hello, I have a problem executing javascript function defined inside QML. This function addresses some properties of that QML and sometimes when this function is called from another QML file, it can't find those properties (complains about undefined variables). It happens sometimes, not always. It's like javascript code is being executed outside of the context it's defined in. Since the behavior is random, I suppose it's a bug. Any advice how to avoid this? Tried addressing properties via id.property, but problem stays.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.