use QQmlApplicationEngine and add dev mode

* use QQmlApplicationEngine instead of QQmlEngine and QQmlComponent
* remove log to console if you are not in dev mode
* window icon still doesn't work...