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

fillRect() and drawRect() fail on QPrinter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 4.5.3
    • 4.5.1
    • GUI: Painting
    • None

    Description

      Painter does not draw the correct rectangles when drawRect() and fillRect() is called.
      This occures when a QPrinter is used at least two times for painting and translate() function is also called on the painter.
      First time everything is OK, but second time fillRect's and drawRect's result are shifted back (against the translate() function), and their area is not filled.

      It occures only when fillRect() is called. If this function is not called, result of drawRect() seems to be OK.

      Attachments

        1. bug_drawRect.C
          1 kB
        2. print.ps
          6 kB
        3. print2.ps
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            rajnaim Mark Rajnai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes