How to disable the windows 10 press and hold default behavior on my Qt App ?
-
Hello All,
I have a Qt application whose frontend is in angular, and backend is in Qt. Basically when I run my application on Windows 10 touch screen machine, and Press and hold, I get the context menu opened which is the default behavior for Windows 10 touch enabled machine. I have to disable this feature of windows on my Application. I got some idea to use QGuesture class Cancelpolicy, but don't know how to code it and achieve my target. Could anyone please guide me if it is correct approach, if yes, Can you please send a sample code, which disable the Press and hold default behavior ? Initially I will create a small Qt app and try to disable the Press and hold behavior.
-
Hello All,
I have a Qt application whose frontend is in angular, and backend is in Qt. Basically when I run my application on Windows 10 touch screen machine, and Press and hold, I get the context menu opened which is the default behavior for Windows 10 touch enabled machine. I have to disable this feature of windows on my Application. I got some idea to use QGuesture class Cancelpolicy, but don't know how to code it and achieve my target. Could anyone please guide me if it is correct approach, if yes, Can you please send a sample code, which disable the Press and hold default behavior ? Initially I will create a small Qt app and try to disable the Press and hold behavior.
Set the
contextMenuPolicy
on your widget