randrew/phantomstyle

quick question regarding interference with stylesheet

JulienMaille opened this issue · 5 comments

@randrew, do you know the reason why setting a stylesheet on a QSpinBox like this QSpinBox { border: 1px solid #0000FF; } reverts the drawing of arrows to some weird windows style?
image

Is there anything I can do to prevent that? Thanks in advance.

Does the same thing happen with QFusionStyle?

Yes, it does

I think this is probably a problem with QStyleSheetStyle, then.

As soon as we edit the stylesheet, is phantomstyle "bypassed" to let QStyleSheetStyle paint the whole widget? I suppose there's nothing I can do from phantomstyle?

It depends on what QStyleSheetStyle decides to do. I haven't read the code for that particular widget control.