I am using QModelIndex to set the value. In QModelIndex we need to pass row and column number . I am searching a function that will take only row number in QModelIndex