From: David Picard <davepiq@yahoo.fr>
To: buildroot@busybox.net
Subject: [Buildroot] Qt5 and touchscreen calibration
Date: Mon, 2 Nov 2015 08:53:51 +0100 [thread overview]
Message-ID: <5637168F.7000400@yahoo.fr> (raw)
In-Reply-To: <20151030211218.6c801173@gmx.net>
Hello,
The 'rotate' trick did it.
Thanks,
David.
Le 30/10/2015 21:12, Peter Seiderer a ?crit :
> Hello David, Arnout,
>
> On Fri, 30 Oct 2015 18:23:02 +0100, Arnout Vandecappelle <arnout@mind.be> wrote:
>
>> On 30-10-15 17:55, David Picard wrote:
>>> Hello,
>>>
>>>
>>> I got my touchscreen working perfectly with ts_test. Many thanks to Peter
>>> Seiderer !
>>>
>>> But the thing is that my Qt5 app does not grab the touchscreen properly : x and
>>> y axis are switched. I did enable the tslib option under Qt5 in menuconfig. Is
>
> The following
>
> $ QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS='rotate=270' /usr/lib/qt/examples/touch/fingerpaint/fingerpaint -platform
> linuxfb:fb=/dev/fb1
>
> worked for me to get x/y right, see [1] for Qt5 parameters.
>
> Regards,
> Peter
>
> [1] http://doc.qt.io/qt-5/embedded-linux.html
>
>>> there some magic command line option to pass to the application ? I tried this :
>>>
>>> $ myapp -platform linuxfb:fb=/dev/fb1 -plugin tslib
>>> ts_open() failed (No such file or directory)
>>
>> Did you export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0 (but
>> replace with the correct device of course)?
>>
>> Or hang on, for tslib it's TSLIB_TSDEVICE that you have to set.
>>
>>
>> Regards,
>> Arnout
>>
>>>
>>>>>> the app shows up, but TS still messed up.
>>>
>>> My config :
>>> - Raspberry Pi B+ and Adafruit 2.8" PiTFT w/ cap touch.
>>> - Buildroot 2015.08.1
>>> - Qt5 w/ tslib support enabled (BR2_PACKAGE_QT5BASE_TSLIB=y).
>>>
>>>
>>> Regards,
>>> David.
>>>
>>>
>>> _______________________________________________
>>> buildroot mailing list
>>> buildroot at busybox.net
>>> http://lists.busybox.net/mailman/listinfo/buildroot
>>>
>>
>>
>
prev parent reply other threads:[~2015-11-02 7:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 16:55 [Buildroot] Qt5 and touchscreen calibration David Picard
2015-10-30 17:23 ` Arnout Vandecappelle
2015-10-30 20:12 ` Peter Seiderer
2015-11-02 7:53 ` David Picard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5637168F.7000400@yahoo.fr \
--to=davepiq@yahoo.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.