Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Can't we have two Rectangle objects defined in a single qml file?

$
0
0
Hi, I have a Rectangle object defined in the default qml file that we get when we create a new project. I wanted another screen to open up on click of mouse. For this I tried to create another Rectangle object in the same qml file but I got a syntax error. Is it not possible to create two Rectangle objects in a single .qml file or what? Basically if I have to have multiple screens in my application switching them back and forth, how should I go about it in terms of qml files? Shall I have one qml file for one screen or how? Please let me know. Thanks

Viewing all articles
Browse latest Browse all 13965

Trending Articles