Forward Slot from Class to other Class
-
Hi,
my class "Manager" has a slot " void setVisibleItem(bool on)" and a subclass the slot setVisible(bool on).
Now i tried to connect both slots like this:connect(this, SLOT(setVisibleItem(bool)), SM_Item, SLOT(setVisible(bool)));
i get the error message
undefiend reference to 'Manager::setVisibleitem(bool).How can i forward a slot?
Regards
Stefan -
Hi and welcome to devnet,
You can forward signals but not slots. If
setVisibleItem()
does nothing you can avoid it forwarding the signal to the sublass.
When is that slot called?