[Interest] QT Android: qApp->applicationName() returning lib name even after settings QCoreApplicaton::setApplication name
Thiago Macieira
thiago.macieira at intel.com
Thu Sep 29 23:18:23 CEST 2016
On quinta-feira, 29 de setembro de 2016 21:04:22 PDT Nuno Santos wrote:
> int main(int argc, char **argv)
> {
> QGuiApplication app(argc, argv);
>
> Controller controller(&app);
>
> QQmlApplicationEngine engine;
> engine.rootContext()->setContextProperty("controller", &controller);
> engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
>
> return app.exec();
> }
>
> This is controller constructor:
>
> Controller::Controller(QObject *parent) :
> QObject(parent)
> {
> QCoreApplication::setOrganizationName("Imaginando");
> QCoreApplication::setApplicationName("TKFX");
> }
There's no call to QCoreApplication::applicationName() in your testcase.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list