Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

cannot set property of undefined

$
0
0
well I’m sorry to tell you this but the code is not the same. if (component.status == Component.Ready)         var game = component.createObject(main_Window, {});     game.focus = true; = if (component.status == Component.Ready) {         var game = component.createObject(main_Window, {}); } game.focus = true; that is why game.focus = true produces and warning because “game” is undefined at that line… seems like nobody else is reading this thread but you tr it yourself if you don’t believe me

Viewing all articles
Browse latest Browse all 4972

Trending Articles