Frage

I'm trying to make a questionnaire with Qt, using Qt Designer to design the forms.

I want to display each question and the possible answers on a line, one question under the previous one. The problem is that I've got too many question to fit in my window.

I tried using qtscrollarea but I can't manage to get the scroll bars....

I am using QtDesigner, I put a qtscrollarea, with a vertical layout in it, adding the QWidgets containing question and answers in the vertical layout. I tried to force the vertical layout to be bigger than the qtscrollarea, tried to change somme Qwidget to horiontal layout, taking off the vertical layout... But still no way to have a scroll bar.

Any advice on a way of doing it through QtDesigner?

War es hilfreich?

Lösung

Try this:

place a qtscrollarea

place in qtscrollarea widgets containing question and answers

right click on qtscrollarea and select layout, vertical in your case

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top