Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to update QApplication::desktop size after xrandr ?
Qt 6.11 is out! See what's new in the release blog

How to update QApplication::desktop size after xrandr ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oncaphillis
    wrote on last edited by
    #1

    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

    O.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

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

      • QDesktopWidget::resized
      • QDesktopWidget::workAreaResized

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved