[Qt-interest] (no subject)

Yuvaraj R yuvaraj at ongobiz.com
Mon Oct 5 11:09:13 CEST 2009


I had two extra ui files right .

1)mainwind.ui

2) yuvaraj.ui

When you are clicking the push button. mainwind.ui will be called..

Here i am explain details.. I am not sure ,this is correct or wrong.

Yuvaraj.ui is not called..see the class name of yuvaraj.ui and mainwindow.ui
are same...

So prabably if set the yuvaraj.ui.. It won't show anything.


Thanks

Yuvaraj R


On Mon, Oct 5, 2009 at 2:33 PM, Hasnat Raza <hasnatzaidi at gmail.com> wrote:

> Hi Yuvraj , *Youraj.ui* not called. same procedure are work on my side but
> 2nd time page calling are not work. Like when i make slot at MainWindow  on
> its PushButton its error is
> "class definition of *'Ui::MainWindow'* could not found.
>
> Thanks
>
> On Mon, Oct 5, 2009 at 11:21 AM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
>
>> Hi Hasant..
>>
>> Proper code
>>
>> ui->setupUi(this);
>>
>> Here i attached the sample project
>>
>>
>> Thanks
>>
>> Yuvaraj R
>>
>> On Mon, Oct 5, 2009 at 11:05 AM, Hasnat Raza <hasnatzaidi at gmail.com>wrote:
>>
>>> Thanks Yuvraj. But still page not call which i want and no error in
>>> program.
>>> that function why not working...Even its slot is correct
>>> void sessiondetail::on_btn_s_2x_clicked()
>>>
>>> {
>>>
>>> Ui::MainWindow2X *ui;
>>>
>>> QMainWindow *MainWindow2X = new QMainWindow;
>>>
>>> ui->setupUi(MainWindow2X);
>>>
>>> MainWindow2X->show();
>>>
>>> }
>>> again thanks for helping me
>>>
>>> On Mon, Oct 5, 2009 at 10:01 AM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
>>>
>>>> Ui::MainWindow2X  *ui instead of Ui::MainWindow2X ui*;
>>>>
>>>> Thanks
>>>>
>>>> Yuvaraj R
>>>>
>>>> On Mon, Oct 5, 2009 at 10:25 AM, Hasnat Raza <hasnatzaidi at gmail.com>wrote:
>>>>
>>>>> its create error like this
>>>>>  error: expected primary-expression before "ui"
>>>>>  error: `setupUi' has not been declared
>>>>>  error: request for member of non-aggregate type efore '(' token
>>>>> thanks
>>>>> On Mon, Oct 5, 2009 at 9:45 AM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
>>>>>
>>>>>> 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/fe6af07d/attachment.html 


More information about the Qt-interest-old mailing list