Quote Originally Posted by anda_skoa View Post
Yes.


Yes. The connect() call's arguments are:

1) sender object
2) signal
3) receiver object
4) slot

Your original code was creating a Controls instance in the constructor and connected to it.
Your new code creates new Controls instances on every actionFile triggered(). If you want those instances to receive the signal as well, you connect to them as well.

Cheers,
_
If I copy the connect call from the ctor to the actionFile_triggered() method, the SLOT gets called for every entry that's in the list. That is for the initial entry, one call. The next instance doesn't signal the slot once, it get's called twice and so on. How do I fix that?