How do i a "link" widget placed in the editor to c++

how do i acces a button placed in the ui in code? e.g. i want to change its position using actual code and not blueprints.

I found an Unreal tutorial that may be able to help solve your problem. The follow tutorial shows how to add Unreal Widgets to the Visual studio project and reference widgets that are within the editor on the C++ side. Hope this helps:

thanks for taking the time to answer. unfortunately the tutorial only solves one half of my problem. So to stick the link you posted, after doing it how its shown there i only have a reference to the main menu but not the “quit button”.
And that is the actual core of my question: how can i access a widget i placed in a widget blueprint?