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. Cant get monitor information
Qt 6.11 is out! See what's new in the release blog

Cant get monitor information

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 365 Views 2 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.
  • ademmlerA Offline
    ademmlerA Offline
    ademmler
    wrote on last edited by ademmler
    #1

    Hi,

    I try to collect monitor information. I am testing on MacOS X 10.14.6 computer.
    Having an EIZO Monitor via Thunderbolt and USB connected.

    QList<QScreen *> list = QGuiApplication::screens();
    qDebug() << "Screens: " << QGuiApplication::screens() 
    << " " << list[0]->manufacturer() 
    << " " << list[0]->model() 
    << " " << list[0]->name();
    

    The result:

    Screens:  (QScreen(0x7fbf58f6ec50, name="CG246"))   ""   ""   "CG246"
    
    artwawA 1 Reply Last reply
    0
    • ademmlerA ademmler

      Hi,

      I try to collect monitor information. I am testing on MacOS X 10.14.6 computer.
      Having an EIZO Monitor via Thunderbolt and USB connected.

      QList<QScreen *> list = QGuiApplication::screens();
      qDebug() << "Screens: " << QGuiApplication::screens() 
      << " " << list[0]->manufacturer() 
      << " " << list[0]->model() 
      << " " << list[0]->name();
      

      The result:

      Screens:  (QScreen(0x7fbf58f6ec50, name="CG246"))   ""   ""   "CG246"
      
      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @ademmler you have the model name - that's all the monitor itself provides to the system. Qt relies on system information, there is no magic involved. You see what system sees.

      For more information please re-read.

      Kind Regards,
      Artur

      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