Hi,
how can I set user defined roles for columns of a QSqlQueryModel?
For example: Column 1 and 2 should have Qt::DisplayRole, and column 3 and 4 should have Qt::UserRole where the values are?
Thanks in advance
Best Regards
NoRulez
Printable View
Hi,
how can I set user defined roles for columns of a QSqlQueryModel?
For example: Column 1 and 2 should have Qt::DisplayRole, and column 3 and 4 should have Qt::UserRole where the values are?
Thanks in advance
Best Regards
NoRulez
did you try to use QAbstractItemModel::setData?