If you want to add your QtQuick view into a widget layout, you need to wrap it into a QWidget first and then add this
// view constructed somewhere
QQuickView *view ....
// create wrapper widget
// add widget as any other widget
layout->addWidget(viewContainer)
// view constructed somewhere
QQuickView *view ....
// create wrapper widget
QWidget* viewContainer = QWidget::createWindowContainer(view);
// add widget as any other widget
layout->addWidget(viewContainer)
To copy to clipboard, switch view to plain text mode
With Qt 5.3 there will also be another alternative: QQuickWidget
Cheers,
_
Bookmarks