Results 1 to 2 of 2

Thread: filter processEvents

  1. #1
    Join Date
    Feb 2006
    Posts
    60
    Thanks
    21
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default filter processEvents

    Hi,
    I am presently using QCoreApplication:rocessEvents(QEventLoop::ExcludeUserInputEvents);

    to exclude the user from pressing any key or mouse press when my application is running.

    I want sth. to filter the events so that i can catch Qt::Key_Escape and use that to stop the running application, I also have a cancel button in the Toolbar to stop the application.
    So I need to filter out these the key_Escape press and mouse click on cancel button

    Please reply me if this is possible,

    Thanking you in advance,

    regards,
    Sree

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

Similar Threads

  1. Q3Table event filter problem
    By batileon in forum Qt Programming
    Replies: 2
    Last Post: 27th August 2008, 10:40
  2. How to suppress user defined events in processEvents()
    By Artschi in forum Qt Programming
    Replies: 5
    Last Post: 5th July 2007, 10:17
  3. Optimizing filterAcceptsRow() to filter a tree
    By vfernandez in forum Qt Programming
    Replies: 1
    Last Post: 4th January 2007, 12:50
  4. Replies: 9
    Last Post: 31st March 2006, 13:07
  5. Replies: 9
    Last Post: 5th March 2006, 03:31

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.