[Qt-interest] Model/View buffer management problem in QT 4.6

163 mail htyoung at 163.com
Mon Nov 29 18:28:22 CET 2010


Hi ,

How can I remove the row of QTreeView , and the program buffer not augment?

I am use QT4.6, VC express 2009 in win XP(SP3).

I design a  model/view architecture*  *trace list program by using QTreeView
and QStandardItemModel.

The QTreeView will display a   7 columns and 100 rows datas.

Because the datas is dynamic.Every 100 ms, I had to remove the first row ,
then add one row in the last row in order to keep always display 100 rows in
the QTreeView.

I try to use "QStandardItemModel::removeRows" remove the fisrt row.I can see
QTreeView did't display the first row.

But if we use some processor monitor( ctrl+alt +del start the performance
monitor etc.), we found the program buffer fast augment.Not only add the
row, but also remove the row.



I had to ask yours help How can I remove the row , and the program buffer
not augment?

I also check the examples folder in the QT , But This problem exsit in most
of the itemview examples.



wya,
29. Nov. 2010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101130/676ff602/attachment.html 


More information about the Qt-interest-old mailing list