Touchscreen right click in QtWidget app
-
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? -
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? -