[Solved] Detect if device supports touch
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.
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.
Thank you much, that helped me.