Results 1 to 3 of 3

Thread: How to save a Qwebview as an html file

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default How to save a Qwebview as an html file

    Hi,

    I can use QWebview to display a website. Is there a way to save the webpage as a html file?

    thank you!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to save a Qwebview as an html file

    QNetworkAccessManager or QWebFrame::toHtml() if you already have it displayed in a web view.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2008
    Posts
    68

    Default Re: How to save a Qwebview as an html file

    Hello,

    Your suggestion works.

    However, it turns out that only the html file is saved. The css files and images in the same folder won't be saved. Is there any way to copy them all?

    thank you!

Similar Threads

  1. Can Qwebview load xml/xsl file?
    By richardander in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2015, 22:36
  2. QWebview not showing images
    By manojmka in forum Qt Programming
    Replies: 27
    Last Post: 16th July 2012, 23:22
  3. How to save file with QFileDialog
    By pnikolov in forum Qt Programming
    Replies: 11
    Last Post: 1st June 2012, 10:23
  4. how to create html file in memory
    By darksaga in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2007, 09:30
  5. Replies: 1
    Last Post: 18th July 2006, 12:06

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.