Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QListWidget moving to end of list automatically

Tags:

c++

qt

qt4

I have a QListWidget that has many items added to it, however i want the QListWidget to auto-scroll to the last item everytime a new item is added to it.Is this even possible?

like image 788
cftmon Avatar asked Mar 03 '11 13:03

cftmon


2 Answers

listWidget->scrollToBottom() would work

like image 66
Tom Avatar answered Nov 08 '22 19:11

Tom


Should work with scrollToItem().

like image 2
thorsten müller Avatar answered Nov 08 '22 20:11

thorsten müller