Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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

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


Log in to reply