You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
installer-prompt/src/main.cpp

29 lines
780 B

#include "installerprompt.h"
#include <QApplication>
#include <QScreen>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QList<InstallerPrompt*> 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();
}