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.
↧