How to fix screen location on a canvas?

I’m trying to convert 3D space coordinates to screen coordinates and place a widget there.
However, because the canvas on which the widget is placed does not cover the entire screen, its position on the canvas will not match its screen coordinates, and the widget will be placed in the wrong place.
I want to fix this, how can I do it?

You can convert Screen to Local space like this:

You can then navigate to Designer view > select the Canvas > go to Clipping > Set to Clip To Bounds so that the widget doesn’t appear outside of the canvas since it doesn’t cover the entire screen.

Result:

I tried this and it worked just as I wanted.
Thank you for answering my question.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.