Styled custom widgets

Olivier Goffart ogoffart at
Tue Sep 2 18:24:03 BST 2008

Le samedi 30 août 2008, Girish Ramakrishnan a écrit :

> Another approach would be to add a SH_SupportsXXX for every PE_XXX or
> CE_XXX. Providing a QList<int> feels very powerful but I really doubt
> its usefulness beyond this use case (also one has to concat this list
> with the parent style's list and all that). Instead,
> if (style()->styleHint(SH_SupportsXXX)) {
>     style()->drawControlElement(CE_XXX);
> } else {
>     // fall back painting
> }

I think this is a good solution.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list