[SOLVED]Disable automatic scrolling when clicking an item
I have a QTreeView with a custom item delegate. The delegate creates an editor that can be very wide (let's say, 2000px width), so the user will scroll it to edit the data.
I scrolled to the frame #300 and I will click it. Notice that the scrollbar is already offseted.
Then, the scrollbar goes to the starting position automatically. It happens because the current selected row have changed. Is there any way to disable the automatic scrolling?
Solved with the property "QAbstractItemView::autoScroll":http://doc.qt.nokia.com/4.7-snapshot/qabstractitemview.html#autoScroll-prop. So, all I had to do was to write: