View Full Version : Synchronizing QFtp

5th November 2008, 13:31
Hi All,

I am finding it difficult to synchronize my program which uses QFtp APIs.

I am calling the get() function to download. As QFtp class works asynchronously.. it returns immediately but I have to wait before going to the next statement. How do I wait for the get() operation to complete?

Here is a sample pseudo code:

QFtp ftpObj;


//Have to wait here, before going ahead.

return retVal; //This retVal will be updated in the slot connected to commandFinished()

Please help me.