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. QPushButton autorepeat on touch screens with MS-Windows
Forum Updated to NodeBB v4.3 + New Features

QPushButton autorepeat on touch screens with MS-Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 2.1k 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #1

    The autorepeat-feature does not work with MS-Windows.

    When I touch and hold my finger down I get a rectangle on the screen. I think this is the normal methode to simulte a right mouseclick on windows to open the context menu.
    But I need no context menu, I will perform the autorepeat funktion of the button.

    Any ideas to manage this in Windows ?

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

      Normally there is an app that can enable/disable hold to right click.
      In control panel.
      Is it laptop with touch or standalone touch screen?

      Andy314A 1 Reply Last reply
      0
      • mrjjM mrjj

        Normally there is an app that can enable/disable hold to right click.
        In control panel.
        Is it laptop with touch or standalone touch screen?

        Andy314A Offline
        Andy314A Offline
        Andy314
        wrote on last edited by Andy314
        #3

        Hello @mrjj ,
        I found nothing to configure in Windows 10 something like this - more over you need this feature to work with windows in a pure touch environment what I use.
        So disabeling would be no solution - it should be manged by Qt.

        mrjjM 1 Reply Last reply
        0
        • Andy314A Andy314

          Hello @mrjj ,
          I found nothing to configure in Windows 10 something like this - more over you need this feature to work with windows in a pure touch environment what I use.
          So disabeling would be no solution - it should be manged by Qt.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Andy314
          but does repeat work in any app ?

          Andy314A 1 Reply Last reply
          0
          • mrjjM mrjj

            @Andy314
            but does repeat work in any app ?

            Andy314A Offline
            Andy314A Offline
            Andy314
            wrote on last edited by
            #5

            Yes with mouse-click (hold mouse button down) it works.

            mrjjM 1 Reply Last reply
            0
            • Andy314A Andy314

              Yes with mouse-click (hold mouse button down) it works.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Andy314
              I did mean with touch in non Qt app or the like.
              Im wondering if it can work at all when touch driver converts hold to right click.

              Andy314A 1 Reply Last reply
              0
              • mrjjM mrjj

                @Andy314
                I did mean with touch in non Qt app or the like.
                Im wondering if it can work at all when touch driver converts hold to right click.

                Andy314A Offline
                Andy314A Offline
                Andy314
                wrote on last edited by
                #7

                In QtApps and in all other Desktop-apps a long-click opens a context menu if the widget has one. If it has no a rectangle opens.
                I dont know what happens if a button has a autorepeat function, because I have no program with this feature. I will look tomorrow for a testing program.
                (The scrollbar up/down buttons work not)

                1 Reply Last reply
                0
                • jerome_isAviableJ Offline
                  jerome_isAviableJ Offline
                  jerome_isAviable
                  wrote on last edited by
                  #8

                  maybe you can try to override the event on_mouse_clicked and on_mouse_release for do that and add a kind of bounce timer from there.

                  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