Scroll gestures do not work.
Unsolved
General and Desktop
-
QScrollerProperties properties = QScroller::scroller(this->verticalScrollBar())->scrollerProperties(); QVariant overshootPolicy = QVariant::fromValue<QScrollerProperties::OvershootPolicy>(QScrollerProperties::OvershootAlwaysOff); properties.setScrollMetric(QScrollerProperties::VerticalOvershootPolicy, overshootPolicy); properties.setScrollMetric(QScrollerProperties::HorizontalOvershootPolicy, overshootPolicy); QScroller::scroller(this->verticalScrollBar())->setScrollerProperties(properties);
I wrote and tested the code, but the gesture doesn't work.
If you use this->viewPort() instead of this->verticalScrollBar() then the gesture is enabled but OvershootAlwaysOff is not applied.Is there a way to make the scrollbar use QScrollerProperties?
-
Hi,
Aren't you missing something like:
QScroller::grabGesture(&tree, QScroller::TouchGesture);
?