How to do Hitbox/Hurtbox in 2D with Sprites?

I’m using 4.7.6 and I wanted to know if there was anyone good place/advice for making hurt and hitboxes in 2D? I want my character to swing a weapon that would be the hitbox and I’m really just not sure how to go about this.
Thanks!
I want to be able to check for collision and if the object colliding is a certain type, trigger some event
someone please help, theres like no documentation for 2D c++