1) Inherit your own style from QProxyStyle and don't override painting
2) Set this style for a widget
3) Run you app with QT_STYLE_OVERRIDE=windows
4) The widget will be painted in the default style (Fusion) instead of Windows style
But if you run your app with -style windows, then everything will be ok.