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. QSplitter child widget sizes affect eachother
Forum Updated to NodeBB v4.3 + New Features

QSplitter child widget sizes affect eachother

Scheduled Pinned Locked Moved Unsolved General and Desktop
splitterlayout
3 Posts 2 Posters 556 Views 2 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.
  • K Offline
    K Offline
    karolus2c
    wrote on last edited by
    #1

    I have a QSplitter containing some widgets that can change size, basically they have a child widget that can be toggled shown or hidden. I made a minimal (PyQt5) example that shows the problem:

    Code: https://pastebin.com/raw/gQGPgy6d
    Demo: https://i.imgur.com/gMbO7Pq.gifv

    It looks like the size of one widget affects the size of the other widgets, which is really unintuitive. This also prevents the "collapsed" widget from actually being fully collapsed, it still takes up a lot of space.

    Is there a way to solve this?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of PyQt are you using ?
      How did you install it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karolus2c
        wrote on last edited by
        #3

        PyQt5 5.13.0, installed using pip.

        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