Thank you, that was it. I did a Layout->Layout in a grid and then it ran fine. The strange thing is that I could not reproduce the same layout using designer. I did it with the Qt plugin for Eclipse. I hope with experience will avoid such mistakes in the future but is there any way to ensure that there is always a top level layout?