hashb
22nd October 2009, 02:57
From the QT manual of QAbstractItemDelegate,we can see:
"The QAbstractItemDelegate class is used to display and edit data items from a model"
But what confusing me is :
I think It should be view’s job to display the data rather than delegate,because in MVC , “view †is responsible for presenting the data to the user ,â€control †converting user actions into requests to navigate or edit data.
So QT let delegate to display data ,is it confusing ? if so ,what should view do ?
Thanks advance,
hb
"The QAbstractItemDelegate class is used to display and edit data items from a model"
But what confusing me is :
I think It should be view’s job to display the data rather than delegate,because in MVC , “view †is responsible for presenting the data to the user ,â€control †converting user actions into requests to navigate or edit data.
So QT let delegate to display data ,is it confusing ? if so ,what should view do ?
Thanks advance,
hb