Thanks, i managed to subclass qdialog and put qdeclarativeview as a member and it worked, i'm now trying to sort out other new problems

Regarding your question, it's for a computer game, i already use other qml parts inside my c++ code, and to maintain some visual consistency and the flexibility that QML offers me i decided to use it also for my modal dialogs