Important: Please read the Qt Code of Conduct -

[SOLVED] Scrollarea doesn't show scrollbars and doesn't grow with

  • Hey,

    I want to show my own QWidget, created by QtDesigner in my MainWindow also created by QtDesigner. The MainWindow got a scrollarea with a scrollAreaWidgetContents layout. So, my scrollarea should display several instance of my own QWidget in it. The problem now is that my QWidgets are displayed but overlap eachother and the scrollarea doesn't show the scrollbars and doesn't grow with. I hope you can unterstand my problem and I know my english isn't the best :(.

    Here is my code:
    @ //instance 1 of QWidget
    ab = new ablauf();
    //instance 2 of QWidget
    auto *ab2 = new ablauf();

    //add QWidget to Scrollarea layout
    //set some props


  • Okay, I just changed the layout from the scrollarea. Now it's working.

Log in to reply