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

QPainter::drawRect draws diagonal line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.5
    • GUI: Painting
    • None
    • openSuse 13.1

      QPainter::drawRectangle (on a QImage) draws wrong lines (diagonal Line) when given coordinates lie outside of the image's size.
      E.g.
      QImage(114, 49)
      p.drawRect(-404, -22, 1014, 93);
      results in a line which is drawn from somewhere left bottom to somewhere right top.

      see attached program and wrong image.

      Note: This does not occur with Qt5.3.0 beta

        1. img.cxx
          0.3 kB
          Martin Koller
        2. img.png
          0.3 kB
          Martin Koller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            mkoller Martin Koller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes