PDA

View Full Version : ControlElement CE_ProgressBarContents doesn't get called



lupo
17th September 2009, 11:40
Hi,

I have just sub-classed QMotifStyle and reimplemented some of the control and draw functions to form the style the way I want.

In the re-implemented drawControl function, if I put breakpoints within both CE_ProgressBarGroove and CE_ProgressBarContents cases, the groove one gets called but the contents one does not.

It is not just the debugger, I cannot see visual effect of any change I make in the contents case either. So it seems like drawControl is never called by CE_ProgressBarContents element.

I do not want to use stylesheets because I need what I do to be scalable. Giving fixed border width, radius and blah blah within the stylesheet is a serious restriction for me, however I obviously hit to a wall with CE_ProgressBarContents.

Any ideas? I do appreciate any answer in advance and thank you very much.