Hello,
For all but one (column 2) QTableView columns, the view queries the model for 7 different roles - 8,6,7,9,10,1,0. That is OK.
For one column (column 2) only one role (0) is queried. See the data() call dump below.
I can't remember that I did anything special with this column. What could be the cause?
THX for any hint
qDebug() << "data " << modelIdx << "role " << role;
--------------------------------------------------------------------------------
data QModelIndex(0,0,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 8
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 6
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 7
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 9
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 10
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 1
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 0
data QModelIndex(0,1,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 8
data QModelIndex(0,2,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 0
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 6
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 7
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 9
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 10
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 1
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 0
data QModelIndex(0,3,0x0,MstkCmdModel(0x810d810, name = "MstkCmdModel#a0179e") ) role 8
Bookmarks