Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, December 2006
styling view items


Message 1 in thread

Hi,

one of my upcoming tasks is to include view items (above all QTreeView)
in my custom style. I found a QStyleOptionViewItem class. Now, I'm
wondering, if there are any element types (like PE_FrameFocusRect and so
on, the enums used in the drawing functions of QStyle) defining view
items or if I have to declare custom items. If so, does anyone know how
to define such custom items? Is it sufficient to reimplement the enums
in my custom style? I'm not sure about the system behind, which is
telling me what kind of element has to be painted.

Regards, Clemens

--
 [ signature omitted ]