Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

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?