我希望我ComboBox必须适应我列表中width最长String Item的一个.
ComboBox
width
String Item
代码示例:
ComboBox { model: [ "Banana", "Apple", "ThisIsTheLongestWordThatIHave,"Coconut" ] }
知道怎么做吗?
combobox qml qt-quick
combobox ×1
qml ×1
qt-quick ×1