On Tue, 25 May 2004 16:45:40 +0200
Christian von Mueffling <chr...@pd...> wrote:
> I have an application that needs some time until the main window build
> up is finished (lots of data to read, etc.)
>
> It would be convenient to provide a small dialog that shows some
> progress while doing that (something like a small window in the middle
> of the screen without decorations ...).
>
> I was playing around running a second thread in which the widgets are
> build and mapped while the main app already is running. But I'm not
> really satisfied with this solution (and I guess this is also rather
> dangerous).
>
> Any idea how else I could do that?
I guess you could have an invisible MainWindow, which doesn't contains
anything. The MainWindow are able to spawn dialogs.
So what now is your mainwindow would then become a dialog.
This way you would be able to show a progressbar dialog while waiting
for the build to complete.
--
Simon Strandgaard
|