PDA

View Full Version : postEvent & Thread problems



gianpatt
20th March 2008, 17:26
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

wysota
20th March 2008, 19:59
Which platform do you use?

gianpatt
21st March 2008, 06:59
Windows, Qt open source 4.3.4

wysota
21st March 2008, 08:59
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.

gianpatt
21st March 2008, 14:19
Hello again,
thank you for your reply...this is the ticket for who have same problem:

http://trolltech.com/developer/task-tracker/index_html?method=entry&id=146849

Thanks