Oh, I see.
In Qt Quick 2, QDeclarativeView is now called "QQuickView ":http://qt-project.org/doc/qt-5/qquickview.html
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).