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. Touchscreen right click in QtWidget app
Forum Updated to NodeBB v4.3 + New Features

Touchscreen right click in QtWidget app

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 310 Views 2 Watching
  • 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.
  • Seb TurS Offline
    Seb TurS Offline
    Seb Tur
    wrote on last edited by
    #1

    I deployed Ubuntu 22.04 to a rpi4 connected to dell touchscreen.
    Standard Ubuntu uses Gnome.
    I created my Qt Widgets app where I add a context menu displayed when user right clicks on a QTableView.

    In the Gnome apps like Files or Mines a long press on touchscreen is treated (rightfully) as a right click.

    In my Qt app long pressing does nothing.

    Any suggestions? My worst case scenario would be a need to implement an event filter that would manually count the time between pressed and released events and emulating right clicking this way but it is hard to believe I am the first one with this problem so maybe there's is some trigger setting
    to be switched?

    Pl45m4P 1 Reply Last reply
    0
    • Seb TurS Seb Tur

      I deployed Ubuntu 22.04 to a rpi4 connected to dell touchscreen.
      Standard Ubuntu uses Gnome.
      I created my Qt Widgets app where I add a context menu displayed when user right clicks on a QTableView.

      In the Gnome apps like Files or Mines a long press on touchscreen is treated (rightfully) as a right click.

      In my Qt app long pressing does nothing.

      Any suggestions? My worst case scenario would be a need to implement an event filter that would manually count the time between pressed and released events and emulating right clicking this way but it is hard to believe I am the first one with this problem so maybe there's is some trigger setting
      to be switched?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Seb-Tur

      What Qt version are you using? Update if possible.
      Sounds like this bug.
      Seems to be fixed here


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      Seb TurS 1 Reply Last reply
      1
      • Pl45m4P Pl45m4

        @Seb-Tur

        What Qt version are you using? Update if possible.
        Sounds like this bug.
        Seems to be fixed here

        Seb TurS Offline
        Seb TurS Offline
        Seb Tur
        wrote on last edited by
        #3

        @Pl45m4
        I use qt 5.15.3 and I don;t use QML/QtQuic

        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