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

Pen drawing 1px off when setting QGraphicsItem position with setPos()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 4.6.0
    • GUI: Painting
    • None
    • macOS

    Description

      For some reason QGraphicsView draws the border of a rect (and possibly other objects) off by one to the right and bottom (see screenshot).
      It seems that sometimes this happens without zooming, but zooming a few times at factor 1.2 is the safest way to trigger the issue.

      This issue appears only on Mac OS X (tested Carbon, did not test Windows or Cocoa!).

      Attached a minimal example that triggers the bug with code comments.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            bastibense Bastian Bense
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes