[Qt-interest] (no subject)
Yuvaraj R
yuvaraj at ongobiz.com
Mon Oct 5 08:21:40 CEST 2009
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/b6baabf8/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yu.zip
Type: application/zip
Size: 7090 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091005/b6baabf8/attachment.zip
More information about the Qt-interest-old
mailing list