Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt Webassembly number of screens

    Qt for WebAssembly
    webassembly screen monitor
    1
    1
    243
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AliGB last edited by AliGB

      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?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post