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

Requests regarding how to set up experiments in ARGoS.
Eksander
Posts: 8
Joined: Sun Jun 20, 2021 10:26 pm

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

Postby Eksander » Wed Jan 05, 2022 1:38 pm

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?)

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

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

Postby pincy » Wed Jan 05, 2022 1:42 pm

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.
I made ARGoS.

Eksander
Posts: 8
Joined: Sun Jun 20, 2021 10:26 pm

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

Postby Eksander » Wed Jan 05, 2022 1:52 pm

Thank you for the quick reply !

By calling Destroy() in qt_user_functions conditionally you mean?

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

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

Postby pincy » Thu Jan 06, 2022 7:34 pm

You can use the Qt API to close the main window; that will automatically call the necessary ARGoS functions to cleanup and close.
I made ARGoS.


Return to “How to... ?”