I would like to use both Qt Quick and Qt Widgets to display the user interface. The problem is I want to create both in C++ code. (The UI isn't defined at time of compilation.) There are no problems with the latter. Unfortunately I cannot find any examples how to create the declarative scene at runtime. It looks it is possible to create a text string with QML code and interpret it. I want something more sane, unfortunately. Is it possible?
I play with QT5, but I am interested in answers about QT4 too.