[Interest] "Loading", recursion and GUI's
alexander golks
alex at golks.de
Mon Jan 7 16:51:50 CET 2013
sounds like you're blocking the gui painting.
i would start a thread for parsing the dom and use some signals/slots to signal the gui the current state, like:
signals:
void startDomParsing();
slots:
void onDomParsingFinished()
{
delete progress;
// or whatever
}
or instead of onDomParsingFinished() you could even connect your QThread::finished() signal
to the progress::deleteLater() or alike...
and some signals from thread to gui slots for updateing your tree widget.
or, call QCoreApplication::processEvents at appropriate places, if you don't want to do it the threaded way.
alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130107/5fa48974/attachment.sig>
More information about the Interest
mailing list