QModelIndex index = model->index(0,0); //get the QModelIndex of the top-left cell int row = index.row(); //get the row number of the QModelIndex
QModelIndex index = model->index(0,0); //get the QModelIndex of the top-left cell index = index.sibling(index.row()+1, 0); //set the row number of the QModelIndex to the next rowThese examples use the Qt package library.