Page 1 of 1

Is there a way to autostop the qt-user GUI?

Posted: Wed Jan 05, 2022 1:38 pm
by Eksander
The xml file can take autoplay, but how could I autostop (i.e, shutting the GUI down after the experiment finishes and qt-user is activated?)

Re: Is there a way to autostop the qt-user GUI?

Posted: Wed Jan 05, 2022 1:42 pm
by pincy
You can use the qt user functions. This could also be an option added to the XML file. I'll work on it for the next release.

Re: Is there a way to autostop the qt-user GUI?

Posted: Wed Jan 05, 2022 1:52 pm
by Eksander
Thank you for the quick reply !

By calling Destroy() in qt_user_functions conditionally you mean?

Re: Is there a way to autostop the qt-user GUI?

Posted: Thu Jan 06, 2022 7:34 pm
by pincy
You can use the Qt API to close the main window; that will automatically call the necessary ARGoS functions to cleanup and close.