Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Detect if device supports touch
Forum Updated to NodeBB v4.3 + New Features

[Solved] Detect if device supports touch

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.0k 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.
  • S Offline
    S Offline
    s.frings74
    wrote on 12 Sept 2014, 06:18 last edited by
    #1

    In a widget application on Android/Windows/Linux, I like to hide scrollbars when the device supports touch gestures. But I don't know how to detect this capability.

    I could do it the other way: Display scrollbars only if a mouse or tablet is present. But I also dont know how to detect if these input devices are present.

    Any ideas?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sletta
      wrote on 14 Sept 2014, 18:27 last edited by
      #2

      How about: http://qt-project.org/doc/qt-5/qtouchdevice.html#devices. You can query if there are touch devices in the system and base it on that.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        s.frings74
        wrote on 15 Sept 2014, 17:28 last edited by
        #3

        Thank you much, that helped me.

        1 Reply Last reply
        0

        2/3

        14 Sept 2014, 18:27

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved