[Solved] Detect if device supports touch
-
wrote on 12 Sept 2014, 06:18 last edited by
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?
-
wrote on 14 Sept 2014, 18:27 last edited by
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.
-
wrote on 15 Sept 2014, 17:28 last edited by
Thank you much, that helped me.
1/3