Hello,
I am using Qt's Model/View Programming framework. I have subclassed QAbstractItemView and QAbstractItemModel. In my situation I need to pick out certain specific parts of the model to display in a custom view. I have used a Tree structure in the model class to represent the data. In each item of the tree, I have a column that has a text string with a unique name of my data. The model only changes internally by reading data from a serial port. In the dataChanged slot in the view I check to see which index changed by looking at the string and then update the appropriate widget in the view. I am wondering if this is the best way of doing this. It seems a little hokey to me but I don't really know how else to do it. Thanks for any help!
csmithmaui
Bookmarks