# Is it posible to move a widget inside an UserWidget via code?

**URL:** <https://forums.unrealengine.com/t/is-it-posible-to-move-a-widget-inside-an-userwidget-via-code/591849>\
**Category:** C++\
**Tags:** unreal-engine, Widget, UE4, question, CPP\
**Created:** [June 27, 2022, 6:10pm UTC](https://forums.unrealengine.com/t/is-it-posible-to-move-a-widget-inside-an-userwidget-via-code/591849 "2022-06-27T18:10:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pitikixo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pitikixo](https://forums.unrealengine.com/u/Pitikixo)\
**Post date:** [June 27, 2022, 6:24pm UTC](https://forums.unrealengine.com/t/is-it-posible-to-move-a-widget-inside-an-userwidget-via-code/591849/2 "2022-06-27T18:24:33Z")

</div>

I’m still loking for the way to do this in C++ however I found the answer for blueprint method here: [Dynamically set widget position on canvas panel?](https://forums.unrealengine.com/t/dynamically-set-widget-position-on-canvas-panel/436026)  
I’ll post a picture of the blueprints nodes in case someone needs it, this nodes take the existing button (Button\_165) and every time it’s clicked, move its own position to (x+100,y)

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/a/05a276b150835670b69773985a4c9ec6ca1002e2.png)

---

_[View the full topic](https://forums.unrealengine.com/t/is-it-posible-to-move-a-widget-inside-an-userwidget-via-code/591849)._
