Customized Checkbox still shows original checkbox on top of custom control when hovered

I just tried the code you posted. Works (incorrectly) as you say in Qt 6.2.2; works right in Qt 5.15.2. I'd be inclined to submit an issue on it.