This is how I sent the signal
wdgt.trvModules->dataChanged(wdgt.trvModules->currentIndex(),wdgt.trvModules->currentIndex());
wdgt.trvModules->dataChanged(wdgt.trvModules->currentIndex(),wdgt.trvModules->currentIndex());
To copy to clipboard, switch view to plain text mode
I had it right at the end of the method that changes the data. I have also added a call to setData in the same place.
wdgt.trvModules->model()->setData(wdgt.trvModules->currentIndex(),classSize);
wdgt.trvModules->dataChanged(wdgt.trvModules->currentIndex(),wdgt.trvModules->currentIndex());
wdgt.trvModules->model()->setData(wdgt.trvModules->currentIndex(),classSize);
wdgt.trvModules->dataChanged(wdgt.trvModules->currentIndex(),wdgt.trvModules->currentIndex());
To copy to clipboard, switch view to plain text mode
Where wdgt.trvModules is a pointer to teh QTreeView and I'm changing the selected (singular) item.
Bookmarks