From kde-devel Tue Oct 30 20:50:09 2001 From: Tim Brodie Date: Tue, 30 Oct 2001 20:50:09 +0000 To: kde-devel Subject: Re: How to make qt dialog's the kmainwindow? X-MARC-Message: https://marc.info/?l=kde-devel&m=100447519020027 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 <<