It is necessary that in the Android application, you can scroll tabs. Now it is done like this:

QScrollerProperties sp; sp.setScrollMetric(QScrollerProperties::DragVelocitySmoothingFactor, 0.6); sp.setScrollMetric(QScrollerProperties::MinimumVelocity, 0.0); sp.setScrollMetric(QScrollerProperties::MaximumVelocity, 0.5); sp.setScrollMetric(QScrollerProperties::AcceleratingFlickMaximumTime, 0.4); sp.setScrollMetric(QScrollerProperties::AcceleratingFlickSpeedupFactor, 1.2); sp.setScrollMetric(QScrollerProperties::SnapPositionRatio, 0.2); sp.setScrollMetric(QScrollerProperties::MaximumClickThroughVelocity, 0); sp.setScrollMetric(QScrollerProperties::DragStartDistance, 0.001); sp.setScrollMetric(QScrollerProperties::MousePressEventDelay, 0.5); QScroller* scroller = QScroller::scroller(mainTabWidget->tabBar()); scroller->grabGesture(mainTabWidget->tabBar(), QScroller::LeftMouseButtonGesture); scroller->setScrollerProperties(sp); 

But that doesn't work, although everything is fine with QTableWidget.

  • if ebrashchatsya not to tabBar (), but to the widget, it also does not work - vadrozh

0