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
Forum Updated to NodeBB v4.3 + New Features

Multiple windows

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 166 Views 1 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.
  • L Offline
    L Offline
    leon missoul
    wrote on last edited by
    #1

    Hi,

    I would like to be able to open multiple windows from my main window in QML.
    I tried this with the following piece of code:

    var component = Qt.createComponent("../../qml/parent.qml")
    var window    = component.createObject(parent)
    window.show()
    

    This works but opens a window with a parent and the newly opened window always stays on top.
    I want all the opened windows to be completely independent. How do I do this the best way?

    I'm new to all this, so every answer is welcome :)

    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