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. Pressed and release on capacitive touch screen
Forum Updated to NodeBB v4.3 + New Features

Pressed and release on capacitive touch screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.1k Views 3 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.
  • A Offline
    A Offline
    aim0d
    wrote on last edited by aim0d
    #1

    Hi!
    I've implemented a button with the pressed and released function, when I try it on my PC (desktop) with the left mouse button i dont have any problem; but when I load my application on a monitor with capacitive touch screen it doesn't get the pressed/released action but it gets the right click drop-down menu. Is there a way to change the setting, that if i pressed without release it gets the left click (as on my Desktop PC) and not the right one? Is something that I have to add in my code or a Windows setting to be changed?
    I've already tried this two tutorial (first & second) but didnt get what I was looking for

    Thanks to anyone who could help me!

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Often the touch controller comes with a settings app that allows you to control if long press means right click and such things. Also often you can turn on mouse emulation and then your buttons should work just like with a mouse.

      The actual app depends on what vendor the touch controller is from.

      A 1 Reply Last reply
      0
      • S Offline
        S Offline
        stryga42
        wrote on last edited by
        #3

        Do you see this problem even for a short duration press (release follows soon after press) or only for longer hold duration? The underlying window manager may create a request for the context menu if a press is not followed by a release within a given time.
        Does a "normal" QPushButton behave as expected?

        A 1 Reply Last reply
        0
        • S stryga42

          Do you see this problem even for a short duration press (release follows soon after press) or only for longer hold duration? The underlying window manager may create a request for the context menu if a press is not followed by a release within a given time.
          Does a "normal" QPushButton behave as expected?

          A Offline
          A Offline
          aim0d
          wrote on last edited by
          #4

          @stryga42

          Does a "normal" QPushButton behave as expected?

          Yes, I dont have any problem with that. I also have toggle button, works just fine.

          Do you see this problem even for a short duration press (release follows soon after press)

          No, with short duration nothing happen, but even so i need to get the long pressed beacuse basically something move while I keep press and stop when I remove the finger

          1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            Often the touch controller comes with a settings app that allows you to control if long press means right click and such things. Also often you can turn on mouse emulation and then your buttons should work just like with a mouse.

            The actual app depends on what vendor the touch controller is from.

            A Offline
            A Offline
            aim0d
            wrote on last edited by
            #5

            @mrjj

            Often the touch controller comes with a settings app that allows you to control if long press means right click and such things

            But actually, as this tutorial shows and i try it, even windows has it but it's very restrictive. I'm gonna try something like this.
            Your answer make me thinks maybe to install a macro. Could it be a solution?

            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