[Qt-interest] Creating UI files with Overridden Qt Classes

Raja Rokkam rokkamraja at gmail.com
Tue Oct 13 08:46:34 CEST 2009


Thank you, John for the quick reply and help.

-Raja.

On Sun, Oct 11, 2009 at 10:53 PM, John McClurkin <jwm at nei.nih.gov> wrote:

> 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
> >
> >
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091013/97dec027/attachment.html 


More information about the Qt-interest-old mailing list