If I understood your problem then a stupid solution is to keep a const QString of your initial url ("http://finance.yahoo.com/q?s="), then add a private QString variable that represents the retrieved data to be appended to the initial url.
Create a function that it's purpose is to retrieve the data you want from the table, let it be the 1st thing to be called in the slot getData(). Create a temp QString that will hold the new url and then pass it to the request.
Or the moment you insert the new value to the table create the string with the new url, store it as a private member (let's call it m_finalUrlStr) and then in getData(), request.setUrl(QUrl(m_finalUrlStr));




Reply With Quote

Bookmarks