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

2014-06-02 Thread Rutledge Shawn
What do you mean by sub window? If you mean you are trying to create an MDI interface, with a window acting as a desktop and having more windows inside, that's not supported in Qt Quick and is unlikely at this point, since the widgets implementation turned out to be quite bug-prone, and MDI

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

2014-06-02 Thread Filip Piechocki
So just use Rectangle :) or Item if you just want an empty item, or Component to load some QML from file. BR, Filip Piechocki On Mon, Jun 2, 2014 at 9:51 AM, Yuchen Deng loa...@gmail.com wrote: Actually, I don't really want an MDI interface. I just want load or open another qml as child

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

2014-06-02 Thread BOUCARD Olivier
The best way is to use a Loader item. Olivier Le Lundi 2 juin 2014 10h58, Filip Piechocki fpiecho...@gmail.com a écrit : So just use Rectangle :) or Item if you just want an empty item, or Component to load some QML from file. BR, Filip Piechocki On Mon, Jun 2, 2014 at 9:51 AM,

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

2014-06-02 Thread Yuchen Deng
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 {

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

2014-06-02 Thread BOUCARD Olivier
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 {    

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

2014-06-02 Thread Yuchen Deng
Got it, thanks! 2014-06-02 19:03 GMT+08:00 BOUCARD Olivier boucard_oliv...@yahoo.fr: But you should anchor the Loader like any other item. -- Best Regards Yuchen ___ Interest mailing list Interest@qt-project.org

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

2014-06-01 Thread Yuchen Deng
hi, list! I have to ask for help because I can't create an sub window on Window {...}. I've tried some days, after Google still can't solved my problem. main.qml import QtQuick 2.2 import QtQuick.Window 2.1 Window { id: mainWindow visible: true width: 760; height: 520