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. Resize main window and widgets inside it on screen/monitor size change
Qt 6.11 is out! See what's new in the release blog

Resize main window and widgets inside it on screen/monitor size change

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 599 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.
  • T Offline
    T Offline
    tesmai4
    wrote on last edited by
    #1

    My MainWindows is subclassing QMainWindow.
    I have multiple monitors. My mainwindow and widgets inside the main loose their aspect ratio after moving from one screen to other.

    How can I resize my main window according to new screen size while maintaining the aspect ratio?

    I tried following this, it didn't help in my case.

    Thanks in advance.

    Regards,

    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