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

Qt-interest Archive, January 2007
tabletEvent in Qt


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 using tabletEvent in Qt. <br>
&nbsp; Qt sends the tablet coordinates hiResGlobalPos() translated from
tablet coordinate to screen coordinate, makeinf it a float (qreal). Is
it possible to get untranslated coordinate (as registered by tablet
itself) along with min &amp; max value of the coordinate ? (looks Qt
has a class QTabletDeviceData which holds all the detail, and uses
scaleCoord to translate the coordinate. How can I get untranslated
coordinates &amp; the corresponding min &amp; max range for the tablet
? <br>
<br>
&nbsp;Secondly, I want to plot the QPointF returned by hiResGlobalPos() to a
QGraphicsView . The <u><a
 href="mailbox:///C%7C/Documents%20and%20Settings/abir/Application%20Data/Thunderbird/Profiles/ecolkn5a.default/Mail/Local%20Folders/Sent?number=47386964&amp;part=1.2&amp;filename=qgraphicsview.html">mapToScene</a>
</u>method takes a QPoint &amp; returns QPointF. Here my input is
QPointF, and I dont want to miss the subpixel accuracy while storing
the coordinates in the QGraphicsItem. <br>
&nbsp; how can I write that function (It is problem the scrollbars are
causing, while I want to map them to scene).<br>
<br>
Thanks<br>
abir
<pre class="moz-signature" cols="72">-- 
Abir Basak, Member IEEE
Software Engineer, Read Ink Technologies
B. Tech, IIT Kharagpur
email: <a class="moz-txt-link-abbreviated" href="mailto:abir@xxxxxxxxxxxxx";>abir@xxxxxxxxxxxxx</a>
homepage: <a class="moz-txt-link-abbreviated" href="http://www.abirbasak.com";>www.abirbasak.com</a>
</pre>
</body>
</html>

--
 [ signature omitted ]