How can the combobox update the popup's size after adding item
Mihan last edited by
I want to make the combobox's popup to be able to auto-update size after adding item.
when I clicked the combobox, the popup would be shown. Then other module would search something and it will add items into combobox. Generally, the popup's size will not be changed and the popup will show a scrollbar in it(current items count < max visible items count).
So how to make it.
@Mihan See https://doc.qt.io/qt-5/qcombobox.html#maxVisibleItems-prop, but read the "Note" there also.