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. Re sizing main window and widgets. [SOLVED]
QtWS25 Last Chance

Re sizing main window and widgets. [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
layoutdisplayguiresize
2 Posts 2 Posters 1.0k Views
  • 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.
  • P Offline
    P Offline
    pmaurais
    wrote on last edited by pmaurais
    #1

    I am trying to make it so a GUI I built in Qt will re size to any users window. I know this is traditionally done using a layout manager, however none of the layout managers suit my needs. Every manager seems to create disproportional widgets. Is there any way to just make of my widgets and certain percent of the screen. I want to maintain the current relative positioning of my widgets and just have them re size as the screen re sizes by the same factor.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      well people seems to be able to 100% control it
      using layout and QSizePolicy (sizePolicy ) and others settings, but I guess its a trial and error process.
      I have never seen option for settings as %. (only in my wet dreams)

      or you can override
      protected:
      virtual void resizeEvent(QResizeEvent *e);

      and size the widgets yourself.

      Or you can write a custom layout.

      1 Reply Last reply
      1

      • Login

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