[Interest] Qt Simulator
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Sun Apr 2 23:19:26 CEST 2017
Il 02/04/2017 21:17, Russell, Matthew ha scritto:
> Is there an easy way I can test gestures with a Qt app? Right now I'm stuck editing my code on a Linux box, pushing it to a build server to be packaged into an executable, and then transferring it to a real Surface for installation. Every test, typo, math error, etc costs 10 minutes.
Does your application run on your host computer? A quick'n'dirty way
could be to use TUIO [1], for which there's an input plugin shipped with Qt.
Steps:
0) Download a TUIO client on a touch device (e.g. on an Android phone or
tablet -- it's on the App Store; no idea about other devices)
1) Run your application passing "-plugin TuioTouch" to it
2) Run the TUIO client on your touch device and point it to the running
app (typically: specify IP/port)
Now you can send touch events / gestures from the device to the application.
Note that pinch and similar gestures are recognized by Qt, but also
synthesized for an application by certain operating systems (no idea
about Windows on a Surface, but it smells very likely. You'd need to
check the code in Qt.)
In both cases you should be aware that there may be differences between
the gesture sent through "emulation" and gestures as recognized on the
real device, so you can't escape real testing.
HTH,
[1] http://www.tuio.org/
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170402/722cced1/attachment.bin>
More information about the Interest
mailing list