Preheat oven to 375 degrees Fahrenheit. Lightly grease a 9x13-inch baking dish.
In a medium bowl, whisk together the flour, sugar, baking powder and salt. Use a fork or pastry cutter to blend in the butter, and then the egg (the dough will be crumbly). You can alternately do this process in a food processor. Press ¾ of dough into the prepared pan.
In a separate large bowl, whisk together the sugar, cornstarch and lemon juice. Gently fold in the blueberries to coat evenly with the sugar mixture. Spread the blueberry mixture evenly over the crust, including all the juices.
Crumble the remaining dough evenly over the blueberry layer.
Bake for 45 to 50 minutes, or until the top is light golden brown. Cool completely before cutting into squares. Leftovers can be stored in an airtight container or wrapped in plastic wrap at room temperature or in the refrigerator.