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

QGraphicsView::render painting QTableView to QPdfWriter results in overlapping texts

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      In a case where a QTableView is displayed inside a QGraphicsView, calling QGraphicsView::render with an attempt to paint to a QPdfWriter would result in the QTableView not being correctly drawn. The actual body of the table is mostly okay but the header texts would overlap each other making some of the text unreadable or appear entirely missing.

      In contrast, painting to a QImage or a QPrinter works without such issues.

      Steps to reproduce:

      1. Run the attached project
      2. Click the button
      3. Check the build directory for the output pdf

        Attachments

        1. qtbug79437_actual.pdf
          11 kB
        2. qtbug79437_expected.PNG
          qtbug79437_expected.PNG
          4 kB
        3. qtbug79437.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            johnlayt John Layt
            Reporter:
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes