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
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
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,
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 {
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 {
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
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