You’re not in a widget. You need a widget for this. You’ve added a widget component. If you’ve never worked with widgets, consider watching a tutorial (or two) or reading docs - it’s a vast and convoluted topic.
As a kickstarter:
Open it and override onPaint
as above. Add it to the screen in the Sedan blueprint:
You can now feed it data the onPaint
function can take advantage of.