I’m new to Qt and I’m trying to get data from a website. I’m trying to follow the Download Data from URL example with the filedownloader class.
url = "http://ichart.finance.yahoo.com/table.csv?s=bac";
FileDownloader *m_webData = new FileDownloader(url,0);
QByteArray webData= m_webData->downloadedData();
qDebug() << webData << "webdata";
With the code like this, webData is just returned empty. I’m not sure what I’m missing.
Thanks for any help.
↧