Results 1 to 3 of 3

Thread: How to get information from a website?

  1. #1
    Join Date
    Jan 2014
    Posts
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default How to get information from a website?

    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?

  2. #2
    Join Date
    Jan 2014
    Posts
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to get information from a website?

    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?

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to get information from a website?

    What URL bar? QWebView does not have one so this must be something of your own construction and therefore entirely controlled by you.

Similar Threads

  1. Create a Website
    By Trader in forum Newbie
    Replies: 8
    Last Post: 10th July 2012, 08:27
  2. get favicon of website
    By pussbb in forum Qt Programming
    Replies: 4
    Last Post: 26th May 2011, 15:12
  3. Puzzle Example on Qt's website
    By yakuzan in forum Newbie
    Replies: 1
    Last Post: 27th May 2010, 06:43
  4. Can QWebPage see changes in a website
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 16th August 2009, 00:23
  5. Replies: 0
    Last Post: 3rd June 2009, 05:26

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.