Hello All,

I have a QFrame with several QLabels in it managed by QVBoxLayout. The QFrame itself is placed on top of QGraphicsView and its size is not managed by any layout. I want to be able to add/remove QLabels and adjust the size of the QFrame accordingly, and I've thought that adjustSize() is what I need. But after adding one more child QLabel and calling adjustSize() the size of the QFrame remains the same ! Moreover its sizeHint() and minimumSizeHint() remains the same too.

What is the correct way to implement size adjusting when adding more child widgets ? Thanks in advance !