How to restart an application
Hi; :)
How to restart an application.
Thanks.
Re: How to restart an application
Re: How to restart an application
Hi;
I have Qt application and I need to restart their execution.
Thanks;
Re: How to restart an application
Create a script that waits till the current process finished, then start a new one.
Run the script when you close your program
Re: How to restart an application
Hi;
Thanks;
Resources allowed not free by this method!!
Re: How to restart an application
No, you have to take care of your resources and memory allocations yourself. There's no magic "release all my memory and allocations for me" as it doesn't know what is in use.
Re: How to restart an application
Hi;
I have an application that is based on plugins, after several uses, I just do not unload this plugin (QPluginLoader:: unload ()) which remains blocked.:confused:
Re: How to restart an application
Quote:
Originally Posted by
muisei
Try this:
Nice.
Posted as answer here.
Re: How to restart an application
Quote:
Originally Posted by
muisei
Whenever you want to restart the application just call exit(RESTART_CODE) to exit the event loop with RESTART_CODE.
Hi all,
To repeat the loop I would rather call:
Code:
qApp->exit(RESTART_CODE);
Or indifferently:
Otherwise the program appears to be exited immediately.
Cheers,
Alexandre
Re: How to restart an application
Hi to all, here I am. I'm looking for a easy solution on how to restart an application, I read something, consider I'm a novice, if anyone has a working sample would be great...thanks in advance
walter
Re: How to restart an application
Quote:
Originally Posted by
walter.gallieni
Hi to all, here I am. I'm looking for a easy solution on how to restart an application, I read something, consider I'm a novice, if anyone has a working sample would be great...thanks in advance
You might want to reformulate your question, currently it is very generic. At this moment I'd say that the easiest way to restart an application is to close it and start it up again the same way it was started originally.
Re: How to restart an application
Quote:
Originally Posted by
squidge
No, you have to take care of your resources and memory allocations yourself. There's no magic "release all my memory and allocations for me" as it doesn't know what is in use.
Unless you are in PySide/PyQt. :)