qt paint curve