Results 1 to 3 of 3

Thread: Discard user input events in QEventLoop.

  1. #1
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Question Discard user input events in QEventLoop.

    Hello,

    The documentation for QEventLoop::ProcessEventFlags::ExcludeUserInputEve nts says that user input events will not be processed and will not be discarded. I would like to call processEvents and not only exclude user input events, but also discard them. Is there a way to do this?

    Thanks!
    -Ben

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Discard user input events in QEventLoop.

    Use event filter (QObject::eventFilter()) or write your own event loop (QEventLoop), that will discard those events.

  3. The following user says thank you to jacek for this useful post:

    Ben.Hines (17th April 2006)

  4. #3
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: Discard user input events in QEventLoop.

    I should have thought of this. Thanks.

Similar Threads

  1. How to suppress user defined events in processEvents()
    By Artschi in forum Qt Programming
    Replies: 5
    Last Post: 5th July 2007, 10:17

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.