#include "installerprompt.h" #include #include int main(int argc, char *argv[]) { QApplication app(argc, argv); QList ws; // Iterate through all available screens for (QScreen *screen : QApplication::screens()) { InstallerPrompt *w = new InstallerPrompt(); w->setGeometry(screen->geometry()); w->show(); ws.append(w); } for (InstallerPrompt *w : ws) { for (InstallerPrompt *otherWindow : ws) { if (w != otherWindow) { // Connect signals and slots for synchronization // Example: connect(ws.last(), &InstallerPrompt::someSignal, otherWindow, &InstallerPrompt::someSlot); } } } return app.exec(); }