Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 11666] New: Touchscreen with (Py)Qt5 should use tslib instead of evdev
Date: Tue, 05 Feb 2019 15:45:58 +0000	[thread overview]
Message-ID: <bug-11666-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=11666

            Bug ID: 11666
           Summary: Touchscreen with (Py)Qt5 should use tslib instead of
                    evdev
           Product: buildroot
           Version: 2018.02.9
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: tistolz at outlook.de
                CC: buildroot at uclibc.org
  Target Milestone: ---

Created attachment 7946
  --> https://bugs.busybox.net/attachment.cgi?id=7946&action=edit
PyQt5 test application

Hello,

I compiled Qt5 with Tslib support (BR2_PACKAGE_QT5BASE_TSLIB=y), and
ts_calibrate and ts_test work properly. I also have a
/usr/lib/qt/plugins/generic/libqtslibplugin.so, so the compilation part seems
to have worked.

I created a tiny PyQt5 test application (see attachment), which creates 4
buttons. When I run this qt5test.py, the y-axis of the touchscreen appears
inverted (x-axis ok).

I've read
http://lists.busybox.net/pipermail/buildroot/2015-November/143571.html and from
that it seems that my PyQt5 application uses evdev instead of tslib for input.
I can use an extra environment variable:

~> QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS='rotate=180' ./qt5test.py

Now the touchscreen is indeed rotated by 180 degrees, i.e. the x-axis is
inverted while the y-axis is ok. Further trials with 'rotate=90' or
'rotate=270' changed the touchscreen orientation accordingly, but none is
usable to cancel the inversion of the y-axis.

What strikes me is that the above is an **evdev** option, despite the fact that
I want to use Qt5 with **tslib**. I've read about a "-plugin tslib"
command-line option, but that changes nothing with my Python script.

So I'm going to need either a way to switch to tslib (preferred), or a
QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS value that just flips the y-axis.^

Any help or info will be really appreciated.

Best regards,
Tibor Stolz

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2019-02-05 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-05 15:45 bugzilla at busybox.net [this message]
2019-02-07  9:37 ` [Buildroot] [Bug 11666] Touchscreen with (Py)Qt5 should use tslib instead of evdev bugzilla at busybox.net

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=bug-11666-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox