[Interest] QNetworkAccessManager throwing qWarning()

Thiago Macieira thiago.macieira at intel.com
Thu Aug 28 18:37:32 CEST 2014


On Sunday 24 August 2014 16:55:51 Sumit Bongir wrote:
> Hello All,
> 
> I have posted a question in the forum along with the details:
> http://qt-project.org/forums/viewthread/46394
> 
> So far I have not received a single answer.
> As suggested by JKSH I am posting this message to get some answers.

It's usually a good idea to include the details of your problem in your email 
so people can look it up and, later, find it in the archives. A link to the 
forum is not enough.

Anyway, you're getting the warning:

QIODevice::seek: Cannot call seek on a sequential device

with code:

void CheckUpdates::checkUpdates()
{
    connect(&manager, SIGNAL(finished(QNetworkReply*)), this, 
SLOT(fileDownloaded(QNetworkReply*)));
    connect(&timer, SIGNAL(timeout()), this, SLOT(killChecking()));
    QNetworkRequest request(QUrl("http://mywebsite.com/index.html"));
    manager.get(request);
    timer.start(10000);
}

Since the code looks fine, this is probably a Qt bug. Report it.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list