problem solved

painter->beginNativePainting();
painter->endNativePainting();
were missing.