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

Allow mapping of floats in QGraphicsScene::mapToScene

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Widgets: GraphicsView
    • None
    • All

      The function QGraphicsScene::mapToScene is used to map screen coordinates to the coordinates in the scene, so it seems fine, that it only allows integer coordinates, because the mouse and windows are using integers.

      BUT if your are using TabletEvents, you get subpixel precision (floats) for your input and at the moment it is not possible to transform such a position to scene coordinates.

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

            bibr Andreas Aardal Hanssen
            gerum100 A A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes