Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devwiki:python_qt [2020/06/16 22:10]
ying [Text Widget]
devwiki:python_qt [2020/06/16 22:10] (current)
ying [Text Widget]
Line 1211: Line 1211:
 # make the combobox dropdown size to a manual fix witdh # make the combobox dropdown size to a manual fix witdh
 cur_choice.view().setMinimumWidth(500) cur_choice.view().setMinimumWidth(500)
-some other option ​to auto grow, but not always show to fit max content width+make the combobox dropdown size to auto grow, but not always show to fit max content width
 cur_choice.view().setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,​ QtWidgets.QSizePolicy.Preferred) cur_choice.view().setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding,​ QtWidgets.QSizePolicy.Preferred)