[Qt-interest] (no subject)

Hasnat Raza hasnatzaidi at gmail.com
Mon Oct 5 06:38:15 CEST 2009


hey to all, i create the ui Files more than one. At the execution one Ui
file call successfully opened by the Pushbutton Clicked. But When I want to
open Another Ui file From Previous opened Ui file it can't open. The Code
are same, and i include also its header file But it can not work.
.cpp file is
sessiondetail::sessiondetail()
{
connect(ui->btn_s_2x,SIGNAL(clicked()),this,SLOT(on_btn_s_2x_clicked()));
}
// that window open successfully
void MainWindow::on_btn_screate_clicked()
{
Ui::sessiondetail ui;
QMainWindow *sessiondetail = new QMainWindow;
ui.setupUi(sessiondetail);
sessiondetail->show();
}
// this MainWindow2X not be open
void sessiondetail::on_btn_s_2x_clicked()
{
Ui::MainWindow2X ui;
QMainWindow *MainWindow2X = new QMainWindow;
ui.setupUi(MainWindow2X);
MainWindow2X->show();
}

sorry for poor english.
Thanks in ADvance
Regards, raza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091005/54390851/attachment.html 


More information about the Qt-interest-old mailing list