Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[SOLVED](Qt 4.8) QTableView remove selected rows?

$
0
0
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??

Viewing all articles
Browse latest Browse all 18427

Trending Articles