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

**URL:** <https://forums.unrealengine.com/t/how-do-i-a-link-widget-placed-in-the-editor-to-c/360766>\
**Category:** C++\
**Tags:** unreal-engine, gui, UE4, CPP, question\
**Created:** [June 14, 2016, 4:02pm UTC](https://forums.unrealengine.com/t/how-do-i-a-link-widget-placed-in-the-editor-to-c/360766 "2016-06-14T16:02:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_021891e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_021891e6](https://forums.unrealengine.com/u/anonymous_user_021891e6)\
**Post date:** [June 14, 2016, 4:02pm UTC](https://forums.unrealengine.com/t/how-do-i-a-link-widget-placed-in-the-editor-to-c/360766/1 "2016-06-14T16:02:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jackkell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jackkell](https://forums.unrealengine.com/u/Jackkell)\
**Post date:** [June 16, 2016, 2:56am UTC](https://forums.unrealengine.com/t/how-do-i-a-link-widget-placed-in-the-editor-to-c/360766/2 "2016-06-16T02:56:22Z")

</div>

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:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_021891e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_021891e6](https://forums.unrealengine.com/u/anonymous_user_021891e6)\
**Post date:** [June 16, 2016, 9:09am UTC](https://forums.unrealengine.com/t/how-do-i-a-link-widget-placed-in-the-editor-to-c/360766/3 "2016-06-16T09:09:26Z")

</div>

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?
