Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122735

SVG file in qhelpgenerator-doxygen not rendered by QTextEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2
    • Tools: Assistant
    • None
    • Ubuntu 19
    • Linux/X11

    Description

      This issue has been discussed in https://forum.qt.io/topic/127822/svg-file-in-qhelpgenerator-assistant

      In a Doxyfile of one of my C++ projects, I activate:

      • GENERATE_QHP YES
      • QCH_FILE "drtp.qch"
      • QHP_NAMESPACE org.doxygen.drtp.Project
      • DOT_IMAGE_FORMAT svg
      • QHG_LOCATION /opt/Qt5.12.0/5.12.0/gcc_64/bin/qhelpgenerator

      My qhelpgenerator version is

      Qt Help Generator version 1.0 (Qt 5.12.0)

       

      After building the documentation, I upload the generated .qch file to QtCreator 5.0.0 via Tools, Options, Help, Documentation, Add.

      Then I go on the left pane, click on help, and open the project help. Everything is rendered correctly, except the SVG files, that appear with this error:

      <p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p>

      Here a screenshot.

      To reproduce yourself, just use the attachment and add it via Tools, Options, Help, Documentation, and then open the Help pane and navigate to any .cpp file.

      I guess that the part that Qtcreator does not cope well is:

      <tr><td><iframe scrolling="no" frameborder="0" src="inherit_graph_0.svg" width="142" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></td></tr>

      Attachments

        1. qt.png
          qt.png
          516 kB
        2. image-2022-03-07-18-51-55-537.png
          image-2022-03-07-18-51-55-537.png
          110 kB
        3. image-2021-09-17-01-20-07-769.png
          image-2021-09-17-01-20-07-769.png
          85 kB
        4. drtp.qch
          484 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            fmercury Ferdy Mercury
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes