# Error - Child and Parent widget both have a widget hierarchy?

**URL:** <https://forums.unrealengine.com/t/error-child-and-parent-widget-both-have-a-widget-hierarchy/1219499>\
**Category:** Programming & Scripting\
**Tags:** error, ue4-editor, unreal-engine, Widget, question\
**Created:** [July 4, 2023, 8:00pm UTC](https://forums.unrealengine.com/t/error-child-and-parent-widget-both-have-a-widget-hierarchy/1219499 "2023-07-04T20:00:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [July 4, 2023, 8:00pm UTC](https://forums.unrealengine.com/t/error-child-and-parent-widget-both-have-a-widget-hierarchy/1219499/1 "2023-07-04T20:00:16Z")

</div>

I’m using 4.27. I have a widget that I made into a child of another widget by using the re-parent blueprint command. Now when I compile, I get an error _“This widget and parent class widget both have a widget hierarchy, which is not supported. Only one of them should have a widget tree.”_

I don’t know what this is saying or how to fix it. I searched google and found the UE4 doc on Widget tree, but it’s a bunch of code stuff that I don’t understand. Is there a simple way to fix this?

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [July 22, 2023, 3:17am UTC](https://forums.unrealengine.com/t/error-child-and-parent-widget-both-have-a-widget-hierarchy/1219499/2 "2023-07-22T03:17:30Z")

</div>

I figured out that it was due to the fact that the parent widget had a canvas panel in it. As soon as I deleted this, the error went away.

---

<div class="post-metadata">

**Author:** ![DehoEdeba](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dehoedeba/32/88710_2.png) [@DehoEdeba](https://forums.unrealengine.com/u/DehoEdeba)\
**Post date:** [May 24, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/error-child-and-parent-widget-both-have-a-widget-hierarchy/1219499/3 "2024-05-24T15:39:20Z")

</div>

Thank you, had the same problem and your follow-up answer helped me solve it in no time. Cheers.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 23, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/error-child-and-parent-widget-both-have-a-widget-hierarchy/1219499/4 "2024-06-23T15:39:52Z")

</div>

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