# Why shouldn't I inherit from SWindow? 

**URL:** <https://forums.unrealengine.com/t/why-shouldnt-i-inherit-from-swindow/2667653>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor, slate, CPP, question\
**Created:** [October 22, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/why-shouldnt-i-inherit-from-swindow/2667653 "2025-10-22T14:51:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![holly.savin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/holly.savin/32/1123753_2.png) [@holly.savin](https://forums.unrealengine.com/u/holly.savin)\
**Post date:** [October 22, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/why-shouldnt-i-inherit-from-swindow/2667653/1 "2025-10-22T14:51:50Z")

</div>

I’ve seen some advice to avoid inheriting from SWindow and I did have issues when trying to set up a custom class that does.

I’m happy with the conclusion to avoid doing so and have since developed another solution. I would like to know why this should be avoided?

Would anyone be able to provide more insights into why this is best practice? TIA
