Hi guys, I have issue with QTableView… I can’t remove selected items from the table correctly … I got two methods:
for(int i=...)
{
view->model()->removeRow(i);
Which works fine if I pick up each line separately, or this one:
for(int i=...)
{
view->model()->removeRow(view->currentIndex().row());
which works good only if I use Drag’n‘Drop technique…
Both works only in specific situation of selecting lines, but I can’t reach the correct answer how to remove selected lines (by picking up, or by Drag’n‘Drop)….How to remove lines from QTableView??
↧