[Qt-interest] Need some practical advicehere... model/view framework

Patric userqt at gmail.com
Thu Jul 2 23:38:10 CEST 2009


Thank you guys,
and why to use the QStandartItemModel instead of QStringListModel ? Because 
I want to fill the rows with strings, a far as I know QStandatItemModel is 
for more complex objects ?


----- Original Message ----- 
From: "Sean Harmer" <sean.harmer at maps-technology.com>
To: <qt-interest at trolltech.com>
Sent: Friday, July 03, 2009 12:06 AM
Subject: Re: [Qt-interest] Need some practical advicehere... model/view 
framework


> Eric Clark wrote:
>>
>> I would inherit the QAbstractItemModel class myself and implement the
>> setData function to allow setting of the data.
>>
> Personally I would instead derive a class from QAbstractTableModel since
> the kind folks at Qt Software have already done the hard part for you.
> All you have to do is fill in the blanks! See the docs for what is
> needed ;-)
>
> Alternatively, as you say, you could use QStandardItemModel directly.
>
> Sean
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 




More information about the Qt-interest-old mailing list