Providing i had put data in QCPGraph, how can I obtain the x and y values in table model? That is:
QVariant MyTableModel::data(const QModelIndex &index, int role) const
{
if (role == Qt::DisplayRole)
{
//how can I access the values if i can access index.column() and index.row()?
}
return QVariant();
}