Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Qt Webassembly number of screens
QtWS25 Last Chance

Qt Webassembly number of screens

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
webassemblyscreenmonitor
1 Posts 1 Posters 444 Views
  • 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 Offline
    A Offline
    AliGB
    wrote on 27 Nov 2020, 16:55 last edited by AliGB
    #1

    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
    0

    1/1

    27 Nov 2020, 16:55

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved