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 control size of widgets of QSplitter container?

How to control size of widgets of QSplitter container?

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

    Hello

    I need a QSplitter with fixed-seze right side and expanding left side. tried with change horizontal stretch of right widgets to 0 and left widgets to 1 but not works and also inner layout of right widgets are impaired.

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

      What I found out worked as an approach, is to only put QWidgets or other containers in the different pannels of your splitter. These you can give a horizontal stretch. Then, put the contents of the panels as children of these container widgets, and apply a layout as normal to anchor the contents to the container.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        Thanks.
        It works well. I expected a solution based on QSplitter itself, feeling it should be related to splitter itself. not children :-/

        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