Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Webassembly number of screens



  • How can I find the number of screens/monitors that are available?
    Is this possible from Qt Webassembly?

    Edit:
    I understand there is a way to get the number of screens from Qt as follows:

    auto screens = qApp->screens();
    for (int i = 0; i < screens.count(); ++i) {
        qDebug() << i + 1 << screens[i]->geometry();
    }
    

    However When I use this in Qt Webassembly, it gives the wrong information.
    Is there any way to get around the Qt Webassembly not being able to call this system call properly?