[Qt-interest] MessageBox in thread

Vítězslav Košina vitezslav at kosina.cz
Fri May 28 11:43:22 CEST 2010


Hello,

I would like ask for help in this situation:

I have application, which in separate thread do some calculation and need 
sometime ask user for input extra value. I know, that all GUI operation can be 
done only in main thread.

I would like ask, what is standard way in Qt for this situation. Do QMutext in 
calculation thread, emit signal to slot in main thread a receive input from 
user in main thread ? How to receive this input tho calculation thread?

Thank you very much for explanation or example. On web is too much abstract 
discussion, but if is possible more better will be some cookbook or example.

Vitek



More information about the Qt-interest-old mailing list