cann`t find right function in QAbstractItemModel for recive current row index.
Code:
.......... ui->setupUi(this); ui->listView->setModel(model); ......... ............ .......... { int index = model-> //?????????? qDebug() << index; }
Printable View
cann`t find right function in QAbstractItemModel for recive current row index.
Code:
.......... ui->setupUi(this); ui->listView->setModel(model); ......... ............ .......... { int index = model-> //?????????? qDebug() << index; }
You have to get it from QModelIndex (not from QAbstractItemModel)