PDA

View Full Version : Once again: buttons and time consuming tasks



pampo
4th May 2009, 17:57
Hello there,

please sorry if I ask help on such an elementary issue, but I'm quite new to Qt and, even if I googled a lot for an answer, I did not find anything simple and helpful to me, yet.

The problem is always the same: I have a GUI application, a time consuming task that should be performed upon a push button user's click and a result that must be checked to feedback the user.

Of course I need to run the above task in a separate thread to avoid blocking the main application, what's the simplest pattern to do this in Qt? Even the examples do not definitely clarify me this point.

Many thanks in advance for your help,

Matteo.

wysota
4th May 2009, 18:26
Read this: Keeping the GUI Responsive (http://doc.trolltech.com/qq/qq27-responsive-guis.html).