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

How i can check what parent is existing?

$
0
0
I try: Rectangle {     id:wo     width: parent.width*0.6 } And I’m getting the error: TypeError: Cannot read property of null And therefore I want something like: if(parent.exist) return parent.width; else return Screen.width; How can I do this?

Viewing all articles
Browse latest Browse all 4972

Trending Articles