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. Qt Gui Supported HTML Subset
Forum Updated to NodeBB v4.3 + New Features

Qt Gui Supported HTML Subset

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 916 Views 3 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.
  • JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by
    #1

    I note from http://doc.qt.io/qt-5/richtext-html-subset.html, which is used by QTextDocument itself plus widgets:

    specified using a subset of HTML 4 markup

    When is this going to hit the 21st century and input/output HTML 5, please? :)

    JKSHJ 1 Reply Last reply
    1
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Use QWebEngineView when you need a full-blown html browser. Don't know why it should be implemented twice...

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      JonBJ 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        Use QWebEngineView when you need a full-blown html browser. Don't know why it should be implemented twice...

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        If you see my thread https://forum.qt.io/topic/91015/export-qtableview-to-pdf, you'll see I'm trying to construct HTML for a QTableView (in this particular instance).

        I'm being recommended to do that via QTextDocument structured document, which makes sense. QTextDocument::toHtml() produces HTML 4. I'd like to put that into a QWebEngineView, which (I think you're implying?) uses HTML 5. So maybe the two HTML standards will be sufficiently compatible, maybe they won't...

        I'd still like to be able to import/export QTextDocument from/to HTML 5 rather than 4, for other purposes.

        I didn't mean it as a slight against Qt (hence the :) in my question)....

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Since QWebEngineView also understands HTML4 (since it's a complete browser engine) I don't see a problem here.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          JonBJ 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            Since QWebEngineView also understands HTML4 (since it's a complete browser engine) I don't see a problem here.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Christian-Ehrlicher
            Ah, I see, I didn't know that.

            I would have liked to be able to get QTextDocument to output HTML 5 so I could take it elsewhere outside the Qt environment. I would have liked it to be able to parse HTML 5 input, as if I write HTML I do it for HTML 5 without knowing whether it will or will not work for HTML 4. That's all. I'm not going to die over it at present! If the answer is that Qt richtext subset stuff is going to stick at HTML 4, not 5, then at least I know.

            No offence intended, I think Qt is just great!

            mrjjM 1 Reply Last reply
            0
            • JonBJ JonB

              @Christian-Ehrlicher
              Ah, I see, I didn't know that.

              I would have liked to be able to get QTextDocument to output HTML 5 so I could take it elsewhere outside the Qt environment. I would have liked it to be able to parse HTML 5 input, as if I write HTML I do it for HTML 5 without knowing whether it will or will not work for HTML 4. That's all. I'm not going to die over it at present! If the answer is that Qt richtext subset stuff is going to stick at HTML 4, not 5, then at least I know.

              No offence intended, I think Qt is just great!

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JonB
              Hi. Its only meant to be RichText ( like good old ms RTF) not full html.
              To allow for Font styles and light formatting.

              1 Reply Last reply
              4
              • JonBJ JonB

                I note from http://doc.qt.io/qt-5/richtext-html-subset.html, which is used by QTextDocument itself plus widgets:

                specified using a subset of HTML 4 markup

                When is this going to hit the 21st century and input/output HTML 5, please? :)

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                @JonB said in Qt Gui Supported HTML Subset:

                If the answer is that Qt richtext subset stuff is going to stick at HTML 4, not 5, then at least I know.

                Yeah, I don't foresee the Qt Project developing an in-house HTML 5 renderer anytime soon.

                Qt WebKit was dropped because it takes way too much resources to maintain a compliant HTML renderer. Qt WebEngine was chosen as a replacement because it's only a (relatively) thin wrapper around Chromium -- this takes a lot of burden off the Qt Project.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                3

                • Login

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