[Qt-interest] (no subject)
Yuvaraj R
yuvaraj at ongobiz.com
Mon Oct 5 06:45:51 CEST 2009
I hope this will help you
Ui::MainWindow2X ui*;
QMainWindow *MainWindow2X = new QMainWindow;
ui->setupUi(MainWindow2X);
MainWindow2X->show();
Thanks
Yuvaraj R
On Mon, Oct 5, 2009 at 10:08 AM, Hasnat Raza <hasnatzaidi at gmail.com> wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091005/efd96bc4/attachment.html
More information about the Qt-interest-old
mailing list