Oh, I see.
In Qt Quick 2, QDeclarativeView is now called QQuickView [qt-project.org]
Use the QQuickView to show your QML file. Then, call QWidget::createWindowContainer() to put the QQuickView inside other widgets. (See https://blog.qt.digia.com/blog/2013/02/19/introducing-qwidgetcreatewindowcontainer/ for an example).
↧