[Qt-interest] QProgressDialog problem
NARCISO, Rui
RUI.NARCISO at airbus.com
Mon Dec 15 10:21:25 CET 2008
Thanks Arnold,
With a combination of both solutions I got exactly what I wanted.
Rui
-----Message d'origine-----
De : qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com]De la part de Arnold Krille
Envoyé : vendredi 12 décembre 2008 20:50
À : qt-interest at trolltech.com
Objet : Re: [Qt-interest] QProgressDialog problem
On Friday 12 December 2008 16:50:34 NARCISO, Rui wrote:
> The problem is that the application doesn't display the progress bar since
> it is "busy" with the function.
> Does anyone have a solution I could use ?
That is explained in the Qt docs at least two times (from memory). And there
are at least two possible solutions:
1) Call QApplication::processEvents() during your long-running operation once
in a while.
2) Run the long-running operation in its own thread. (See QThread or QRunner
for that.)
Have fun,
Arnold
This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
More information about the Qt-interest-old
mailing list