[Interest] [QML] How to create a sub Window for Window {...}

Yuchen Deng loaden at gmail.com
Mon Jun 2 11:22:52 CEST 2014


2014-06-02 16:59 GMT+08:00 BOUCARD Olivier <boucard_olivier at yahoo.fr>:

> The best way is to use a Loader item.


thx. like this?

> import QtQuick 2.2
> Rectangle {
>     id: root
>     visible: true
>     width: 760; height: 520
>     color: "red"
>     Loader { id: pageLoader }
>     MouseArea {
>         anchors.fill: parent
>         onClicked: pageLoader.source = "subwindow2.qml"
>     }
> }



-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140602/0738ceda/attachment.html>


More information about the Interest mailing list