Results 1 to 5 of 5

Thread: postEvent & Thread problems

  1. #1
    Join Date
    Jan 2006
    Posts
    6
    Thanks
    1

    Question postEvent & Thread problems

    Hello all,
    this is my first post and first of all sorry for my English .

    I have a strange problem in a my qt program.
    I have 2 thread, a qt standard main thread and one mine.

    In my thread i have a timer event and every handleTimer call postEvent to send a custom QEvent to GUI thread.

    Everything works perfectly but when i click to window bar postEven don't send more Event's...but when i release the mouse left button all missing messages are processed together.

    It seems that my thread stop the queuing when click left button mouse on main window title bar.

    If you want i make a simple compilable main.cpp where reply behaviour.
    How can I avoid this behavior?!

    Thank to all.
    Gian
    Attached Files Attached Files

  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: postEvent & Thread problems

    Which platform do you use?

  3. #3
    Join Date
    Jan 2006
    Posts
    6
    Thanks
    1

    Default Re: postEvent & Thread problems

    Windows, Qt open source 4.3.4

  4. #4
    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: postEvent & Thread problems

    It's not the first time I hear of such behaviour of Qt on Windows and I don't think you can do anything about it. You could report it to Trolltech, but it's doubtful they will do anything about it soon. But still you might try or maybe it's already reported, check the tasktracker.

  5. #5
    Join Date
    Jan 2006
    Posts
    6
    Thanks
    1

    Default Re: postEvent & Thread problems

    Hello again,
    thank you for your reply...this is the ticket for who have same problem:

    http://trolltech.com/developer/task-...ntry&id=146849

    Thanks

Similar Threads

  1. postEvent thread problem
    By jhamers in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2008, 10:36
  2. canonicalFilePath() thread problems
    By magland in forum Qt Programming
    Replies: 10
    Last Post: 5th December 2007, 21:22
  3. Thread Problems (i think)
    By LMZ in forum Qt Programming
    Replies: 11
    Last Post: 29th September 2007, 12:54
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. Replies: 10
    Last Post: 20th March 2007, 22:19

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.