Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, April 2007
Linking dialogs


Message 1 in thread

Hi. As a relative noob to QT4, I hope this question doesn't annoy anyone 2 
much.

I have a main winow which I created in the 'designer' program, as well as 
two dialogs. How do I link these two dialogs to the main window?

Thanks

_________________________________________________________________
Match.com - Click Here To Find Singles In Your Area Today! 
http://msnuk.match.com/

--
 [ signature omitted ] 

Message 2 in thread

Hi Marco,

you have to include the both dialogs to your main window's source file. 
Then you can create an instance of the other dialog in some action of 
your main window, e.g. a button handler. There you can simply do 
something like that:

void myButtonClickedSlot()
{
    MyOtherDialog dlg;
   dlg.exec();
}

Regards,
Falko

Marco Gallone schrieb:
> Hi. As a relative noob to QT4, I hope this question doesn't annoy 
> anyone 2 much.
>
> I have a main winow which I created in the 'designer' program, as well 
> as two dialogs. How do I link these two dialogs to the main window?
>
> Thanks
>
> _________________________________________________________________
> Match.com - Click Here To Find Singles In Your Area Today! 
> http://msnuk.match.com/
>
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

--
 [ signature omitted ]