I'm trying to add a currently standalone Qt QML application ("new application") as a display widget in a QMdiArea in a large non-QML Qt application ("main application"). The main application I'm trying to add this to uses Qt 5.6.0, and the new application uses Qt 4.8.
My first step was to get "new application" compiling under Qt 5.6, but the major architectural change for Qt QML applications between Qt 4 and Qt 5 has me stumped. The primary View for "new application" inherits directly from QDeclarativeView and makes heavy use of QWidget and QGraphicsView functionality.
Qt's guide for migrating QML applications from Qt4 to Qt5 (http://doc.qt.io/qt-5/qtquick-porting-qt5.html) seems to suggest using the deprecated declarative module as the solution to this problem, but all of the source code for QDeclarative has been removed from qtquick1 as of 5.6.0 and I can't switch "main application" back to an earlier version of Qt.
I'm new to both Qt and "new application." Is there an easier way to approach this than to get a complete understanding of "new application" as currently designed and then read up on both the old declarative framework and the new qtquick framework and restructure/rewrite everything to use the new qtquick framework?