I have a QFrame dropArea with QHBoxLayout inside a QScrollArea. Now I drop widgets on it with drag and drop.

Qt Code:
  1. ui.dropArea->layout()->addWidget(widget);
  2. ui.dropArea->adjustSize();
To copy to clipboard, switch view to plain text mode 

I can see the adjustSize() working, the dropArea is growing with every widget I drop. But when it reaches the limit, the scroll bars don't appear like they should. The scroll bar policies are set to the default "as needed" by Designer. What do I need to tweak?