Nominate our 2022 Qt Champions!

Game resizes screen using SDL library and QDesktopWidget::screenGeometry returns the wrong dimensions

  • When I run certain games my application doesn't get the QDesktopWidget::resized signal. Also if I poll using the QDesktopWidget::screenGeometry function it returns the screen dimension before the game was ran. I asked the game developers how they were changing the screen resolution and they said they were using the SDL library. If I use the X11 xf86vmode extension I am able to get the correct screen resolution values, but I was hoping to use all Qt calls to make my application cross platform. Is there another way using Qt that I can try to get the screen resolution. Also, xrandr is showing the wrong screen resolution values after the game changes the resolution.

    OS: Fedora 8

Log in to reply