ops.....in the debugger picture you wil see a variable called strr , i add the variable to see if it is the treeitem or the tableitem...here is the code it will explain "everyting"
@
treeitem->setCheckState(2,Qt::Unchecked);
QString strr = treeitem->text(0);
if(strr.contains(tableitem->text()))
treeitem->setCheckState(2,Qt::Checked);
@
if i try this it crashs
@ QString str=tableitem->text();
@
if i try this it works
@ cout<<tableitem->text().toStdString()<<endl;
@
What is the problem?? Maybe it is the Display Role?? or something like else?