When a add a couple of widgets to a formLayout in a QDialog everything looks fine. But when I add a couple of widgets to a formLayout (in a QFrame) in a tab, they get resized in a weird way. Screenshot attached. Not sure what to google on this one.... need help!

What I want is a large number of QLineEdit's, one below the other, and a scrollbar in the tab. What is a recommended approach on this? A QScrollArea instead of a QFrame?

Screen_Shot_2015_04_20_at_19_32_01.png