Results 1 to 3 of 3

Thread: How to handle Power Press event with QT Programming on Linux?

  1. #1
    Join Date
    Mar 2010
    Posts
    68
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default How to handle Power Press event with QT Programming on Linux?

    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)

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to handle Power Press event with QT Programming on Linux?

    I guess there will be some message on dbus.

  3. #3
    Join Date
    Mar 2010
    Posts
    68
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to handle Power Press event with QT Programming on Linux?

    Can you help me how to connect with power button events in Qt?

Similar Threads

  1. Key Press Event Handling
    By kosasker in forum Newbie
    Replies: 8
    Last Post: 22nd March 2011, 16:49
  2. Paint event function in key press event
    By soumya in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2010, 13:40
  3. Mouse press event in a QGraphicsScene
    By Lykurg in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2009, 11:28
  4. Key Press Event trouble
    By morraine in forum Newbie
    Replies: 6
    Last Post: 18th August 2008, 09:43
  5. handle a Alt+E key press
    By Morea in forum Newbie
    Replies: 4
    Last Post: 9th September 2006, 16:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.