Your clip rectangle can be built from the baseline ( mapped into widget coordinates ) and the contents rect of the canvas - the coordinates of your curve are of no importance.

As you don't have the canvas rectangle here you could also use any huge coordinate far outside like -100000 ( or 100000, when your y axis is inverted and you want to clip below the baseline ).

Uwe