Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Multiple windows desktop app in Qt Quick?
Forum Updated to NodeBB v4.3 + New Features

Multiple windows desktop app in Qt Quick?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 650 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krom
    wrote on last edited by
    #1

    I wonder if there exists simple way of making multiple windows application, where windows are created independently from single root ApplicationWindow? I'm totally new in Qt Quick, which is a bit puzzling in this regard. For example, how do I call form constructor? Or Qt Quick is a wrong tool for this sort of task?

    Form1.qml:

    ApplicationWindow {
    id: root
    visible: true
    
    ToolBar {
            ToolButton {
                color: "#FF0000"
                onClicked: Form2.show()
            }
    }
    

    Form2.qml:

    Window {
        id: Form2
        width: 400
        height: 400
    }
    
    1 Reply Last reply
    0
    • X Offline
      X Offline
      xargs1
      wrote on last edited by xargs1
      #2
      This post is deleted!
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved