The case is as follows:
You have the main window (ui1), which should contain two other user interfaces (ui2 and ui3). Neither ui2 nor ui3 care about any other uis. They only have slots to respond to, and they can also emit signals. See the figure below.
+----------------------------+
| +------+ +------+ |
| | | | | |
| | | | | |
| | | | | |
| | ui2| | ui3| |
| +------+ +------+ |
| |
| ui1 |
+----------------------------+
ui1 is loaded by the AppWindow class and used as follows:
...
int main(int argc, char *argv[])
{
CustomApp app(argc,argv);
AppWindow w;
w.show();
return app.exec();
}
What is the recommended way to create an AppWindow class? Any simple example?
thank
source
share