Hello, Is there an easy way to display QML elements in a traditional QGraphicsScene - QGraphicsView based application ?
e.g. something that would be like a QGraphicsQMLItem. I tried this : QQuickView *view = new QQuickView(); view->setSource(QUrl("qrc:/DummyProcess.qml")); QWidget *container = QWidget::createWindowContainer(view, graphicsView); container->setMinimumSize(QSize{100, 100}); container->setMaximumSize(QSize{500, 500}); container->setFocusPolicy(Qt::TabFocus); QGraphicsProxyWidget * proxy = new QGraphicsProxyWidget(this); // "this" is a QGraphicsItem proxy->setWidget(container); view->show(); But alas, what it does is that it opens the QML in a new window next to my app. Best regards, Jean-Michaël Celerier
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest