Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Generating .html files from qt

Generating .html files from qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hey all,

    I have made a lot of progress with my web browser, and I was wondering if there was a way to generate .html files in qt. I would like all the 'history' and 'bookmarks' to be written to a .html file that is stored on the computer. when I click the view history/bookmarks button, I want to load the history.html/bookmarks.html files into a webview.

    ok so my question summarized:

    1. create a .html file on local computer.
    2. constantly write search history to file.
    3. view file in QWebView.

    as a secondary, more advanced question: is it possible to generate the 'bookmarks.html' on a server so that your bookmarks are accessible from any computer.

    Thanks for your help!

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Atleast according to my knowledge there is no automated way of generating the html files. You need write manually(hand-code) using file operations or XML Document structure. You need to hand-code everything to look like HTML file.

      There is no direct way to dump the bookmarks.html file on to server. You need to write you own way of transferring the file to right location on the server.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nicky j
        wrote on last edited by
        #3

        Ok, what would a code to generate html files look like?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          Have a look at QTextDocument::toHtml


          Declaration of (Platform) independence.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nicky j
            wrote on last edited by
            #5

            Thanks a ton! Ill get on that right away!

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved