Quote Originally Posted by nurtsi View Post
My test setup is such that I have two X screens: :0.1 on the left and :0.0 on the right. When I run my test app, I get the following:

Qt Code:
  1. 0x147b5c0 display :0.1
  2. 0x147b6d0 display :0.1
To copy to clipboard, switch view to plain text mode 
Isn't that the information you are looking for?

Quote Originally Posted by nurtsi View Post
Looking at Qt source it looks like QXcbScreen::screenNumber() would return what I need. Is there any way to access this information? I don't see it (or anything about virtual desktops) in QPlatformNativeInterface.
Hmm.

A bit hackish but you could include qxcbscreen.h and then cast the QScreen::handle() to that and access the function.

Cheers,
_