Hello I send yarious posts to a server. For this I use the following method which returns an id.
int post ( const QString & path, QIODevice * data, QIODevice * to = 0 )
Lets say I have three posts. So i defined three global int variables for the return value of the
post statement.
As signal I use void requestFinished ( int id, bool error ).
In the slot to the requestFinished signal i used the following code
if (variable1==id){.....}
if (variable2==id){.....}
if (variable3==id){.....}
So is this right what I am doing here or is there another way. to do it without defining global variables.
Thanks very much for your answers