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 fix Widget size in QSplitter?
Forum Update on Monday, May 27th 2025

How to fix Widget size in QSplitter?

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

    I use QSplitter to layout my widgets,all the widgets are the same.I don't want to change the widget's size after the layout,but drag the QSplitter handle can change the widget's size. How can I fix the widget's size in QSplitter?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raaghuu
      wrote on last edited by
      #2

      Do you want the parentWidget to remain fixed or the individual widgets(seperated by QSplitter)?

      the parentWidget can be fixed by setFixedSize()

      for the childWidgets, you need to use something else as a separator(QSplitter is meant to make resizable widgets within another widget)... There is a Vertical Line Component in Qt Designer(don't know its hard-coded equivalent, though you could use a QFrame for it)

      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