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. Resizing a compound screen
Forum Updated to NodeBB v4.3 + New Features

Resizing a compound screen

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.2k 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.
  • J Offline
    J Offline
    justdad
    wrote on last edited by
    #1

    I have a window with a TabWidget on it. In the TabWidget I have mutliple grid, horz and vert layouts. However, I can not get them to resize in real time as I change the size of the window. When I increase/descrease the size of the window(while the program is running), the elements just stay where they are and do not adjust (expand/shrink). Is the a good primer I could read on what is needed to make this work?

    Ken

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      This is about the "Qt layout system":http://developer.qt.nokia.com/doc/qt-4.7/layout.html#id-0fc13a1c-5bba-4687-9d05-258ff33ab357. There is a good explanation from the docs.

      Normally when you use for instance a qgridlauout with 3x3 buttons in it they will spread evenly when the window resizes.
      So in your case there must be something else going on.
      without the code or the ui we can only guess. Did you put all those layouts you mentioned in a layout also?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        My guess: the tab widget itself is not in a layout, or that layout is not the layout set on the form.

        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