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. How to display multiple screens at the same time?
Forum Updated to NodeBB v4.3 + New Features

How to display multiple screens at the same time?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.3k 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.
  • I Offline
    I Offline
    interface_johnson
    wrote on last edited by
    #1

    Hi guys, I am trying to create a chat app using QML as the user interface, currently i'm thinking about how to handle multiple conversations, like other chat apps (e.g, gtalk, msn), I want to create window for each conversation, however, I cannot find useful info about how to display multiple screens at the same time.

    I tried to use Loader but it created the component on it's parent page, I don't want to use stack either as it can only show one screen at a time. Please correct me if I am wrong.

    Simply speaking, I want to create and display new screens while keeping the main window visible, is that possible with QML? Please guide. Thanks.

    Cheers

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      QML itself does not support creating top-level windows out of the box (so far), but "Qt Quick Desktop Components":http://labs.qt.nokia.com/2011/08/26/toplevel-windows-and-menus-with-qt-quick/ do.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        interface_johnson
        wrote on last edited by
        #3

        Thanks Lukas, that works.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          interface_johnson
          wrote on last edited by
          #4

          I have another question now, I'm trying top-level Window element, it works, but is there a way to detect the close event on the Window, i tried onDestroyed but it didn't work, the window cannot even be opened if i use onDestroyed. Any help will be appreciated.

          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