[qt5] render background in drawPrimitive instead of eventFilter