Qt World Summit: Submit your Presentation

ScrollArea and TabWidget resizing

  • Hi all,
    I am having trouble with my app. I am not able to configure wigets to behave acording to my needs, I would appreciate help.

    This is "sketch" of my real app

    So the main widget of MainWindow is scrollArea.
    ScrollArea has vertical layout and contains 3 items.

    1. Is big button, which represents constant sized area in my real app
    2. Is spacer
    3. TabWidget, has layouts on both tabs.

    Now my problem. I am putting dynamically content into those tabs and I expect that if tab content cannot fit the tab than it will expand TabWidget in the scroll area.

    Now it is filling space right when it fits the place, nice spacing and so. But if I fill it with lets say more lines, than I can see the lines dissapearing somewhere down the tab and if I expand whole window TabWidget gets more space and more of my hiden widgets gets revealed.

    Any ideas how can I force the content of the tabwidget to expand it rather then hide under?

    Thank you,

  • c'mon, no tip at all :) ? Somebody must know what to do :(

  • Hi Adam,

    I'm not sure I understand your question. Perhaps you can also provide a screenshot of what is currently happening that you don't want to happen?

Log in to reply