Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt doesn't recognise second monitor

Qt doesn't recognise second monitor

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 953 Views 1 Watching
  • 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.
  • N Offline
    N Offline
    nikit
    wrote on last edited by
    #1

    Hi,
    I have 2 screens connected.
    My app detects 2 monitiors in extended mode of display.
    int screenrecount = QApplication::screens().size();
    qDebug() << "screens().size()" << screenrecount;
    ---> output = screens().size() = 2

    But when I set mirror mode through display settings, I get count as screens().size() = 1

    Why is it so that in extended mode it shows 2 screens and in mirror mode it is showing only 1 screen?

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Doesn't mirror mode mean that exactly the same is shown on both displays? So, from system/application point of view there is no difference between one display and two in mirror mode.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • N Offline
        N Offline
        nikit
        wrote on last edited by
        #3

        Thank you for the reply.
        I want to disable the second monitor which is the mirror mode. Is it not possible?
        I can disable the second monitor in extended mode.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          What do you mean by "disable the second monitor in extend mode" ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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