Yes Yuchen. But you should anchor the Loader like any other item.
Le Lundi 2 juin 2014 12h23, Yuchen Deng <loa...@gmail.com> a écrit :
2014-06-02 16:59 GMT+08:00 BOUCARD Olivier <boucard_oliv...@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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest