Use mouse draw line in the 2D,how to do?

Blast from the past, eh?!

It’d have to be in the widget’s *onPaint *since you need to provide the Context data.