Am Sonntag, den 05.06.2011, 18:08 +0200 schrieb jens.bache-w...@nokia.com: > Yes you should be able to use the TableView for this. > > If you look at the colordelegate example which is part of the > TableViewGallery example, you can see how you pass two different properties > to the same column. (color and text) The trick is to use a nested ListElement. > I.e a single property can itself contain a listElement which can contain as > many properties as you like. Well, I don't want to/cannot modify my model: it is not a regular ListModel, but a Mongo Database query model (from my QtMongo project [1])
> I dont think it is worth making a separate component for something that is > essentially a TableView with one column. I will however try to see if there > are ways I can make the model work more conveniently in the future. Yes, it would be great it you could also provide e.g. 'rowValue' in addition to 'itemValue'. Cheers, Manuel [1] https://github.com/manuels/QtMongo _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components