QScrollArea max-height

  • I’d like to set the max-height of a QScrollArea…

    <q-scroll-area style=“max-height: 400px;”>
    …a list of stuff…

    …does not work. If “…a list of stuff…” is long the max-height of the scroll area would be 400px, if it’s only a few elements it would be less than 400px, sized to the content appropriately.

    Setting max-height for QInfiniteScroll components works as expected.

    Any ideas/workarounds would be appreciated.

  • Any hints on this?

  • Set the property on the inner element not on QScrollArea

Log in to reply