1111
24th February 2009, 09:40
Hello,
I'm trying to implement custom style for some widgets. I made my own style class, derived from QPlastiqueStyle, that customize widgets. For some widgets I would like to change their size (for instance for ToolBox tab). There is a virtual function sizeFromContents() that should return new element size. However, incoming structure ContentsType (describes widget type) doesn't contain my widget type. Honestly structure quite limited for a number of widgets. :mad:
Does it mean that I cannot change size of ToolBox tabs? In general, does it mean that I can resize only elements from ContentsType structure? If yes is there ant other way to resize toolbox tab?
:confused:
I'm trying to implement custom style for some widgets. I made my own style class, derived from QPlastiqueStyle, that customize widgets. For some widgets I would like to change their size (for instance for ToolBox tab). There is a virtual function sizeFromContents() that should return new element size. However, incoming structure ContentsType (describes widget type) doesn't contain my widget type. Honestly structure quite limited for a number of widgets. :mad:
Does it mean that I cannot change size of ToolBox tabs? In general, does it mean that I can resize only elements from ContentsType structure? If yes is there ant other way to resize toolbox tab?
:confused: