When painting the outline we paint it in native mode, not using QPainter. Therefore we should care about clipping manually. BUG:456351