Qt-interest Archive, January 2007
using hiResGlobalPos
Message 1 in thread
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#3333ff">
Hi,<br>
I am modifying the Qt Scribble example code so that it can handle
tablet .<br>
So I have overridden tabletEvent.<br>
I want to use high resolution position information returned by
hiResGlobalPos, which is of type QPointF.<br>
Now, <br>
1) There is no counter part as hiResPos, like pos & globalPos. <br>
2) There is no method like mapFromGlobal which takes QPointF type.<br>
Thus I am unable to use the high resolution positional information.<br>
Can anyone give a hint how to use it? <br>
<br>
Secondly, instead of painting them in QWidget, I want to add them in a
QGraphicsView. <br>
Here also mapToScene takes a QPoint & returns QPointF, where I want
a function which takes QPointF & returns QPointF.<br>
Can it be done using some transformation matrix ? <br>
Here the function body is implemented as if it takes QPointF, and thus
changing Qt source code & recompiling is one solution. <br>
But I want a method which doesn't change the Qt source (for consistency
reason).<br>
<br>
Otherways, has anyone used hiResGlobalPos anywhere? If, how ? <br>
<br>
Looking for a solution.<br>
Thanks.<br>
abir
</body>
</html>
--
[ signature omitted ]