get all (virtual) desktops on a physical Desktop
-
Hello !
I am using QList<QScreen*> sl = QGuiApplication::screens() to get all physical Desktops. But how can I access the virtual ones ?
Best Regards,
Martin -
Hi,
Virtual desktops are platform / window manager dependent, so I don't think Qt offers any way to access them.
-
Hi,
you can use
QDesktopWidget
to access to all your screens; but if you use a virtual desktop you get always the same widget -
-
Hi,
Did you check the screen count returned by QDesktopWidget ?
-
@SGaist yes :-) It's says 2 if I attach a second Monitor. So thats the way I checked that this function may only count physical displays.
-
Sorry, I've thought you wanted to know the number of screens of the current desktop. As already stated the virtual desktop handling itself is not part of Qt. It something that is highly platform / desktop env dependent. I'm not even sure Windows currently has anything like that. What environment are you currently targeting ?
-
@SGaist I use Systemversion: OS X 10.9.5 (13F1077) Kernel-Version: Darwin 13.4.0
-
What would you need from the Space API ?