I want to have a table view in my Qt code. It has four column and many rows (not know ) before hand in table view Qt how can I dynamically add rows as
What to do to add rows dynamically
Printable View
I want to have a table view in my Qt code. It has four column and many rows (not know ) before hand in table view Qt how can I dynamically add rows as
What to do to add rows dynamically
Thank u .sir can u kindly give me lilte example or link to example not the documentation as i am new to it i am unable to understand the documentation wid out example thanks
or QStandardItem::setRowCount(). Here is your example:
Code:
model.setRowCount(1);
what do you mean dynamically? Do you want to add or delete rows based on some user interaction or other parameter changes? Anyway I would suggest QTableWidget, very nice class for designing a table.