[Qt-interest] Creating UI files with Overridden Qt Classes
Raja Rokkam
rokkamraja at gmail.com
Sat Oct 10 14:08:32 CEST 2009
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.
On Sat, Oct 10, 2009 at 5:29 PM, John McClurkin <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
> 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/20091010/c471afbf/attachment.html
More information about the Qt-interest-old
mailing list