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. How to get physical screen infomation when display mirror?
Forum Updated to NodeBB v4.3 + New Features

How to get physical screen infomation when display mirror?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 408 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.
  • B Offline
    B Offline
    Boewey
    wrote on last edited by
    #1

    I have an external monitor on my windows pc, I can get both monitors information when set to extend display mode, but when I set display mode to mirror, QGuiApplication::screens() can only get the information of one display.

    Chris KawaC 1 Reply Last reply
    0
    • B Boewey

      I have an external monitor on my windows pc, I can get both monitors information when set to extend display mode, but when I set display mode to mirror, QGuiApplication::screens() can only get the information of one display.

      Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Boewey Qt on Windows uses EnumDisplayMonitors API to list display screens. There's only one display screen in the mirror mode, so that's what you get.
      If you want information about the physical devices connected to your system you would use the EnumDisplayDevices API instead, but I don't think there's any Qt wrapper over it.

      B 1 Reply Last reply
      2
      • Chris KawaC Chris Kawa

        @Boewey Qt on Windows uses EnumDisplayMonitors API to list display screens. There's only one display screen in the mirror mode, so that's what you get.
        If you want information about the physical devices connected to your system you would use the EnumDisplayDevices API instead, but I don't think there's any Qt wrapper over it.

        B Offline
        B Offline
        Boewey
        wrote on last edited by
        #3

        @Chris-Kawa Thanks.

        1 Reply Last reply
        0
        • B Boewey has marked this topic as solved on

        • Login

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