slot in inherited class is not working…
I have an inherited class from a base class that is derived from QObject. Can someone tell me why my inherited class slot is not being invoked..
- {
- Q_OBJECT
- private:
- // etc......
- }
- class cls_B : public cls_A
- {
- private:
- cls_B()
- {
- // instantiate Serial Device Enumerator and get available serial ports
- m_sde = new SerialDeviceEnumerator(this);
- m_sde->setEnabled(true);
- }
- private slots:
- {
- // do something....
- }
- //......
- }
I run the application but GetDevices is not being invoked… Does cls_B have to have the Q_OBJECT declaration?
5 replies
You must log in to post a reply. Not a member yet? Register here!



