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

How to change a property of an object in an array list

$
0
0
Hi Qt Hackers in this example ( http://harmattan-dev.nokia.com/docs/library/html/qt4/declarative-tutorials-samegame-samegame2.html ) an array is used to store the objects of the gamefield. When they restart the game all the objects going to be deleted. My question is: Is there a way to change the properties of an single oject in this array? I’ve tried this: board[0].visible = false But all I get is a type error: Cannot set property “visible” of undefined Thanks Eli

Viewing all articles
Browse latest Browse all 4972

Trending Articles