View Single Post
Posts: 3,464 | Thanked: 5,107 times | Joined on Feb 2010 @ Gothenburg in Sweden
#29
No I am really confused.

Because in my case my app dont leave mainloop and in my case I want it to leave


Code:
 
    QGuiApplication *app = SailfishApp::application(argc, argv);
    app->setQuitOnLastWindowClosed(true);
    UDPManager *udp = new UDPManager();
    QQuickView *view = SailfishApp::createView();
    QObject::connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));
    view->rootContext()->setContextProperty("version", QString(VERSION));
    view->rootContext()->setContextProperty("udp", udp);
    view->setSource(QString("/usr/share/harbour-push2sail/qml/push2sail.qml"));
    view->showFullScreen();
    res = app->exec(); // stays here even when user swipe down and window closes 
    delete app;
    delete udp;
    return res;
__________________
Keep safe and healthy

Last edited by mikecomputing; 2013-12-22 at 17:01.