update main.cpp to show the main.qml component