I have a QDialog with a pushbutton on it, and when I click the pushbutton, I want another QDialog window in a separate ui file to open. I have a dialog class (with the pushbutton in), but I can't figure out how to use the other ui file to create the window. I've included settings.h (the file that's automatically generated when I compile the program) and added it to the Ui namespace, then tried to create a settings object with "Ui::settings foo;", but I keep getting the same compiler error:

"c:\programs\qt\sim\dialog.h:67: error: C2079: 'Dialog::foo' uses undefined class 'Ui::settings'"