QtDesigner - stupid programmer question
Matthew Singer
msinger at seatech.fau.edu
Tue Mar 20 13:52:05 GMT 2001
Thanks
Richard Moore wrote:
>
> Matthew Singer wrote:
> >
> > I'm moving an app from KDE1 to KDE2. I have a dialog as the main view
> > within
> > a KTMainWindow. Were previously I had a setView(dialogWidget). I now
> > have setCentralWidget(dialogWidget). This of course from withing the app
> > widget.
> > Now, my dialog is a popup rather than embedded within the main window.
> > How do get it embedded again?
>
> Make your 'dialog' a QWidget subclass instead of a QDialog
> subclass. QDialogs shouldn't be embedded in the way you describe.
> The parent of a dialog is used to decide where it should be
> placed (and when it is destroyed) not its position in the widget
> hierarchy.
>
> If you need to use the widget in a dialog as well you can simply
> instert your widget into an empty dialog.
>
> Rich.
>
> >
> > -
> > to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> > unsubscribe »your-email-address«
>
> --
> Richard Moore rich at ipso-facto.freeserve.co.uk
> http://developer.kde.org/ rich at kde.org
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
--
Matthew R. Singer
msinger at seatech.fau.edu
Real Time Systems Engineer Voice: 954-924-7052
Florida Atlantic University Fax : 954-924-7007
Seatech Research Center
"It's not a good omen when goldfish commit suicide"
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list