Re: Adapting the "Simple DOM Model Example" to be read/write
If I understand what you are trying to do, you will need to implement the logic of your application in the model. The view merely displays what you present to it from the model. As I recall, the simple example is displaying three columns that represent the name (tag name in the case of an element), attributes, and the node value (the string or comment contents of a text node.)
To make your bike program work correctly, you will need to build a model that understands the organization of your data and presents it to the view in the appropriate rows and columns. If you want to implement editing then you will need new delegate to edit within the treeview.
Senior Qt and Qt Embedded Consultant
and Certified Qt Trainer
Integrated Computer Solutions
Bedford, Ma, USA
Bookmarks