A glue mousetrap structure with a warning function including primarily a baseboard and a carrier arranged on top of the baseboard. A support body is arranged at a center between the baseboard and the carrier to allow the carrier to sway full-directionally. On a periphery of the carrier is arranged a plurality of sensing members that are connected to a control circuit provided with display lamps. When in use, a glue mousetrap board is placed on the carrier which is then placed on a ceiling or in an appropriate place. When a mouse steps on the glue mousetrap board, the carrier will sway under the weight and trigger the plurality of sensing members. The display lamps are thereby turned on to perform a warning function to remind a user to promptly dispose of the captured mouse and prevent mouse carcass from giving off stench and having a bad impact on environmental hygiene after being left unattended for a long time.