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: "Yuriy Rusinov"
Date: Wed, 10 May 2006 16:08:40 +0400
Thanks a lot. All components works fine now.

Best regards,
Yuriy Rusinov.

On 5/10/06, Andreas Pakulat <apaku@xxxxxx> wrote:
On 10.05.06 15:09:16, Yuriy Rusinov wrote:
> 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.
>
>
> Ok, I want to made application with QTableView, QAbstractTableModel and
> QItemDelagate. I put QImage object to every table cell. What's function I
> have to reimplement in order to paint images in every table cell ?

Please have a look at the excellent documentation of Qt4, there's a
whole chapter about Model/View programming.

If you want an image return a QPixmap in your data function when the
role == Qt::DecorationRole.

Andreas

--
You will have good luck and overcome many hardships.

--
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>