Search code examples
pythonpyqt4qlistwidget

how to EnsureVisible a newly added item on qlistwidget in python?


when i added an item in a qlistwiget and reaches the bottom. A scroll bar appears, how can i ensurevisible an item that was newly added from the qlistwidget? Or how can i get the focus to the last index?


Solution

  • QListWidget inherits from QAbstractItemView, which has the methods you are looking for: