Results 1 to 3 of 3

Thread: How to read Monitor/display name

  1. #1
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to read Monitor/display name

    I need to get the names of the monitors/displays plugged in.

    E.g. Samsung XXXX, HP XXXX or Dell XXXX

    QDesktopWidget only return the basic information and I couldn't find anything on the web that could help me.

    desktop()->screen(0)->accessibleName() returns an empty string.

    Is there anyway of getting the monitor/display names by usint QT?

    Kind regards

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to read Monitor/display name

    Through platform dependent APIs to query the monitor EDID I would imagine.

    On Windows the information can be accessed with VBScript so it should be fairly easy to get at: http://www.robvanderwoude.com/files/dispedid_vbs.txt
    On Linux you could look at how read-edid does it: http://www.polypux.org/projects/read-edid/

  3. #3
    Join Date
    Apr 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to read Monitor/display name

    Thanks Chris,

    I really hoped it would not be needed for me to call OS dependent API's.

    So far it looked like your option is the only one I guess

    Regards

Similar Threads

  1. How to read and display BMP image just using QT's GUI?
    By everlasting525 in forum Newbie
    Replies: 5
    Last Post: 3rd April 2011, 23:57
  2. Replies: 4
    Last Post: 17th September 2010, 20:18
  3. Replies: 3
    Last Post: 17th March 2010, 10:31
  4. How to read rtf file and display it?
    By sunnysun520 in forum Qt Programming
    Replies: 2
    Last Post: 16th May 2009, 14:48
  5. How to Read and display BMP image using QT
    By agsrinivasan in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2007, 07:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.