Hi, I am currently working on a project where I must implement the facade design pattern.
Here is the general set up of the project.

The Qt project is composed of sub projects all grouped into one subdirs project.

I have a QtMainProject in which the purpose is to load the main container UI and load the other sub projects via plugin loader.

I have a QtTemplateProject that holds the main user interface of the project. Some modules inherit the user interface for reusability.

The other modules are loaded via pluginloader. I'm a bit new to the facade design pattern and would want to know how I could make it work in such a way that the objects of the modules loaded can interact with one another.

e.g.

int main
{

//load plugins here
//declared Facade class here?
}




class Facade
{

public:

private:
ClassModule1 _varName1;
ClassModule2 _varName2;
ClassModule3 _varName3;

};