call the other dialog through dialog
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:
Code:
#include "mainwindow.h"
#include "configuration.h"
mainWindow
::mainWindow(QWidget* parent, Qt
::WFlags fl
): QWidget( parent, fl
), Ui
::mainWindow() {
setupUi(this);
}
mainWindow::~mainWindow()
{
connect(btnSettings, SIGNAL(clicked()),this,SLOT(settings()));
}
void mainWindow::settings()
{
configuration * conf = new configuration();
conf->show();
}
but it did not work after I've compile it and click on the button. Where did I made a mistake?
Re: call the other dialog through dialog
Hi,
if you connect your signal in the destructor, this connection won't be of much use since the object will be destroyed right after your connect() call. Move this connect to constructor.
Ginsengelf
Re: call the other dialog through dialog