Am Friday 17 September 2010 schrieben Sie: > Is there a way to safely add a custom QStyleOption subclass for this > purpose? QnD solution: abuse the type or version memeber - they only serve the cast and are nice int, ie. QRgb =) Ideal solution: Qt should have "QStyleOptionGeneric", providing "QMap parameters;" as only extra member Clean solution: Subclass QStyleOption in kdelibs/kdeui - restricts usage to kdelibs linkers (don't mind me, i'd just clone the header for bespin ;-) The qstyleoption_cast() iirc only operates on the type member, which you could (in doubt) fetch from a dynamic stylehint Thomas