Zitat von "Mikko Leppänen" :
Hi,
Use smart pointers on app, view and udp, and remove those delete statements.
-Mikko
As discussed in this recent thread
https://www.mail-archive.com/devel@lists.sailfishos.org/msg01778.html
Chris
___
SailfishOS.or
Hi,
Use smart pointers on app, view and udp, and remove those delete statements.
-Mikko
> Mikael Hermansson kirjoitti 22.12.2013 kello 20.24:
>
> Seems there is no point use the connect signal in normal case? Because the
> app shall close correct without those.
>
> However in my case it w
Seems there is no point use the connect signal in normal case? Because the app
shall close
correct without those.
However in my case it was related to that Cover.qml file had errors that made
the app
mainloop not shutdown correcly.
But my other application STILL don't want to shutdown correcl
On 12/22/2013 06:03 PM, Wim de Vries wrote:
Not sure if correct, but I use view->close() (through a QML2C++ call)
and all ends.
In your case possibly:
QObject::connect(view, SIGNAL(destroyed()), view,
SLOT(close()));
Just found out: the above works on the emulator; not on Jolla.
On 12/22/
Not sure if correct, but I use view->close() (through a QML2C++ call)
and all ends.
In your case possibly:
QObject::connect(view, SIGNAL(destroyed()), view,
SLOT(close()));
On 12/22/2013 05:45 PM, Mikael Hermansson wrote:
Changed to:
QObject::connect(app,SIGNAL(lastWindowClosed()),app,SLO
Changed to:
QObject::connect(app, SIGNAL(lastWindowClosed()), app, SLOT(quit()));
still it does not leave mainloop
On Sunday 22 December 2013 21.36.47 Andrey Kozhevnikov wrote:
> use lastWindowClosed signal instead of destroyed
> and
> int retval = app->exec();
> delete x;
> delete y;
> return
use lastWindowClosed signal instead of destroyed
and
int retval = app->exec();
delete x;
delete y;
return retval;
On 22.12.2013 21:22, Mikael Hermansson wrote:
Cant figure out what I am doing wrong but it seems mainloop does not shutdown
when
using QQuickView like below.
And I can't figure ou
Cant figure out what I am doing wrong but it seems mainloop does not shutdown
when
using QQuickView like below.
And I can't figure out what signal I should conect to? Or more exact what
signal is sent from
sailfish when app is closed?
AFAIK SailfishApp is just a subclass of QQuickView but th