travlr
10th August 2007, 17:58
My goal is to have several views connected to a single model. But, the catch is that I want to be able to dictate when a particular view is affected by changes in the model.
For example, lets say I'm using a QTreeView for a file directory hierarchy and a QTableView for the contents of the file itself. Using a single QAbstractItemModel, which is only populated on demand, how would I achieve this?
I tried: viewObject->disconnect(modelObject), which did not work as I expected.
Any suggestions appreciated,
-travlr
For example, lets say I'm using a QTreeView for a file directory hierarchy and a QTableView for the contents of the file itself. Using a single QAbstractItemModel, which is only populated on demand, how would I achieve this?
I tried: viewObject->disconnect(modelObject), which did not work as I expected.
Any suggestions appreciated,
-travlr