I am trying to achieve a console like behaviour to a QListView where everytime the vertical scroll bar is set all the way to the bottom and a new item is added, scroll it so that the new item is visible.
I came up with this piece of code put where every new item is added:
Qt Code:
{ }To copy to clipboard, switch view to plain text mode
Problem is, even tho tracking is enabled on the QAbstractScrollBar widget, I always get value() and sliderPosition() with the same value making the QListView always scroll down.
Is this the best way out of this? If not, what should be my solution? If it is, what am I missing that make those 2 values identical no matter what?
Bookmarks