Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Buttons are not released on touchscreen when rotating Qt app in framebuffer.
Forum Update on Monday, May 27th 2025

Buttons are not released on touchscreen when rotating Qt app in framebuffer.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 99 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Piotrrr
    wrote on last edited by
    #1

    Hello.

    I have a strange problem with touchscreen and Qt app. I have Raspberry Pi 4 connected to the official 7-inch DSI touchscreen. The screen is inverted in the case so I needed to rotate my Qt application. I run the app by:

    /home/pi/MyApp -platform linuxfb:fb=/dev/fb0:rotation=180 -plugin evdevtouch
    

    And to inverse the touchscreen in Qt I have:

    qputenv("QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS", QByteArray("/dev/input/event0:rotate=180"));
    

    At first glance everything looks fine, the screen is rotated but the touchscreen not. When I tap on the screen when the button is, it get pressed but not released and stays at the "pressed" state and if I tap on the opossite corner of the screen the button is pressed and released normally. It seems like the app interprets every tap both ways (inverted and normal). Can't figure out why is it like that and how to rotate the touchscreen properly.

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved