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. can I use the QTextDocument class to simplify building a web browser
Forum Updated to NodeBB v4.3 + New Features

can I use the QTextDocument class to simplify building a web browser

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 253 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.
  • A Offline
    A Offline
    AI_Messiah
    wrote on last edited by
    #1

    The reason I asked is that I need a web browser as an image. I know that the QTextDocument class can convert html to an image. Could it be possible that I could build the routines necessary to handle events. Of course I myself would have to define these myself.

    JonBJ 1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @AI_Messiah QTextDocument can process simple HTML4 and CSS 2.1. However, it cannot process modern HTML5 and CSS3 features, and it cannot process JavaScript.

      See here for what's supported: https://doc.qt.io/qt-5/richtext-html-subset.html

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

      1 Reply Last reply
      2
      • A AI_Messiah

        The reason I asked is that I need a web browser as an image. I know that the QTextDocument class can convert html to an image. Could it be possible that I could build the routines necessary to handle events. Of course I myself would have to define these myself.

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

        @AI_Messiah
        QTextDocument is going to be a fair way from processing a real web page. Can you not use QWebEnginePage if you want a web browser?

        1 Reply Last reply
        2

        • Login

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