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. How to force Qt Assistant use Qt WebKit or Qt WebEngine if it possible
QtWS25 Last Chance

How to force Qt Assistant use Qt WebKit or Qt WebEngine if it possible

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 840 Views
  • 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.
  • M Offline
    M Offline
    Maxim Skvortsov
    wrote on last edited by Maxim Skvortsov
    #1

    I am using Qt Assistant to show my custom help. I have Qt 5.7 installed. And there are 2 way to run assistant: from usr/bin and from Qt 5.7 bin directory. In 1st case assitant's "About" says they browser is Qt WebKit 5.6.1 in 2nd case the browser is QTextBrowser. But it is for me. I heard that Qt WebKit was removed. Was it in 5.7? And is there any other browser for assistant now(5.7-5.11)? The reason why i want to use Qt WebKit or WebEngine is that i am converting my help files from Markdown to HTML5 using pandoc with css. QTextBrowser just ignoring my css :(

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QtWebkit was deprecated in 5.6 and removed in 5.7 however you can still build it. Note that there's @Konstantin-Tokarev reboot that will be of interest.

      In any case, you will have to rebuild Designer yourself to use QtWebkit.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        QtWebkit was deprecated in 5.6 and removed in 5.7 however you can still build it. Note that there's @Konstantin-Tokarev reboot that will be of interest.

        In any case, you will have to rebuild Designer yourself to use QtWebkit.

        V Offline
        V Offline
        vanegas
        wrote on last edited by vanegas
        #3

        @SGaist What is the current status of Qt Assistant's browser?

        I opened Qt assistant in Qt 5.13 and it is still using QTextBrowser and not providing HTML5 support for my documentation.

        Is there an update in Qt 5.14 or Qt 5.15? I would expect Qt WebEngine to be enabled in Qt Assistant by now.

        Thank you for sharing your Qt knowledge. :)

        B 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #4

          AFAIK, Assistant is pre-built using QTextBrowser so it's lighter weight.

          If you want to use webengine as backend you need to rebuild assistant yourself and ensure you have the QtWebEngine module available.

          I misread the .pro file, the detection is done on the webkitwidgets module. So no support currently for webengine.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • V vanegas

            @SGaist What is the current status of Qt Assistant's browser?

            I opened Qt assistant in Qt 5.13 and it is still using QTextBrowser and not providing HTML5 support for my documentation.

            Is there an update in Qt 5.14 or Qt 5.15? I would expect Qt WebEngine to be enabled in Qt Assistant by now.

            Thank you for sharing your Qt knowledge. :)

            B Offline
            B Offline
            Bonnie
            wrote on last edited by Bonnie
            #5

            @vanegas
            From the source (qttools/src/assistant/assistant/assistant.pro) of 5.15.0

            qtHaveModule(webkitwidgets):!contains(QT_CONFIG, static) {
                BROWSER = qtwebkit
            } else {
                BROWSER = qtextbrowser
            }
            

            You can see that the assistant still doesn't support WebEngine.

            SGaistS 1 Reply Last reply
            1
            • B Bonnie

              @vanegas
              From the source (qttools/src/assistant/assistant/assistant.pro) of 5.15.0

              qtHaveModule(webkitwidgets):!contains(QT_CONFIG, static) {
                  BROWSER = qtwebkit
              } else {
                  BROWSER = qtextbrowser
              }
              

              You can see that the assistant still doesn't support WebEngine.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Bonnie said in How to force Qt Assistant use Qt WebKit or Qt WebEngine if it possible:

              @vanegas
              From the source (qttools/src/assistant/assistant/assistant.pro) of 5.15.0

              qtHaveModule(webkitwidgets):!contains(QT_CONFIG, static) {
                  BROWSER = qtwebkit
              } else {
                  BROWSER = qtextbrowser
              }
              

              You can see that the assistant still doesn't support WebEngine.

              Right ! I misread the .pro file.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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