При необходимости переделать под себя!
void QSpeedTest::_checkForProgramUpdates()
{
QNetworkAccessManager manager;
QNetworkReply *download;
QEventLoop loop;
int remoteVersion;
_w.slotLog(trUtf8("Checking online for an updated version of %1").arg(PROGRAMNAME));
QTimer::singleShot(UPDATECHECKTIMEOUTSECS * 1000, &loop, SLOT(quit()));
download = manager.get(QNetworkRequest(QUrl(PROJECTVERSIONURL))); // From here on, download pointer does not require manual deletion!
connect(download, SIGNAL(finished()), &loop, SLOT(quit()));
loop.exec();
if(download->isRunning() || download->error())
{
download->abort();
_w.sl
...
Читать дальше »