From nanthiran2005 at gmail.com Fri Apr 3 09:47:58 2026 From: nanthiran2005 at gmail.com (sivan nanthiran) Date: Fri, 3 Apr 2026 15:47:58 +0800 Subject: [Interest] Pan Gesture in QAbstractScrollArea for Mac Message-ID: 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: