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

Problems with launching new window

$
0
0
Your use-case now sounds like a nice candidate for Flipable [doc.qt.io] element, or the StackView [doc.qt.io]. A minimal change to your current approach would be this: display your first window at application start (you can even replace the Rectangle), then add your second window in this way (add this as the last child of main window, to make it’s z value high enough): Loader {   anchors.fill: parent // will fill the main window when set to visible   source: "path to your file"   visible: false } Then, then you click on your mouse area, you can just set visible to true, and the second window will be shown. And to go back – you can send a signal from your secondary window that will be read in main and will set visible back to false. That is a bit more advanced, but I can help you with that later. Let’s focus on the basics first :-)

Viewing all articles
Browse latest Browse all 4972

Trending Articles