Hi,

is there something to find out which roles in a model are used (also user defined roles)?
I only find the following function QAbstractItemModel::roleNames (), but this is only for internal roles such as Qt:isplayRole

I want to do something like the following (for example):
Qt Code:
  1. for(qint32 row = 0; row < pModel->rowCount(); ++row)
  2. for(qint32 col= 0; col< pModel->columnCount(); ++col)
  3. qDebug() << "Row: " << row << "; Column: " << col << "; Data: " << pModel->data(pModel->index(row, col), /*??????*/);
To copy to clipboard, switch view to plain text mode 

Best Regards
NoRulez