Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Game resizes screen using SDL library and QDesktopWidget::screenGeometry returns the wrong dimensions
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Game Development
1 Posts 1 Posters 1.4k 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.
  • B Offline
    B Offline
    bundickt
    wrote on last edited by
    #1

    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

    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