QPainter backend fixes

This fixes the broken unit test for the QPainter backend.