I do a text output in QLabel from a database. In different cases, the text may be a lot, but it may not be at all.
To do this, I created a QScrollArea in the designer, and I put a QLabel inside, in which the text should be displayed. At the same time, the scroll depends on the size of the QLabel , even if there is no text at all - the scroll appears.
I tried different sizePolicy , set the minimum size of QLabel , nothing helps.
What needs to be done to adjust the size of the QLabel to the size of the text?

widgetResizablepropertywidgetResizabletotrue? - alexis031182true- then the scroll does not appear at all - Artem Paletsky