qt-interest@trolltech.com
[Top] [All Lists]

Re: Editable Table with Model View Programming technique

Subject: Re: Editable Table with Model View Programming technique
From: Andreas Pakulat
Date: Sun, 7 May 2006 21:51:00 +0200
On 07.05.06 23:13:30, Yuriy Rusinov wrote:
> I have to develop editable table with some text within a cells of this table
> on QMainWindow with MVP technique. I saw two model classes
> QAbstractTableModel and QStandardItemModel. What are the differences between
> them ? What I have to do in order to make this table ?

Please read the chapter on model-view-programming in the qt4 docs. It
should explain everything you need.

Basically: Either QStandardItemModel or your own Model subclass (from
QAbstractItemModel) should be what you want. Using your own version
enables you to store the actual data in some arbitrary form.

Andreas

-- 
A tall, dark stranger will have more fun than you.

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>