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. Layout Management - a few questions.
QtWS25 Last Chance

Layout Management - a few questions.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 535 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.
  • I Offline
    I Offline
    itsmemax
    wrote on last edited by
    #1

    So, I'm nearly done with my second layout management:
    !http://i.epvpimg.com/h71pg.png(picture goes here)!

    Now, I've got two questions.
    (1) I want to let the "Swells" Groupbox and Table resize horizontally, all the other groupboxes/widgets shouldn't resize horizontally. How?
    (2) I want the "Swells Copy" Groupbox and Table resize vertically, the "Crescendo" groupbox shouldn't resize. How?
    (3) Also, how can I dynamically change the horizontal DefaultSectionSizes of the QTableWidgets when the window resizes? So that they fit.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Hi, to (1) and (2):
      You can do that by using sizePolicy and/or setting minimumSize/maximumSize for GroupBox and Table.
      You might also put all elements into one GridLayout and use the spacers.
      AFIK the changing of DefaultSectionSize must be coded separately.

      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