Hi,

So I've been reading a lot about the Model-View-Delegate architecture that QT employs. I've noticed that this is used primarily with widgets like the ListView, TreeView, and TableView and ColumnView. In my own code, I'd like to be able to have a Model for other widgets, like QTexEdit or QSpinBox. It seems, though, that this is only possible if I create a widget which inherits from something like QAbstractItemView. While there is tons of documentation on creating your own models and delegates, there doesn't seem to be much for views, and it seems like a lot more work.

I read about Delegates here, and as far as I can make out, it'll allow for attaching a data model to a widget as I described, but the delegate itself must still be a delegate of a view, of course, and so the problem persists.

What exactly is the correct thing to do here, and is there perhaps any documentation? Thanks