[Development] Issues with QApplication::startDragDistance
Morten Johan Sørvig
morten.sorvig at digia.com
Thu Nov 13 13:49:06 CET 2014
> On 13 Nov 2014, at 11:11, Jeremias Bosch <jeremias.bosch at basyskom.com> wrote:
> Now there are two issues I ran into.
> • On High DPI cases the sensitivity of the lists is very high, basically touching the screen is already registered as a drag and pressing buttons is pretty hard. On Low DPI its fine. Of course you can tweak the startDragDistance with QApplication::startDragDistance, or the corresponding value in your Platform Style. However, this would mean that you need to adjust for each target device to get the expected behavior, which might not be possible and preferable - I think that the default value should respect the screen DPI.
> • Wouldn't it make sense to make the default start drag distance respecting screen dpi?
This already works on some platforms: On OS X and iOS (or any other platform that sets devicePixelRatio) startDragDistance is interpreted as being in device-indepentent pixels, which means that the screen pixel density is automatically accounted for.
More information about the Development