chethana
3rd August 2009, 07:31
Hi All,
I am using QTableView for that i have created custom model which is derived from QStanderdItemModel.
In my application inserting rows are dynamic . i.e . i don't no the exact rows intialy As the data comes from the socket i need to append data to row in the Model.
intially i have created
QStanderItemModel(20,20,parent)
Using rowcount() function i am getting 20 rows.
but how to get the itemcount (rowCount) as the data gets added dynamically??
Thanks
Chethana
I am using QTableView for that i have created custom model which is derived from QStanderdItemModel.
In my application inserting rows are dynamic . i.e . i don't no the exact rows intialy As the data comes from the socket i need to append data to row in the Model.
intially i have created
QStanderItemModel(20,20,parent)
Using rowcount() function i am getting 20 rows.
but how to get the itemcount (rowCount) as the data gets added dynamically??
Thanks
Chethana