Qt-interest Archive, February 2007
Headers of ViewItems
Message 1 in thread
Hello,
I've got a simple question about the drawing of view items. I took a
look into the qt 4.2.2 sources, but I'm still not sure where the drawing
of these little sections, located within the headers, takes place. The
sections I mean are marked with a question mark:
_ _
_| ? | header | header | ? |_
_| header | | | |_
_| header | | |__ |_
_| header | | |__ |_
_| header | | |__ |_
_| header | | |__ |_
_| ? |__ | |__ |_
Does anyone know how or where these sections are painted (location or
class of source code for example)? While painting the headers, they are
excluded. I need this information to show ViewItems in a custom style.
Thx for help, Clemens
--
[ signature omitted ]
Message 2 in thread
Clemens Clausen schrieb:
> Hello,
>
> I've got a simple question about the drawing of view items. I took a
> look into the qt 4.2.2 sources, but I'm still not sure where the drawing
> of these little sections, located within the headers, takes place. The
> sections I mean are marked with a question mark:
>
> _ _
> _| ? | header | header | ? |_
> _| header | | | |_
> _| header | | |__ |_
> _| header | | |__ |_
> _| header | | |__ |_
> _| header | | |__ |_
> _| ? |__ | |__ |_
>
>
> Does anyone know how or where these sections are painted (location or
> class of source code for example)? While painting the headers, they are
> excluded. I need this information to show ViewItems in a custom style.
>
> Thx for help, Clemens
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
I guess you are looking for QHeaderView::paintSection()
Hope this helps
--
[ signature omitted ]
Message 3 in thread
On Monday 12 February 2007 11:33, Clemens Clausen wrote:
> Hello,
>
> I've got a simple question about the drawing of view items. I took a
> look into the qt 4.2.2 sources, but I'm still not sure where the drawing
> of these little sections, located within the headers, takes place. The
> sections I mean are marked with a question mark:
>
> _ _
> _| ? | header | header | ? |_
> _| header | | | |_
> _| header | | |__ |_
> _| header | | |__ |_
> _| header | | |__ |_
> _| header | | |__ |_
> _| ? |__ | |__ |_
>
>
> Does anyone know how or where these sections are painted (location or
> class of source code for example)? While painting the headers, they are
> excluded. I need this information to show ViewItems in a custom style.
>
> Thx for help, Clemens
The top left is just a standard QPushButton.
-Benjamin Meyer
--
[ signature omitted ]