Console of the C + + program, using Qt's Qml, so that it can use Qml for interface display

If you are already familiar with QML. Then there is nothing difficult. The answer on the 2nd floor would be complete. You need a qml file, and a QDeclarativeView object.

The QDeclarativeView's setSource accepts the filename of a qml file. The call automatically creates the qml object written in your qml file.

Then you can manipulate your qml object through the QDelcarativeView object. You'll learn it quickly by writing it yourself.

Add the declarative module to QT in your pro file, otherwise you won't be able to use QDeclarative

.