Hi,
I have a class and dll structure similar to the following...
Specific.dll
class Form
- contains a Controller *mController
- contains a CustomDoubleSpinBox*mCustomDoubleSpinBox
class Controller
- has signal MySignal(double,double,double)
Common.dll
class CustomDoubleSpinBox
- derives from QDoubleSpinBox
- has slot MySlot(double, double, double)
In the Form class, I create the following connection:
connect( mController, SIGNAL(MySignal(double,double,double)), mCustomSpinBox, SLOT(MySlot(double,double,double)));
connect( mController, SIGNAL(MySignal(double,double,double)), mCustomSpinBox, SLOT(MySlot(double,double,double)));
To copy to clipboard, switch view to plain text mode
This connection fails. The error I get in the output window is:
Object::connect: No such slot QDoubleSpinBox::MySlot(double,double,double)
I am able to call the slot function normally, and the slot is a member of CustomDoubleSpinBox, not QDoubleSpinBox as is printed in the output...
I'm not quite sure why this is happening...perhaps it has to do with the signal and slot being in different DLLs?
All help is greatly appreciated Thanks!
Bookmarks