Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ui->discountsTableView->setModel(discountsModel);
- void discounts::on_discountsTableView_doubleClicked(const QModelIndex &index)
- {
- int znachenie = ???
- }
- QModelIndex currentDiscount = ui->discountsTableView->currentIndex();
- qDebug() << ui->discountsTableView->model()->data(ui->discountsTableView->model()->index(currentDiscount.row(),1),0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement