The case is as follows:
You have a main window (ui1) that is to contain two other UIs (ui2 and ui3). Neither ui2 nor ui3 care about any other uis. They only have slots to react to, and they might emit signals as well. See drawing below.
+----------------------------+
| +------+ +------+ |
| | | | | |
| | | | | |
| | | | | |
| | ui2| | ui3| |
| +------+ +------+ |
| |
| ui1 |
+----------------------------+
ui1 is loaded by AppWindow class and is used like this:
...
int main(int argc, char *argv[])
{
CustomApp app(argc,argv);
AppWindow w;
w.show();
return app.exec();
}
What is a recommended way of creating the AppWindow class? Any simple example?
Thanks