To be consistent in app launching, port back to Qt 5. Also, bump the C++ standard to 23, well, just because, and make the installer prompt display on both monitors, instead of just one.pull/2/head
parent
c2ac6af2d9
commit
ca33c24096
@ -1,11 +1,29 @@
|
|||||||
#include "installerprompt.h"
|
#include "installerprompt.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
#include <QScreen>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication app(argc, argv);
|
||||||
InstallerPrompt w;
|
QList<InstallerPrompt*> windows;
|
||||||
w.showFullScreen();
|
|
||||||
return a.exec();
|
// Iterate through all available screens
|
||||||
|
for (QScreen *screen : QApplication::screens()) {
|
||||||
|
InstallerPrompt *window = new InstallerPrompt();
|
||||||
|
window->setGeometry(screen->geometry());
|
||||||
|
window->show();
|
||||||
|
windows.append(window);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connect signals and slots to synchronize state across windows
|
||||||
|
for (InstallerPrompt *window : windows) {
|
||||||
|
for (InstallerPrompt *otherWindow : windows) {
|
||||||
|
if (window != otherWindow) {
|
||||||
|
// Connect signals and slots for synchronization
|
||||||
|
// Example: connect(window, &InstallerPrompt::someSignal, otherWindow, &InstallerPrompt::someSlot);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue