PDA

View Full Version : custom class for tslib



nrabara
28th April 2009, 08:35
Hi,

I am using qt embedded 4.4.

I have delima whether I need to use QMouseDriverFactory , QWSMouseHandler and QWSCalibratedMouseHandler to use tslib with Qt ?

OR
Qt manages the plugin for tslib no need for class customization?

In qt documentation it has mentioned that...
[ Custom mouse drivers can be implemented by subclassing the QWSMouseHandler class and creating a mouse driver plugin (derived from the QMouseDriverPlugin class). The default implementation of the QMouseDriverFactory class will automatically detect the plugin, loading the driver into the server application at run-time.]

also in The Tslib Mouse Driver it has mentioned

[The tslib mouse driver inherits the QWSCalibratedMouseHandler class, providing calibration and noise reduction functionality in addition to generating mouse events for devices using the Universal Touch Screen Library.]

with Regards,
Nirav

wysota
28th April 2009, 13:15
You just need to set the proper environment variable and Qt will initialize the driver for you. See the docs for reference.