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. touch does not work sometimes while mouse press works fine.
Forum Updated to NodeBB v4.3 + New Features

touch does not work sometimes while mouse press works fine.

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 513 Views 1 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by JoeCFD
    #1

    I have some dynamic layout changes in a Qt widgets GUI on touch screens. Widgets will be destroyed and created in these changes. In some switches, GUI is frozen to touch events while no problem for mouse presses. What could be the causes?

    Ubuntu 22.04 and Qt 5.15.3

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

      Hi,

      Is this freezing temporary ?
      Can you trigger that repeatedly ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      JoeCFDJ 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Is this freezing temporary ?
        Can you trigger that repeatedly ?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @SGaist not temporary. I can repeat the issue a few times, but randomly. Mainly this happens when layout changes too quickly.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Strange... Out of curiosity, what requires these quick changes that triggers destruction and recreation of widgets ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          JoeCFDJ 1 Reply Last reply
          0
          • SGaistS SGaist

            Strange... Out of curiosity, what requires these quick changes that triggers destruction and recreation of widgets ?

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            @SGaist It is not a requirement to do quick changes. Personally, I will not abuse touch screen too much. But you never know what clients will do. If the app freezes, they will hate it especially in critical situations(life/death). We try to train the clients not to do it. However, better to fix it if possible.

            SGaistS 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @SGaist It is not a requirement to do quick changes. Personally, I will not abuse touch screen too much. But you never know what clients will do. If the app freezes, they will hate it especially in critical situations(life/death). We try to train the clients not to do it. However, better to fix it if possible.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JoeCFD it was merely to understand the logic and possibly find a better way to handle that. I must say that in life/death situations, I would rather have something else as input system than a touchscreen.

              Did you try to run your application with all Qt logging enabled to spot something ?
              Also, does dmesg give you a hint of something wrong then the freeze happen ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              JoeCFDJ 1 Reply Last reply
              0
              • SGaistS SGaist

                @JoeCFD it was merely to understand the logic and possibly find a better way to handle that. I must say that in life/death situations, I would rather have something else as input system than a touchscreen.

                Did you try to run your application with all Qt logging enabled to spot something ?
                Also, does dmesg give you a hint of something wrong then the freeze happen ?

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                @SGaist It is a general practice to use touch screen in this field.
                Not yet. I will take a look at it. Thank you for your advice.

                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