Just adding

setupUI (this);

to the dialog constructor fixed the problem, along with just using the following declaration in my class procedure:

Dialog *D1 = new Dialog;

Thanks for the replies.