Qt Reference Documentation

QWSPointerCalibrationData Class Reference

The QWSPointerCalibrationData class is a container for mouse calibration data in Qt for Embedded Linux. More...

 #include <QWSPointerCalibrationData>

Public Types

enum Location { TopLeft, BottomLeft, BottomRight, TopRight, Center, LastLocation }

Public Variables

QPoint devPoints[5]
QPoint screenPoints[5]

Detailed Description

The QWSPointerCalibrationData class is a container for mouse calibration data in Qt for Embedded Linux.

Note that this class is only available in Qt for Embedded Linux.

QWSPointerCalibrationData stores device and screen coordinates in the devPoints and screenPoints variables, respectively.

A calibration program should create a QWSPointerCalibrationData object, fill the devPoints and screenPoints variables with its device and screen coordinates, and pass the object to the mouse driver using the QWSMouseHandler::calibrate() function.

See also QWSCalibratedMouseHandler and Mouse Calibration Example.

Member Type Documentation

enum QWSPointerCalibrationData::Location

This enum describes the various logical positions that can be specified by the devPoints and screenPoints variables.

ConstantValueDescription
QWSPointerCalibrationData::TopLeft0Index of the top left corner of the screen.
QWSPointerCalibrationData::BottomLeft1Index of the bottom left corner of the screen.
QWSPointerCalibrationData::BottomRight2Index of the bottom right corner of the screen.
QWSPointerCalibrationData::TopRight3Index of the top right corner of the screen.
QWSPointerCalibrationData::Center4Index of the center of the screen.
QWSPointerCalibrationData::LastLocationCenterLast index in the pointer arrays.

Member Variable Documentation

QPoint QWSPointerCalibrationData::devPoints[5]

This variable holds the raw device coordinates for each value of the Location enum.

QPoint QWSPointerCalibrationData::screenPoints[5]

This variable holds the logical screen coordinates for each value of the Location enum.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.