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

Tablet Event hi res position error on dual-monitor setups

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.3
    • QPA: Windows
    • None
    • Windows 7 with one monitor @ 1600x1200 and the second monitor being a Wacom Cintiq @ 1280x1024
    • Windows

      On Windows, the tablet event's position is scaled relative to the rect returned by QApplication::desktop()->geometry(), however, when a tablet such as the Wacom Cintiq is used as a secondary monitor, it has a different resolution than the first monitor. This causes an error in scaling the coords since the desktop area is reported to be different than the actual dimensions of the tablet screen. I'm not sure if this same error exists on other platforms as well.

      The relevant lines are near qapplication_win.cpp:3492 (inside bool QETWidget::translateTabletEvent(...))

      QRect desktopArea = QApplication::desktop()->geometry();
      QPointF hiResGlobal = currentTabletPointer.scaleCoord(ptNew.x, ptNew.y, desktopArea.left(),
                                                                    desktopArea.width(), desktopArea.top(),
                                                                    desktopArea.height());
      

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

            kleint Friedemann Kleint
            gilhagi Gil Hagi
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes