[PyQt] Overcoming slow startup
apaku at gmx.de
Mon Apr 12 09:04:38 BST 2010
On 11.04.10 22:27:04, Thorsten Kampe wrote:
> 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.
You'll be sorry...
More information about the PyQt