Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

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>
&nbsp; 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>
&nbsp; 1) There is no counter part as hiResPos, like pos &amp; globalPos. <br>
&nbsp; 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,&nbsp; instead of painting them in QWidget, I want to add them in a
QGraphicsView. <br>
Here also mapToScene takes a QPoint &amp; returns QPointF, where I want
a function which takes QPointF &amp; returns QPointF.<br>
Can it be done using some transformation matrix ? <br>
Here the function body is implemented as if it takes QPointF, and&nbsp; thus
changing Qt source code &amp; 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 ]