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

QTextDocument can not print certain html element.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2, 6.2.3
    • None

    Description

      if QTextDocument's html contain html link elment , the whole page can not render to printer

       

      if 

      <link href="" rel="stylesheet"> 

      in the html body .the entire html can not rendered in printer.

      result in a whole blank page.

      move the link into the html head section. can eliminated this problem.

      see attached example.

      Attachments

        1. image-2022-03-12-23-40-19-503.png
          3 kB
          yifang xiao
        2. image-2022-03-12-23-42-23-544.png
          6 kB
          yifang xiao
        3. screenshot-1.png
          62 kB
          yifang xiao
        4. untitled.7z
          4 kB
          yifang xiao

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              johnlayt John Layt
              xiaoyifang yifang xiao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes