hi..

Im new to Qt and this is my first time programming c++ along with Qt. Im now working on my undergraduate project to create a front-end to mencoder utility. I develop this application using KDevelop and this is what I want to do right now:
- call the other dialog from one running dialog

my project consists of several form, I got one main form that will call other form with a click of button. let say in my main form I want to call 'settings' form. So my main window source file i did this:

Qt Code:
  1. #include "mainwindow.h"
  2. #include "configuration.h"
  3.  
  4. mainWindow::mainWindow(QWidget* parent, Qt::WFlags fl)
  5. : QWidget( parent, fl ), Ui::mainWindow()
  6. {
  7. setupUi(this);
  8. }
  9.  
  10. mainWindow::~mainWindow()
  11. {
  12. connect(btnSettings, SIGNAL(clicked()),this,SLOT(settings()));
  13. }
  14.  
  15. void mainWindow::settings()
  16. {
  17. configuration * conf = new configuration();
  18. conf->show();
  19. }
To copy to clipboard, switch view to plain text mode 
but it did not work after I've compile it and click on the button. Where did I made a mistake?