How to set a custom central widget in mainwindow?

Anno v. Heimburg anno at vonheimburg.de
Mon Sep 17 11:03:03 BST 2001


Am Montag, 17. September 2001 07:05 schrieben Sie:
> Hi,
>
> I write my own main window (derived from QMainWindow) and
> set the central widget to a listview This is find.
>
> t how to set the central widget to a widget created by qt
> designer? The widget (created by qt designer) becomes a new
> parent and I have two widget.

Okay, say your class is DesignerWidget. You can't change that class' files, 
all changes would be lost. Rather, create a

class MyDesignerWidget extends DesignerWidget {
/*blah*
}

Instead of /*blah*/, you can now do all the changes to DesignerWidget that 
you couldn't do in Qt Designer.

HTH,
Anno.
-- 
Anno v. Heimburg
Please send all spam to null at rz.uni-karlsruhe.de
ICQ #106858752

-
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