[Qt-interest] Doubts about the Plugin Framework

Ender EREL erelender at yahoo.com
Wed Mar 17 09:17:37 CET 2010


I think you may consider reviewing your design there. Don't forget the 
principle that signals should not be interested in what's connected to 
them so use them as fire-and-forget type of constructs.

Quoting from Qt Docs:

"Signals and slots are loosely coupled: A class which emits a signal 
neither knows nor cares which slots receive the signal."
... and ...
"Signals are emitted by objects when they change their state in a way 
that may be interesting to other objects. This is all the object does to 
communicate. It does not know or care whether anything is receiving the 
signals it emits. This is true information encapsulation, and ensures 
that the object can be used as a software component."

Of course, this is not mandatory but it's just good practice.

Best Regards.
-- 
Ender EREL



More information about the Qt-interest-old mailing list