Hi, I am writing a Qt Application for embedded device. In this application I want to implement a "shutdown" button. The OS is linux. How can I make the system shutdown and show the shutdown process on a progress bar. And how can I display a message: "It's now safe to turn off" after the system shutdown?

Thank you very much