[Qt-interest] Generic Question
aashish sheshadri
aashish1989 at hotmail.com
Tue Nov 1 20:36:41 CET 2011
The object emitting the signal is in the base class, and the slot is of the derived class.
but=> connect(this,SIGNAL(BeginExec()),this,SLOT(LoadCalibParam()));is called in the constructor of the derived class.
Since I am working in the devired class, what should I use as the object instead of this.
Thanks
Date: Tue, 1 Nov 2011 14:04:04 -0500
From: joseph.w.crowell at gmail.com
To: aashish1989 at hotmail.com
Subject: Re: [Qt-interest] Generic Question
is this called in the base class or the derived class? one of the
classes won't be this?
On 11/1/2011 1:01 PM, aashish sheshadri wrote:
Thank you.
I ran qmake
again, and it works fine now.
In the same
context
connect(this,SIGNAL(BeginExec()),this,SLOT(LoadCalibParam()));
Above is in the constructor of the derived class
BeginExec() is a signal defined in the base class.
LoadCalibParam() is a slot defined in the derived class.
I have also make a virtual slot declaration of LoadCalibParam()
in the base class.
However, upon the signal being emitted, the slot is not being called.
your thoughts will be really helpful
Thanks
Aashish
> Date: Tue, 1 Nov 2011 17:32:06 +0100
> From: andre at bitwigglers.org
> To: gopalakbhat at gmail.com
> CC: aashish1989 at hotmail.com; qt-interest at qt.nokia.com
> Subject: Re: [Qt-interest] Generic Question
>
> > On Tue, Nov 1, 2011 at 7:02 PM, aashish sheshadri
> > <aashish1989 at hotmail.com>wrote:
> > > No i did not include Q_OBJECT in the private
section of my derived class.
> > > But after I did I get the error
> > >
> > > error: undefined reference to `vtable for
OpenCViso' in the OpenCViso
> > > constructor.
> Make sure you have the OpenCViso header file listed in
the HEADERS
> section of your .pro file and run qmake again, so that
moc can pick up
> the header.
>
> regards,
>
> Andre
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111101/94a97650/attachment.html
More information about the Qt-interest-old
mailing list