Fix QPainter::begin() property and sample