Project
Command
Communication
Configuration
Controller
DB
GUI (Main,Splash,Plot,..)
Libs/Deps (QWT,..)
Peripheral (UsbInterface,PCIInterface,..)
Resources (Icons,Fonts,..)
main.cpp
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setStyle("Fusion");
...
Splash *Splash = new Splash(nullptr);
Splash->show();
...
GUI gui;
QObject::connect(&gui, ...
gui.show();
//gui->startupSequence();
...
Thread thread;
QObject::connect(&thread, ...
thread.start();
...
int ret = app.exec();
...
thread.terminate();
//thread.stop();
...
delete Splash;
return ret;
}