[Qt-interest] Can't change the Icon size in the HeadView of QTableView!

Andre Somers andre at familiesomers.nl
Wed Aug 25 16:59:31 CEST 2010


  Op 25-8-2010 9:00, bob schreef:
>
>> Or another option is, use the delegate to return the icon size for your
>> listview.
>>
>>
> I don't familiar with delegate , but i will try it.
Don't waste your time on this: delegates don't work in the header. From 
the QHeaderView docs:

    *Note:* Each header renders the data for each section itself, and
    does not rely on a delegate. As a result, calling a header's
    setItemDelegate <qabstractitemview.html#setItemDelegate>() function
    will have no effect.


André

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100825/c1addb54/attachment.html 


More information about the Qt-interest-old mailing list