[Qt-interest] How to make QTableView to show the latest row automatically?
donglongchao
donglongchao at 163.com
Mon Feb 8 09:38:50 CET 2010
Thank you very much.I try scrollTo* function to do that and it seems OK for me.While I have another requirement that is when the scroll bar is not at the bottom,I do not need to use scrollTo* function and when it is at the bottom I want to use scrollTo* function .So I want to know how to judge whether the scroll bar is at the bottom or not.
Longchao
在2010-02-07 03:17:11,"amulya rattan" <talk2amulya at gmail.com> 写道:
try setCurrentIndex on the index of the new row
2010/2/6 donglongchao <donglongchao at 163.com>
Hi,all
I am trying to use QTableView to show some infos which increase and be append to the QStandardItemModel each 1 second,but I do not know how to make QTableView to show the latest row automatically so that I do not need to drag the scroll bar by hand.I think it is only a small and common function but I just can not find it in the docs.Any suggestion will be appreciated.
Thanks a lot in advance.
Longchao
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100208/ac809a84/attachment.html
More information about the Qt-interest-old
mailing list