View Full Version : How to get information from a website?

25th January 2014, 00:24
Hey! I am currently trying to create a web browser using Qt Creator, just as a fun little project, and to learn a bit more about Qt and the web. Everything is working fine but I just want to download the URL and Favicon of the website entered into the QWebView. So far it seems like I would need to use QNetworkAccessManager, but I have no idea how to use that :/

Can anyone tell me how to do this?

26th January 2014, 05:52
Nvm, I think I figured it out, I now can get the website URL and Icon, the only problem is setting the url bar's text to the webpages url at the right time. Atm it just puts in the old URL, does anyone know how I would sleep the code for about 2 seconds without using a thread?

26th January 2014, 06:06
What URL bar? QWebView does not have one so this must be something of your own construction and therefore entirely controlled by you.