How to update QApplication::desktop size after xrandr ?

  • Hi,

    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 ?

    Thanks 10^6


  • Connect to these signals, so you can react to desktop size changes:

    • QDesktopWidget::resized
    • QDesktopWidget::workAreaResized

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.