Can a QComboBox resize itself when its parent changes size?

  • I place a variety of widgets in a QGridLayout and expect them to resize themselves (according to the desired set[Column/Row]Stretch factors) when I stretch the containing widget. Many widgets (e.g. QLabel, QLineEdit, QTextEdit behave as expected. Unfortunately, QComboBox does not.

    Is it possible to convince it to exhibit that behavior?

  • Qt Champions 2017

    ComboBox have fix height sat
    alt text

    So it wont grow in height just like QPushButtons. But you can just change it.

  • use resizeEvent in parent

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.