Changing:
QCoreApplication::setOrganizationDomain("com.ubuntu.docviewer")
to:
QCoreApplication::setOrganizationName("com.ubuntu.docviewer")
makes the app look for the main QML file in the wrong path, since DataLocation is built as "/usr/share/<APPNAME>", where <APPNAME> (according to Qt docs) "is usually the organization name, the application name, or both, or a unique name generated at packaging."
Changing: ation:: setOrganization Domain( "com.ubuntu. docviewer" ) ation:: setOrganization Name("com. ubuntu. docviewer" )
QCoreApplic
to:
QCoreApplic
makes the app look for the main QML file in the wrong path, since DataLocation is built as "/usr/share/ <APPNAME> ", where <APPNAME> (according to Qt docs) "is usually the organization name, the application name, or both, or a unique name generated at packaging."
In this case, it is both[1].
[1] "/usr/local/ share/com. ubuntu. docviewer/ com.ubuntu. docviewer/ qml/ubuntu- docviewer- app.qml"