Nominate our 2022 Qt Champions!

Resize QListWidget

  • Working with Creator, I have a dialog that contains a QListWidget. What settings to I need to change to have the QListWidget resize itself in response to the dialog being resized? Currently, if I drag the dialog larger, the QListWidget size remains the same. I've tried setting resizeMode to adjust, but that has no effect.

  • Moderators

    Put the list widget in a layout. Here's more on layouts in Qt.