[Qt-interest] QDialog
Konrad Rosenbaum
konrad at silmor.de
Tue May 24 08:02:07 CEST 2011
On Tuesday 24 May 2011, Nicholas Shatokhin wrote:
> Thanks, It may helps.
> But, how can I show animation?
That is something you actually have to program (as opposed to design) a bit:
the slot connected to the "Next" button needs to setEnabled(false) on the
dialog when it starts and setEnabled(true) when it finishes. So you can
prevent the user from interacting with it until you are ready for this.
The animation should either be a separate page in the wizard or its own top
level widget. In any case see QLabel::setMovie().
You will probably wonder why the animation does not animate: you have to
make sure that you allow Qt to process events while you are waiting for the
server to respond. See QEventLoop and QCoreApplication::processEvents().
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110524/59e009d7/attachment.bin
More information about the Qt-interest-old
mailing list