@AliReza-Beytari said:
So, how can I wait for login.php to finish replying ??!!
Wait for the QNetworkAccessManager::finished() or QNetworkReply::finished() signals. These signals are emitted when the reply has finished.
Do you know how to use signals and slots? http://doc.qt.io/qt-5/signalsandslots.html