[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How to make qt dialog's the kmainwindow?
From:       Tim Brodie <tbrodie () displayworksinc ! com>
Date:       2001-10-30 20:50:09
[Download RAW message or body]

Tim Brodie wrote:
> 
> Thanks for replying, John.
> 
> John Gluck wrote:
> > In your application class try something like:
> >
> > MyDialog* pDialog = new MyDialog(Add, args, ...)
> > setCentralWidget(pDialog);
> 
> Which I did do, but the dialog box appears in a separate window and
> not in the centralwidget area. Any ideas as to why this might
> happen (ie where i should look)?

And that's because I selected an object type of QDialog which by
definition is it's own toplevel widget (duh....).  So I created
a new object of type QWidget and copied the contents of the 
dialog to the new one and viola!  It works fine.

Thanks for the help.

> 
> >
> > John
> >
> > Tim Brodie wrote:
> >
> > > Hi Folks!
> > >
> > > Another newbie question:
> > >
> > > I've created a dialog widget with QT Designer that I would like to
> > > "dock" into the KMainwindow area. It seems to be resisting my
> > > feeble attempts quite well.
> > >
> > > Can anyone offer an approach that should enable me to do this?
> > >
> > > Thanks...
> > >
> > > --
> > > Tim Brodie
> > >
> > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
> >
> >
> > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
> 
> --
> Tim Brodie, CTO
> Display Works Inc.
> 90 Milvan Drive, Toronto, Ontario CANADA M9L 1Z6
> Phone: 416-740-9677x29 Fax: 416-740-9971 http://www.displayworksinc.com
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

--
Tim Brodie, CTO
Display Works Inc.
90 Milvan Drive, Toronto, Ontario CANADA M9L 1Z6
Phone: 416-740-9677x29 Fax: 416-740-9971 http://www.displayworksinc.com
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic