Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1331

QGraphicsView's mapToScene() doesn't work with QPointF positions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.0
    • PySide
    • None
    • Windows 10, Python 3.8.3, pyside2-5.15.0
    • All

    Description

      QGraphicsView's mapToScene method does not work with QPointF coordinates. I am trying to add a drawing feature to a QGraphicsView for making handwritten notes using a stylus pen (-> tabletEvent ). To draw accurate lines, the event.posF() is required, but I cannot map it to the scene which I have to since scrolling and zooming is possible.

       

      I haven't found a workaround for Python for this issue yet, if someone has one, it would be much appreciated.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            niagarer Leon Thomm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes