QListWidget - Auto Scroll
-
Hi all!
I am using a QListWidget to display various messages in a lightweight server application. However one tiny cosmetic problem is really irritating me,
As items are being added to the list the vertical scrollbar will not automatically scroll down to always show the latest message at the bottom of the QListWidget. There appears to be an 'autoscroll' option in the design properties of the QListWidget but I'm yet to understand what this does.
Could anybody help please??
Much Love
Andrew -
Did you try to call "QAbstractItemView::scrollToBottom()":http://doc.qt.nokia.com/4.7/qabstractitemview.html#scrollToBottom after you have added an item? (the function is available in all subclasses, including QListWidget).
-
When you frequently add lines to the model, the widget starts to slow down. You can make setUniformItemSizes(), but I want the elements to be of different heights.
There is a solution?