Hi All,

I am trying to wrap an activeX object with QAxWidget. The activeX object raises some events like "dataReady()". I am trying to connect these events to some slots in Qt. What I have observed is that if I call the connect method before the setControl then the connect method fails saying there is no such signal. But if I call the connect after the setControl then the connect call is successful.

Qt Code:
  1. b = connect(m_pAxWidget, SIGNAL(dataReady()), this, SLOT(check()));
  2. setControl( CLASSID );
To copy to clipboard, switch view to plain text mode 
The above fails with:
Object::connect: No such signal QAxBase::CardDataChanged() in MainWidget.cpp:16


Qt Code:
  1. setControl( CLASSID );
  2. b = connect(m_pAxWidget, SIGNAL(dataReady()), this, SLOT(check()));
To copy to clipboard, switch view to plain text mode 
This one is successful.

Does this mean that Qt is able to add signals and slots at run time? if so can anyone briefly describe the mechanism and let me know of the source code files or any place else where I can read about this.

If adding signals and slots at run time is possible then:

Is there a way I can propagate the signals emitted from a member object to the parent object at run time? I mean I don't know what signal the member object will emit but whatever it emits the parent should also emit.
eg:

class a
{
QAxWidget b;
}

Now I don't know what signals b emits but I want a mechanism such that whatever b emits a also should emit.

I hope I am clear.

Sky