Qt 6.11 is out! See what's new in the release
blog
Autoscroll QTreeview only vertically
General and Desktop
2
Posts
2
Posters
1.3k
Views
1
Watching
-
-
no there is no such property to limit the directions.
But you could do the following:
- disable Qt autoscroll feature
- install an eventfilter on the viewport
- on dragmove check if the pos is in a top/bottom margin (defined by you)
- if yes start a timer which periodically in-/decreases the value of the vertical scrollbar (if visible)
- stop the timer on drop drag-leave events