hi all,
i want to add a row after the selected row in a table, made from QTableWidget.
i used the function insertRow(int rowIndex), to insert the row in the table. Now this function adds the row before the rowIndex passed. i want to add the row after selected row. so i calculated the currentrow by currentRow and add 1 to the index and pass to the function insertRow. Problem occurs when i add after the last row in the table. The table crashes. in the middle of the table it works fine.
can somebody suggest some way to do this ?
Bookmarks