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

fallback in src/gui/embedded/qmousetslib_qws.cpp causes the calibration doesn't work properly

    XMLWordPrintable

Details

    Description

      One of the change introduced into 4.4 added fallback for the un-calibrated tslib device, in src/gui/embedded/qmousetslib_qws.cpp, in void QWSTslibMouseHandlerPrivate::readMouseData()

      if (calibrated)

      { // tslib should do all the translation and filtering, so we send a // "raw" mouse event handler->QWSMouseHandler::mouseChanged(p, pressed); }

      else

      { handler->sendFiltered(p, pressed); }

      this causes a problem which can be seen on customer's hardware using the examples/qws/mousecalibration example.
      The mousecalibration example calls clearCalibration before calibrating, but after that the tslib driver handler goes to the "else" branch, so that the mouse data got from tslib is filtered by the sendFiltered function. some of the mouse data are lost after the filtering, which causes the calibration tool not to work properly. (the calibration tool needs raw data instead of the filtered one. maybe we need to add more API to avoid this conflict.)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes