[Qt-interest] Creating UI files with Overridden Qt Classes
John McClurkin
jwm at nei.nih.gov
Sun Oct 11 19:23:24 CEST 2009
Raja Rokkam wrote:
> Thanks John for the quick reply. Just to confirm:
>
> I have:
>
> QMyWidget: public QWidget
> and my Application needs to have the following structure
> ApplicationWidget: public QMyWidget
>
> So, If I do a promote from QWidget to QMyWidget, it will achieve what I
> need ?
>
>
> Thanks,
> Raja.
Yes. Look at the QtDesigner documentation on widget promotion.
>
> On Sat, Oct 10, 2009 at 5:29 PM, John McClurkin <jwm at nei.nih.gov
> <mailto:jwm at nei.nih.gov>> wrote:
>
> Raja Rokkam wrote:
> > Hi All,
> >
> > I have created a .UI file and in that I want the parent class
> of say
> > dialog to be QMyWidget instead of QWidget. I have extended and
> > overridden the QLineEdit class. Is there a way we can specify while
> > creating the .ui itself to set the parent as QMyWidget ? Or how
> else can
> > it be done so that when I run the .ui file to create from
> myWidget parent.
> >
> >
> > Thanks,
> > Raja.
> If you are using QtDesigner, just put a QWidget in your design and
> promote it to QMyWidget.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list