How to use UUserWidget?

Hi,
take a look at this :
A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums.

You need to include Slate, SlateCore and UMG in your project.build.cs file.