Unsolved How to detect the ubuntu shut down button pressed or not?
-
Hi,
I want to pop up/Run my GUI application whenever shut down button is pressed in ubuntu 14.04.
Any help how do i do this..Thank you.
-
@vIJI
May be aboutToQuit() helps you . -
Hello,
If you want to actually connect to the hardware event, that may not be easy at all, otherwise this might be useful. -
Hi,
Do you mean you would like to do something when it's shutting down i.e. save the state of your application ? Or react on the button itself ?
-
Thank you guys for your answers but, can you explain me in steps , i am new to Qt so, @SGaist yup, exactly i want to see popping up of my Qt application on shut down button pressed.
Apologies,
Thank you. -
@Ratzz nope its not working.
Thank you.
-
@SGaist
i want my application to popup whenever shutdown button is pressed -
What do you need it to do ? Save the state of your application ? Block the shutdown ?