[Qt-interest] Basic question on QWidget
Abhishek Patil
abhishekworld at gmail.com
Fri Jan 1 18:36:30 CET 2010
On Friday 01 Jan 2010 10:06:38 pm Nitin Mahajan wrote:
Hi,
> >
> > > When I remove Slider from B, I cannot see B's widget
> >
> > at all bing displayed
> >
> > > as a Child of A.
> > >
> > > Now I created one more object directly from QWidget
> >
> > and set A as parent. It
> >
> > > shows, where as if the child is derived from
> >
> > QWidget it does not show up
> >
> > > at all. Can someone please give me some pointers
> >
> > towards whats the basic
> >
> > > thing that is going wrong here?
> >
> > could your please explain this part .... code will be more
> > useful..
>
> Thanks for creating the code from the explaination.
>
> Here is the second situation.
>
> A::A(QWidget* parent)
>
> :QWidget(parent)
>
> {
> QWidget* obj = new QWidget(this);
> }
>
could you please explain
"Now I created one more object directly from QWidget and set A as parent. It
shows"
QWidget* obj = new QWidget(this);
this will show single blank window nothing else ...
enjoy
-- Abhishek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100101/fc648442/attachment.html
More information about the Qt-interest-old
mailing list