Hi Lodron,
you may want to use the Qt Threading capabilities to maintain a reactive GUI 
during calculation. The main advantage using Qt Threads is the support of 
asynchronous events. E.g. the QThread class has signals like finished() and 
terminated() which makes it really easy to synchronize with the main GUI 
thread. Start your Qt thread, do your calculations there and listen to these 
signals to get informed when results are available. Unfortunately, you can`t 
use the mitkProgressBar from this thread without possibly running into Race 
Conditions.
Here`s a link to Qt Threading documentation:
http://doc.qt.nokia.com/latest/threads.html

Regards
Michael

Von: Lodron, Gerald [mailto:[email protected]]
Gesendet: Mittwoch, 2. Februar 2011 12:01
An: '[email protected]'
Betreff: [mitk-users] ProgressBar update


Hi,

I use the mitk::ProgressBar in the GUI to say the user that he must wait. If i 
start my calculation the progressbar gets updated, but when i click on the gui 
during calculation (takes a while) the gui gets a little bit gray and then the 
progress bar does not update any more until it is finished (on the header there 
is "Keine Rückmeldung" appended in german windows 7 version)

any suggestions or recommended ways/examples in MITK to process longer 
algorithms to avoid this (maybe over multithreading)?
thanks,

Gerald
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to