Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Screen Calibration process stops events to be delivered to QML

Screen Calibration process stops events to be delivered to QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 461 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OrangePerson
    wrote on last edited by
    #1

    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?

    Regards,

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved