开发者

Qt screen names?

I've found this article. But lets say I have three moni开发者_如何学Pythontors, how can I distinguish between them? Can I get the screen name (e.g. Samsung) somewhere?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜