[Interest] [QML] How to create a sub Window for Window {...}
BOUCARD Olivier
boucard_olivier at yahoo.fr
Mon Jun 2 13:03:04 CEST 2014
Yes Yuchen. But you should anchor the Loader like any other item.
Le Lundi 2 juin 2014 12h23, Yuchen Deng <loaden at gmail.com> a écrit :
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/fcfa8039/attachment.html>
More information about the Interest
mailing list