[Qt5-feedback] Moving itemmodels to QtCore

Marcus D. Hanwell marcus.hanwell at kitware.com
Sat Jul 2 20:18:15 CEST 2011


On Sat, Jul 2, 2011 at 1:56 PM, Stephen Kelly <steveire at gmail.com> wrote:
> Iván Todorovich wrote:
>> but QItemSelectionModel shouldn't since
>> selection only makes sense in QtGui
>
> Not true. It makes sense in QtDeclarative too. It doesn't belong in a gui
> library. It's more abstract than that. It's just a selection. Not a
> visualization of a selection. The view does the visualization.

I had the same thought, and can think even in non-graphical
applications there are times when you might need to maintain and pass
around selections. If you are going to have the model it seems like
you should also have the selection model to me.

Marcus


More information about the Qt5-feedback mailing list