Important: Please read the Qt Code of Conduct -

how to use sizeAdjustpolicy of QcomboBox?

  • i was experimenting with the functions of QcomboBox. In qt documentation in the page of qcomboBox there is a public type(sizeAdjustPolicy). i was trying to use i. i clicked on to see its code.But did not understand it. What should be the proper code of using sizeAdjustpolicy of QcomboBox.

  • Lifetime Qt Champion

    ui->comboBox->setSizeAdjustPolicy( QComboBox::SizeAdjustPolicy::AdjustToMinimumContentsLength);

Log in to reply