I have a function to retrieve data from my model.
I want to call it using row,col (r,c) set by me.
Qt Code:
  1. return a_model->data(QAbstractItemModel::createIndex(r,c),Qt::DisplayRole);
To copy to clipboard, switch view to plain text mode 
Ok, I get
error: cannot call member function 'QModelIndex QAbstractItemModel::createIndex(int, int, void*) const' without object

Any idea ?