This was recently dropped in the Q&A room:
*I've been given a task I don't really understand. It's about QT and network. I understand the basics; we use QNetworkReply class and it's method readAll. The task is:
if the mime type of the file (that we are getting through reply->header(QNetworkRequest::ContentTypeHeader) ) is textual, then we just write it to plainTextEdit. I've done that part. However, if the mime type isn't textual, we are supposed to download it through temporary file and that copy it into chosen file (I'm assuming he meant directory) from File Dialog. It says: "For generati…