PDA

View Full Version : How to read Monitor/display name



CSwanepoel
8th April 2011, 02:22
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

ChrisW67
8th April 2011, 05:56
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/

CSwanepoel
12th April 2011, 04:42
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