Test code for getting a rectangle behind buttons using Qt