On 11.04.10 22:27:04, Thorsten Kampe wrote:
> Hi,
> 
> I wrote a simple application that displays output of an external CLI 
> tool in a QTreeWidget. In a normal setup, the external tool will take 
> less than one minute to terminate. Unfortunately - depending on the 
> setup of the external application - the external tool may also take 
> between thirty and sixty seconds to terminate - during which my 
> application seems to "do nothing" and is not even visible. So the user 
> may simply think that my appliatopm crashed.
> 
> One option I have would be to display a splash screen ("Please wait - 
> gathering data...") or a progress dialog. My optimum solution would be 
> that the application's main window appears after creating the top level 
> QTreeWidgetItem and refreshes after each QTreeWidgetItem() - and not 
> after the whole tree is populated.
> 
> Is this possible and if so, how?

Don't wait for the process to finish and instead connect to its signals
and add the lines to the treeview in the related slots.

Andreas

-- 
You'll be sorry...
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to