Qt World Summit: Register Today!

Screen Calibration process stops events to be delivered to QML

  • Hi All,
    I am using Qt 4.8.

    I am trying to calibrate screen of a device by using QWSServer::mouseHandler()->calibrate(&data);
    I referred to the code from " http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-example.html " which make use of widgets and dialog to calibrate the screen. The dialog is used to capture the mouse event and then the position is mapped to the device coordinates. This example works for me.

    However, what I wanted to do is to use QML instead of dialog to capture these mouse events and pass the screen position data to the C++ side and calibrate the screen.
    Before starting the process of calibration, I am calling QWSServer::mouseHandler()->clearCalibration(); which is standard process.

    This causes a problem. On non calibrated screen, QML doesnt receive mouse events i.e. touch screen events.

    Could anyone please help me in creating a QML application which can be used to calibrate the screen?


Log in to reply