First things I notice are that you don't set a parent for the group box and you don't add it to a layout.

Try doing that and see if you get anymore problems.