Re: [Interest] Load Qml file in custom QmlContext with QQuickWidget

2015-11-19 Thread Stéphane Fabry
My situation is a little bit more complex, I have a hierarchy of QQmlContext like this : QQmlEngine engine;// creates the root context QQmlContext *context1 = new QQmlContext(engine.rootContext()); QQmlContext *context2 = new QQmlContext(engine.rootContext()); This way I have context pr

Re: [Interest] Load Qml file in custom QmlContext with QQuickWidget

2015-11-18 Thread Edward Sutton
Disclaimer: I am learning QML with the help of others on this mailing list. 1. I added a QFrame to my UI. 2. Added the QML as an embedded resource and use it load the QQuickWidget 3. Add the QQuickWidget to the frame layout MainWindow::MainWindow(QWidget *parent) : QMainWindow(pa

[Interest] Load Qml file in custom QmlContext with QQuickWidget

2015-11-18 Thread Stéphane Fabry
Hi, I'd like to create an item within a qml context, with QQmlComponent::create(QQmlContext*) How to display that item into a QQuickWidget ? Thanks Stéphane ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/list