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

Generating PDF from HTML tables with borders gives bad result if QT_NO_CSSPARSER is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.8.2, 4.8.3, 4.8.4, 4.8.5
    • None
    • Tested on Qt4.8.2 on Windows 7 and Windows CE 6.0

    Description

      When generating PDF from HTML if QT_NO_CSSPARSER is set the borders are incorrectly drawn (very wide). As far as I can tell this is because the QRectF drawn as border are initialised with QRectF(x,y,right_x,bottom_y) instead of QRectF(x,y,width,height). Attached is a patch which fixed this for me using Qt4.8.2, but the code is still the same in Qt4.8.6. Disclaimer: I have not tested this for other than HTML->PDF generation. Disclaimer2: I'm not used to patches, but I hope it works.

      Attachments

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              sbindzau Stefan Bindzau
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes