PDA

View Full Version : How to handle Power Press event with QT Programming on Linux?



Kevin Hoang
1st April 2011, 02:35
I have a Qt Program run as full screen and top level, so when press power button, it does not turn off my computer.

I want to handle the power event on my QT program to close my program then call to shutdown. How to do this?

My Details: Fedora 14 KDE (Qt v4.7)

tbscope
1st April 2011, 05:23
I guess there will be some message on dbus.

Kevin Hoang
1st April 2011, 08:36
Can you help me how to connect with power button events in Qt?