[Qt-interest] Fwd: decoration role for the tree model subclass
Scott Aron Bloom
scott at sabgroup.com
Wed Dec 17 01:58:00 CET 2008
read the docs on models..
--Sent from my mobile device--
-----Original Message-----
From: "ami guru" <dosto.walla at gmail.com>
Date: Tuesday, Dec 16, 2008 4:20 pm
Subject: [Qt-interest] Fwd: decoration role for the tree model subclass
To: qt-interest at trolltech.com
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
More information about the Qt-interest-old
mailing list