[Qt-interest] Fwd: decoration role for the tree model subclass

ami guru dosto.walla at gmail.com
Wed Dec 17 01:19:11 CET 2008


hello ,


do i have to overload the data() function for Qt::DecorationRole ?

The link you provided did not make much sense to me

Could you please provide more reference to that?


Regards
Sajjad

---------- Forwarded message ----------
From: Benjamin <ikipou at gmail.com>
Date: Wed, Dec 17, 2008 at 12:18 AM
Subject: Re: [Qt-interest] decoration role for the tree model subclass
To: Qt Interest List <qt-interest at trolltech.com>


2008/12/16 ami guru <dosto.walla at gmail.com>
>
>
> How to generate the icon in the above code and assign role for that
>
> Hi,

The documentation says that the role for icons is Qt::DecorationRole:
http://doc.trolltech.com/4.4/qt.html#ItemDataRole-enum

best regards,
Benjamin

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081217/ce222bc1/attachment.html 


More information about the Qt-interest-old mailing list