[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Colored text in KListViewItem
From:       Karim Ryde <karim () bredband ! net>
Date:       2005-11-01 18:59:28
Message-ID: 200511011959.28501.karim () bredband ! net
[Download RAW message or body]

You could try reimplement paintCell:
http://doc.trolltech.com/3.3/qlistviewitem.html#paintCell

On Tuesday 01 November 2005 19:49, Michael Rex wrote:
> On Tuesday 01 November 2005 19:32, Roberto Cappuccio wrote:
> > Do you mean something like this?
> >
> > http://doc.trolltech.com/qq/qq08-fancy-list-view.html
>
> If I didn't miss something you can change the color of the whole text by
> overriding paintCell, but not of a part of the text.
>
> I want to change the color of a single word of a possibly long text. Like I
> can do by assigning a string like 'This word is <font color="blue">blue
> </font>' to a label. But KListViewItem doesn't seem to interpret the HTML
> code.
>
> Bye, Michael
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic