[Qt-interest] QVBoxLayout with 100s of items is hanging

Andre Somers andre at familiesomers.nl
Thu Nov 26 17:00:15 CET 2009


David Ching wrote:
> "Andre Somers" <andre at familiesomers.nl> wrote in message 
> news:4B0E6F17.8020601 at familiesomers.nl...
>   
>> If you need checkboxes: A QListView can show them. That may be a far 
>> better way of dealing with this.
>>
>>     
>
> But can a QListView show html formatted text?
>   
That wasn't in your orignal list of requirements (your first posting)...

A basic one can not do that, but if you use a delegate, you can. One way 
might be to subclass QStyledItemDelegate, and use a QTextDocument with 
it's drawContents method to render your rich text.

André






More information about the Qt-interest-old mailing list