Using QApplication::processEvents

Andras Mantia amantia at kde.org
Tue May 2 23:38:13 UTC 2006


On Tuesday 02 May 2006 17:56, Vladimir Prus wrote:
>   GDBMI::ResultRecord* result = 0;
>
>   GDBMI::ResultRecord* send_command(QString& command)
>   {
>                 // send the command
>                 while(result == 0)
>                         QApplication::processEvents();
>          return result;
>   }

In this case I'm not sure I fully understand, but do you need to 
simulate an synchronous call when the call itself is asynchronous? If 
it is so, it might be better to look how this is done in KIO::NetAccess 
(at the end of netaccess.cpp). That is better, but still has some 
drawbacks.

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20060502/a589c181/attachment.sig>


More information about the KDevelop-devel mailing list