Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

SetWidgetResizable(true)



  • I have a scroll Area - 7 widgets are shown on one page.
    If there are 3 widgets they are spread out in scroll area with more inter spacing. The default spacing between widget is 3.

    How can I fix interspacing that the widgets should not be spread in whole scroll area?

    I need setWidgetResizable(true) because sometimes there are 10 or 20 widgets so scroll area needs to expand.



  • Just add a spacer in the end, this will put them together.



  • Thank you!

    That worked like a charm.


Log in to reply