Close widget on click

I always thought that the “remove from
parent” would do it, but apparently
not!

This definitely does work.

292085-capture.png

Show us how you do it. Perhaps you create more than one widget at the same location and they overlap.