I'm using a dialog box created in Qt Creator, class called Ui_DIalog. The dialog displays when I use it but the window title is just the name of my project, not the designed window title, and the widgets don't show: 6 labels, a lineEdit , and OK and cancel buttons. None of them display. The dialog is called within another class member procedure. The code is:


Ui_Dialog D1;

if(D1.exec() == QDialog::Accepted)
{ // some code }

Any help with this would be appreciated. Thanks in advance.