PDA

View Full Version : Wait for a signal



adonel
13th May 2008, 13:21
I have run into a situation that in order to continue some sort of computations/operations, i have to ask a question to the user. However, i cannot display a modal window (the user should be able to inspect the the main widget before answering my question).
So, i have to show a modeless dialog, but i want to stop my computations until the user answers the question.

Is there a way to wait for the finished signal of the displayed dialog for continuing???
I don't want to break my computations in small parts and user signal/connection mechanism...

Regards,
Panos

thomir
13th May 2008, 19:53
You could use libqxt, and the signal waiter class:

http://docs.libqxt.org/classQxtSignalWaiter.html


... or you could roll your own, but why reinvent the wheel?