2

I've found this article. But lets say I have three monitors, how can I distinguish between them? Can I get the screen name (e.g. Samsung) somewhere?

Community
  • 1
  • 1
eric
  • 21
  • 2

2 Answers2

3

From what I know, Qt only provides functionality to determine how many screens are available, what the index of the primary screen is, and what the geometry for a particular screen is.

Assuming you're working under Windows:

You could try to see if the IDs assigned, match those that the OS assigns in your multi-monitor configuration. If you want to go more low level than that, you might want to have a look at this thread instead.

Community
  • 1
  • 1
Bart
  • 19,692
  • 7
  • 68
  • 77
1

Qt5 has QGuiApplication::screens(i) with QScreen::name() and (from 5.9 on) even ::model().

Martin Hennings
  • 16,418
  • 9
  • 48
  • 68