Results 1 to 3 of 3

Thread: removePostedEvents()

  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default removePostedEvents()

    In the docs, it says "be aware that killing events may cause receiver to break one or more invariants". What does this mean exactly?

    I'm posting events to the event loop in another thread of type User, and although the thread will ignore any events it considers 'obsolete', I'm thinking it would be better if I could remove events that have yet to be processed.

    Will removePostedEvents() work across threads? The call would be made in a different thread to the event handler, but the same one that uses postEvent to that thread.

    Qt 4.5.
    Last edited by squidge; 2nd December 2009 at 17:56. Reason: Added Qt version

  2. #2
    Join Date
    Oct 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: removePostedEvents()

    http://www.qtcentre.org/forum/f-newb...-46-26203.html

    can somebody check this please. I posted in the wrong forum obviously. is this a bug?

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: removePostedEvents()

    I'm using 4.5, not 4.6, so your link is not relevant.

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.