qtqt-designerqscrollarea

QScrollArea not showing a scrollbar


I have a infoWindow which is a QWidget, and I can open it by clicking info in the QMainWindow or by the key combination Ctrl+Alt+I.

infoWindow contains vertical layouts holding the videos' metadata, and all the layouts are inside a QScrollArea.

enter image description here

The problem is, even though the data exceeds the window's max height, which I want to be a static 640x480, there is no scrolling bar showing.

enter image description here


Solution

  • Your QScrollArea is missing a layout itself (red stop sign on layout icon of tree). The total size of area is tracked by layout. You likely have set fixed or minimal sizes for each panel and add, let's say, vertical layout to QScrollArea.