How to display multiple screens at the same time?
-
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
-
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.
-
Thanks Lukas, that works.
-
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.