Results 1 to 2 of 2

Thread: how catch the key alt+f4 in my QApplication

  1. #1
    Join Date
    Mar 2012
    Location
    china
    Posts
    54
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default how catch the key alt+f4 in my QApplication

    hello,how catch the key alt+f4 in my QApplication?when alt+f4 pressed,I don't want to quit my widget QApplication.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how catch the key alt+f4 in my QApplication

    Is it for Windows? Use QCloseEvent & QWidget::closeEvent.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Can't catch DragLeaveEvent
    By steps in forum Qt Programming
    Replies: 6
    Last Post: 22nd March 2012, 18:42
  2. Replies: 2
    Last Post: 1st August 2011, 06:30
  3. how to catch qMouseEvent
    By pakine in forum Newbie
    Replies: 0
    Last Post: 5th July 2010, 17:16
  4. Catch a Key, like designer
    By aekilic in forum Newbie
    Replies: 27
    Last Post: 7th May 2009, 10:01
  5. <QtGui/QApplication> vs. <QApplication>
    By seneca in forum Qt Programming
    Replies: 5
    Last Post: 25th January 2006, 10:58

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.