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

QGraphicsItem disappears when QGraphicsView transform has large scale factor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.4
    • Widgets: GraphicsView
    • None
    • Ubuntu 13.10

    Description

      Under certain circumstances, I have found that QGraphicsPathItems are not drawn when I expect them to be. This occurs when the scale factor of the QGraphicsView transform is large (~1e8) on at least one axis, but also seems to be influenced by the size of the QGraphicsView as well. I have attached an example PyQt script (looks exactly the same under PySide) demonstrating the problem. The view shows three QGraphicsPathItems, two of which disappear as they move toward the edge of the view.

      I would very much appreciate any suggestions for working around this problem--it has come up in a plotting library that I develop and I would like to be able to distribute a fix.

      Attachments

        1. GraphTest.py
          1 kB
        2. GraphTest5.py
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            lcampagn Luke
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes