Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. SVG file in qhelpgenerator / assistant
Forum Updated to NodeBB v4.3 + New Features

SVG file in qhelpgenerator / assistant

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
23 Posts 5 Posters 3.3k 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.
  • A Offline
    A Offline
    Albert-qt
    wrote on last edited by
    #7

    @SGaist said in SVG file in qhelpgenerator / assistant:

    check whether it allows the SVG to be loaded.

    the question is how can I check this?

    The small project I used:

    The index.qhp file:

    <?xml version="1.0" encoding="UTF-8"?>
    <QtHelpProject version="1.0">
      <namespace>org.doxygen.Project</namespace>
      <virtualFolder>doc</virtualFolder>
      <filterSection>
        <filterAttribute>doxygen</filterAttribute>
        <toc>
          <section title="My Project" ref="index.html">
            <section title="Main" ref="index.html">
            </section>
          </section>
        </toc>
        <keywords>
        </keywords>
        <files>
          <file>aa.svg</file>
          <file>index.html</file>
        </files>
      </filterSection>
    </QtHelpProject>
    

    the index.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=11"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>My Project: Main</title>
    <link href="tabs.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
    Generated <img src="aa.svg" alt="default"/>
    </body>
    </html>
    

    The aa.svg:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=11"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>My Project: Main</title>
    <link href="tabs.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
    Generated <img src="aa.svg" alt="default"/>
    </body>
    </html>
    

    The used commands:

    D:\Qt\qt-everywhere-src-5.14.0\install_nmake_2017_64\bin\qhelpgenerator.exe index.qhp -o "My Project.qch"
    D:\Qt\qt-everywhere-src-5.14.0\install_nmake_2017_64\bin\assistant.exe
    

    The result is in the assistant:

    61e6c30c-3292-4e66-abbe-dda12df43da8-image.png

    so we can see that the image is not displayed, the image should look like:

    fd7c5049-b888-4d39-9c93-4cd622584744-image.png

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

      Just to be sure, if you use a .png, does it work ?

      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
      • A Offline
        A Offline
        Albert-qt
        wrote on last edited by
        #9

        Yes with a png file it does work.

        index.html

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=11"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <title>My Project: Main</title>
        <link href="tabs.css" rel="stylesheet" type="text/css"/>
        </head>
        <body>
        Generated <img src="aa.svg" alt="default"/>
        <br>
        Generated <img src="aa.png" alt="default"/>
        </body>
        </html>
        

        index.qhp

        <?xml version="1.0" encoding="UTF-8"?>
        <QtHelpProject version="1.0">
          <namespace>org.doxygen.Project</namespace>
          <virtualFolder>doc</virtualFolder>
          <filterSection>
            <filterAttribute>doxygen</filterAttribute>
            <toc>
              <section title="My Project" ref="index.html">
                <section title="Main" ref="index.html">
                </section>
              </section>
            </toc>
            <keywords>
            </keywords>
            <files>
              <file>aa.png</file>
              <file>aa.svg</file>
              <file>index.html</file>
            </files>
          </filterSection>
        </QtHelpProject>
        

        The png file: aa.png

        The result:

        81d1d8a5-2707-40c5-b4f2-adb635fa0b1c-image.png

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

          Can you show the qdoc configuration file you are using ?

          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
          • A Offline
            A Offline
            Albert-qt
            wrote on last edited by Albert-qt
            #11

            I don't have a qdoc configuration file or maybe there is one in the Qt tree that I'm not aware of.
            Note that I'm not creating the qhp file through a Qt program but it is created by means of another program (doxygen)
            (Slow reply, can only post every 600 seconds, as I have not enough reputation yet)

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

              By the way, which version of Qt are you using ?

              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
              • A Offline
                A Offline
                Albert-qt
                wrote on last edited by
                #13

                The used version qt-everywhere-src-5.14.0

                As a reference the used configure line:

                ..\qt-everywhere-src-5.14.0_2017_64\configure.bat -opensource -release -confirm-license --shared=no --static=yes -prefix D:\Qt\qt-everywhere-src-5.14.0\install_nmake_2017_64 -nomake tests -nomake examples -sanitize thread
                
                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Albert-qt
                  wrote on last edited by
                  #14

                  I just tried with the version 5.15.2 but still no svg file shown (in other words same result as with 5.14.0)

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

                    What if you use on of the pre-built version ?

                    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
                    • A Offline
                      A Offline
                      Albert-qt
                      wrote on last edited by Albert-qt
                      #16

                      Is there a quick possibility to get the qhelpgenerator and the assistant (for 5.15.2 or another version)?
                      I found hhttps://www.qt.io/download-open-source but it looks like to take ages...
                      (I'll try to keep downloading ...)

                      Edit: The fact that it took "ages" was because I used everything of the 5.15.2 version, not just the e.g. msvc2019_64 part.This give quite a reduction in used disk space (and in installation time, though for just 2 needed executables it still is quite long).

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Albert-qt
                        wrote on last edited by
                        #17

                        I installed the 5.15.2 version and found the

                        D:\Qt\5.15.2\5.15.2\mingw81_32\bin\qhelpgenerator.exe
                        D:\Qt\5.15.2\5.15.2\mingw81_64\bin\qhelpgenerator.exe
                        D:\Qt\5.15.2\5.15.2\msvc2015_64\bin\qhelpgenerator.exe
                        D:\Qt\5.15.2\5.15.2\msvc2019\bin\qhelpgenerator.exe
                        D:\Qt\5.15.2\5.15.2\msvc2019_64\bin\qhelpgenerator.exe
                        

                        and

                        D:\Qt\5.15.2\5.15.2\mingw81_32\bin\assistant.exe
                        D:\Qt\5.15.2\5.15.2\mingw81_64\bin\assistant.exe
                        D:\Qt\5.15.2\5.15.2\msvc2015_64\bin\assistant.exe
                        D:\Qt\5.15.2\5.15.2\msvc2019\bin\assistant.exe
                        D:\Qt\5.15.2\5.15.2\msvc2019_64\bin\assistant.exe
                        

                        I used the msvc2019_64 version and this does work (I also tried msvc2015_64a and this works as well) .

                        It is still very interesting to know why my own build didn't work, so I can build my own version when necessary.

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          ferdymercury
                          wrote on last edited by ferdymercury
                          #18

                          I am experiencing the same issue. The SVG file is created by doxygen + qhelpgenerator, and then imported into QtCreator via Options, Help, Add qch file.

                          When pressing F1 on a function, it opens the help, but the dependency graphs (svg) are not properly shown in QtCreator 5.0 with Ubuntu19. Should I maybe open a bug report?

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

                            Sorry I lost track of this one.

                            Yes you can. Even better if you can provide a minimal set of files and instructions to trigger this on the bug report.

                            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
                            • F Offline
                              F Offline
                              ferdymercury
                              wrote on last edited by ferdymercury
                              #20

                              Thanks, I created https://bugreports.qt.io/browse/QTCREATORBUG-26272

                              There is an attachment in case you want to reproduce yourself.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                ScumCoder
                                wrote on last edited by
                                #21

                                It's been 2.5 years, and there's still zero reaction to this issue.
                                I still can't browse qch help containing svg files:

                                qt.png

                                Maybe it's me who is doing something wrong here? No way me and OP are the only two people who care about this.

                                Christian EhrlicherC 1 Reply Last reply
                                0
                                • S ScumCoder

                                  It's been 2.5 years, and there's still zero reaction to this issue.
                                  I still can't browse qch help containing svg files:

                                  qt.png

                                  Maybe it's me who is doing something wrong here? No way me and OP are the only two people who care about this.

                                  Christian EhrlicherC Offline
                                  Christian EhrlicherC Offline
                                  Christian Ehrlicher
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #22

                                  The bug report is wrong. It's not a QtCreator issue but QTexEdit (?) which does not support it. So the correct persons are not aware of the problem.

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

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    ScumCoder
                                    wrote on last edited by
                                    #23

                                    I finally managed to get proper help back again, so I'm sharing the solution juuuust in case some other lost soul comes here in search of an answer.

                                    1. Clone the QtCreator source code.
                                    2. Checkout version v7.0.2 (this is the last version that supports Qt5).
                                    3. Build it against Qt5.
                                    4. Select "QtWebEngine" as the help renderer.

                                    Not only did rolling back to v7.0.2 + Qt5 give me proper help, but it also fixed a whole plethora of other annoying bugs.
                                    And even if there was any actual functionality added since that version, I didn't notice it, so I didn't even lose anything.

                                    Снимок экрана_2025-07-06_20-31-22.png

                                    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