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

cannot set property of undefined

$
0
0
No i didn’t say remove the if, just look at the code I provided you forgot the {} around “game.focus = true” :) you need to use it like this (again): if (component.status == Component.Ready) {         var game = component.createObject(main_Window, {});         game.focus = true; } same with your other object “bg_game” off course.

Viewing all articles
Browse latest Browse all 4972

Trending Articles