Hey all!

I have a scroll area.
What I want is to dynamically create and add QTextEdit (with different text) in this scroll area. And depending on some variables, current QTextEdit will placed on the left or right hand side.
Think about facebook conversation : incoming messages will be on the left, and outgoing ones will be on the right.

To add QTextEdit to this area, I use QVBoxLayout : I begin to add new QVBoxLayout and in that layout I add my QTextEdit. And again and again, new QVBoxLayout below the older ones. After that, I apply Qt:Alignement to each of these layouts.
Why I add QVBoxLayout first ? Because It actually lets users to resize the window of the application while keeping the QTextEdit entirely visible in the area.

My problem is when I add these layouts, they all are visible in the area, that means their sizes are reduced.
I want them to have maximum height. Users will use the scrollbar of the scroll area to see other QTextEdit.

Can someone help me ? Thank you ..