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

Allow mapping of floats in QGraphicsScene::mapToScene

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Platform/s:
      All

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes