We are talking about QML providing functionality not available in the public Qt API. With the old way, QtGui, everything I did in the designer I could do in pure C++ by hand. I did not have to rely on anything at all outside of C++ and the MOC. This is no longer true for QML. I can not do something equivalent of
Code:
#include <QtQuick2>
...
QQRect *pRect = new QQRect(size, position, parent);
QQApplication::addToScenegraph(pRect);
...
I can not use QtQuick functionality in my own classes without going through the QML file, unless I want to use the Qt internal API which is not guaranteed to be binary compatible. Want to add a MouseArea to your own class? It is essentially not possible to use QtQuick without using qml files. Here is some more information: How to create an Item from C++ (without QML&#63 | Qt Project forums | Qt Project