Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Dynamically resizing QSCrollArea internal widgets



  • Hi Guys

    I have the following layout in my application.
    @
    QScroll Area

    • QSrollArea's InternalWidget
      -QVBoxLayout
      -Layout 1
      - some items
      - QTableView
      -Layout 2
      - some items
      - QTableView
      @

    The contents of the QTableViews can change and I resize them dynamically. Currently when I programmatically increase the table size it is done correct, but when i shrink below the widget there is still an empty space.
    I have set setWidgetResizable( true ). Can you give me some advice on how to ensure proper resizing of all items.


Log in to reply