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. How to stop a widget from resizing
Forum Updated to NodeBB v4.3 + New Features

How to stop a widget from resizing

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

    Hi,
    I have created two dockable windows using QDockWidget and tabified them to the bottom. Now height of one dockable window is greater than another one so the smaller dockable window gets expanded to the height of bigger dockable window . So what i want is to restrict the height of bigger dockable window so that both windows are of same size.
    I dont want to use setmaxheight or setfixed size functions.
    Thanks

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Use a spacer in the layout. Then when the widget is totally displayed, it will not increase size.

      Greetz, Jeroen

      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