Comparison of Qt/C++ and Android SDK development (in term of Ease and Difficulty)
Unsolved
General and Desktop
-
It is a different way of programming. What I usually do is create a library (that does not link to QtQuick nor QtWidgets) with objects that do all the work and expose all signal and models that will be used by the user interface.
Basically, program everything regardless of interface.
After that build the UI in either QML (desktop/app) or QWidgets (Desktop only) using the library object for the functionality.
base line: make the UI part as stupid as possible and do all the work inside QObjects that can be exposed