Connection failed on qchildevent after converting code from qt3 to qt4

The two connects in the qchildevent function in qt4 fail, and I have no idea why.

At the top left you see the values of the variables in qt4 and at the bottom right in qt3.

The only thing I notice is unknown ‘clas’.

Can anyone help me?

I think I found and solved (if there will be no side effects), there are different event handling in qt4.

This way the added event is called while the Sensors object is still being built, and the connect fails.

Sensor::Sensor(SensorsList *parent,const char *name): QObject(parent)

In this way the added event takes place after the construction of the Sensors

Sensor::Sensor(SensorsList *parent,const char *name): QObject()