That is a very good question. Does anyone know how this is usually handled in QML applications? Or in javascript applications in general? I guess in our simple examples we have left this problem for developer.