Results 1 to 2 of 2

Thread: events not dispatched in GUI thread

  1. #1

    Default events not dispatched in GUI thread

    Hi,
    consider the following scenario:

    I've got a thread SenderA that emit a signal is some circumstances.
    I've got a QWidget subclass with a slot SlotReceiverFromSenderA connected
    to SenderA signal.
    Since the signal and the slot lives in two thread (SenderA and GUI thread) signals are posted as events.
    Now if i show the widget and exec the application i see the SlotReceiverFromSenderA being called every time the SenderA emits its signal, but if i left click on the title bar of the widget the slot is never called anymore. Signals are queued but are not processed until i release the mouse button.

    How to avoid this situation ? Why this happens ?
    Thank you in advance.

    P.S.
    i cannot use QCoreApplication:rocessEvents to force processing of events.
    This happens on Windows platform, Linux seems not be affected from this behavior

  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

    Default Re: events not dispatched in GUI thread

    This is a known issue with Windows.

Similar Threads

  1. postEvent thread problem
    By jhamers in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2008, 10:36
  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. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  4. Replies: 10
    Last Post: 20th March 2007, 22:19
  5. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49

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.