[Qt-interest] Drawing rectangular

Alessandro Portale alessandro.portale at trolltech.com
Mon Sep 21 17:42:07 CEST 2009


Yuvaraj,

did you consider using HTML for these decorations?
Also, QWebKit would be much more powerful for that than QTextBrowser. You could use state of-the-art CSS for these decorations. That would help separating design and code, you could develop C++ that generates HTML for the chat display, and a designer could make the artwork in CSS.

Alessandro.

Yuvaraj R wrote:
> Thanks for your reply
> 
> I want to draw the rounded rectangular around the the particular text of 
> text browser.
> 
> please refer attached image
> 
> Thanks
> 
> Yuvaraj R
> 
> 
> On Mon, Sep 21, 2009 at 8:36 PM, Srdjan Todorovic 
> <todorovic.s at googlemail.com <mailto:todorovic.s at googlemail.com>> wrote:
> 
>     On 21/09/2009, Yuvaraj R <yuvaraj at ongobiz.com
>     <mailto:yuvaraj at ongobiz.com>> wrote:
> 
>      > Can u please help how i paint the textbrowser Text ?
> 
>     Like so:
> 
>     QString h("hello!");
>     painter.drawText ( 50, 50, h );
> 
>     yes?
> 
>     Srdjan

-- 
Alessandro Portale
Software Engineer
Nokia, Qt Development Frameworks



More information about the Qt-interest-old mailing list