Home > Mobile >  How long press button on Windows tablet
How long press button on Windows tablet

Time:03-20

on the tablet, long press the screen will bring up a menu, the menu is when a mouse out of the right mouse button,

the following is not a mouse operations ,

Now I want to grow in QPushButton press, but tablet appears on a rectangular box, seems to be to the appearance of the popup menu, how to don't let this box pops up;

The other, when I set setAutoRepeat (true), the left mouse button pressed, function is normal, but on the tablet touch screen directly live not put function is abnormal, the rectangular box will pop up the above said, how to do ah

CodePudding user response:

This application should not long press pop-up right-click menu is the system level,
Can try to use the hooks into the drive long press the screen capture events and then block pop-up menu (pure speculation)

CodePudding user response:

reference 1st floor qq214517703 response:
this application should not long press pop-up right-click menu is the system level,
Can try to use the hooks into the driver then long press the screen capture events to block pop-up menu (pure speculation)

Well, I think that's what I said a lot of posts online, but this is more trouble,

CodePudding user response:

Do you rewrite QPushButton tried?










Personal web site, http://www.qtdoc.cn

CodePudding user response:

The
reference 3 floor u010370871 response:
you rewrite QPushButton tried?
[/url]


Break down

CodePudding user response:

Solve the building Lord, I am now, tablet touch press slide must press can trigger long press, mouse long press can directly

CodePudding user response:


refer to fifth floor, the elder brother of the fi reply:
solved the building Lord, I am now, tablet touch press slide must press can trigger long press, the mouse directly long press can

QToolBarButton USES QToolButton: : DelayedPopup know about the long press the popup menu
  •  Tags:  
  • Qt
  • Related