[Interest] Pan Gesture in QAbstractScrollArea for Mac

sivan nanthiran nanthiran2005 at gmail.com
Fri Apr 3 09:47:58 CEST 2026


Hi all,

I am curious to know on why in the default viewport creation in
QAbstractScrollAreaPrivate::init, the pan gesture registration (i.e
viewport->grabGesture(Qt::PanGesture) is protected by #ifndef Q_OS_MACOS
but the same is NOT done when a viewport is set through the function
of QAbstractScrollArea::setViewport.

The effect of this is that, when I use any default viewport, I don't see a
pan happening when I press and hold one finger on my trackpad, and then
drag it. However, the same is not true if I have set the overwritten the
viewport using the function.

Thanks in advance.

Regards,
Sivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20260403/7a38833c/attachment.htm>


More information about the Interest mailing list