Gtk ComboBox width based on contents

半腔热情 提交于 2019-12-23 21:00:31

问题


I'm dynamically populating the options to a GTK3 ComboBox that has an Entry. Some the options can be quite long, and I'd like to be able to make the ComboBox wider if there are wide items in my model. Is there a way to do this?

(It would be especially nice if the combobox could be expanded automatically but with an upper limit that could be set.)

来源:https://stackoverflow.com/questions/11975230/gtk-combobox-width-based-on-contents

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!