How to update QApplication::desktop size after xrandr ?
I'm currently trying to make a X11 desktop manager (login screen) xrandr aware. The Application holds an QApplication: and draws into a rectangle defined by QApplication::desktop::size which starts up as being 1650x1025.
When I apply an "xrandr -l left" (rotate) to the X server the orientation of the desktop widget does not change automatically. How do I force a recalculation of the desktop size ?
Connect to these signals, so you can react to desktop size changes: