Setting text on a QLabel in a layout, doesn't resize
问题 Using the designer in Qt creator I have created a dialog that contains various widgets in a vertical layout. One of the widgets is a QLabel with word wrap set to true. The text for the QLabel is set just before the dialog is shown. The maximum width and height of the QLabel is 16777215, the vertical size policy is set to Expanding and the horizontal is Preferred . I've tried changing changing the size policy. The problem I have is that if the text is large, the QLabel fails to be adjusted