Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, March 2002
Blocking GUI actions


Message 1 in thread

Hi,

I guess this is a rather simple problem. However, I couldn't figure out a 
solution:

I start a QProcess from within my application and I want to block all GUI 
actions in the main widget until the process has finished. Of course, I 
could show a modal dialog as long as the process is active but I'd rather 
like to do without.

Is there an other way to achieve this?

Bye,
Bernd


Message 2 in thread

You could disable your whole GUI for the duration of the
QProcess (foo->disable(true)) and set the cursor to an
hourglass...

This way the user will know that there is no allowed action
other that waiting.... And he will not be able to use any part
of the GUI anyway.

Just my 50 øre....

Erlend

> -----Original Message-----
> From: owner-qt-interest@trolltech.com
> [mailto:owner-qt-interest@trolltech.com]On Behalf Of Bernd Brandstetter
> Sent: Sunday, March 10, 2002 11:29
> To: qt-interest@trolltech.com
> Subject: Blocking GUI actions
>
>
> Hi,
>
> I guess this is a rather simple problem. However, I couldn't figure out a
> solution:
>
> I start a QProcess from within my application and I want to block all GUI
> actions in the main widget until the process has finished. Of course, I
> could show a modal dialog as long as the process is active but I'd rather
> like to do without.
>
> Is there an other way to achieve this?
>
> Bye,
> Bernd
>
> --
> List archive and information: http://qt-interest.trolltech.com
>
>


Message 3 in thread

Hi,

> You could disable your whole GUI for the duration of the
> QProcess (foo->disable(true)) and set the cursor to an
> hourglass...

yep, but that looks really ugly...

However, its the only working suggestion I received up to now. Seems its not as easy as 
I thought.

Thanks anyway,
Bernd


Message 4 in thread

Put up some sort of dialog that shows that something is actually happening and progressing, otherwise you will truly annoy your users and whatever you're doing in the background will seem to take even longer than it really does.  Always give the user good feedback.

Ian

>>> Bernd Brandstetter <bbrand@freenet.de> 03/11/02 09:39pm >>>
Hi,

> You could disable your whole GUI for the duration of the
> QProcess (foo->disable(true)) and set the cursor to an
> hourglass...

yep, but that looks really ugly...

However, its the only working suggestion I received up to now. Seems its not as easy as 
I thought.

Thanks anyway,
Bernd

--
 [ signature omitted ]