PDA

View Full Version : Custom SelectionModel implementation needed?



graffy
23rd February 2014, 05:47
The question is fairly simple: Are there any good examples of literally subclassing the Qt selection model class?

I've created a framework that generates a UI using a runtime script, and I've had to create data aware Qt widgets for textboxes, checkboxes, radiobuttons, etc. It would be good to see an example of a subclass of the QtItemSelectioModel class to see how to implement selection model support in a widget that doesn't natively support it.