QtGui.QComboBox控件常用函数
2015-08-25 10:05
489 查看
感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正! 如果转载,请保留作者信息。 博客地址:http://blog.csdn.net/qq_21398167原博文地址:http://blog.csdn.net/qq_21398167/article/details/47972825
QtGui.QComboBox控件常用函数: .addItem(string) #添加字符串项到Item .addItems(list) #添加列表或元组元素到Item .clear() #清除所有Item .clearEditText() #清除编辑框内容 .count() #返回Item数目 .currentIndex() #返回当前选择索引,从0开始 .currentText() #返回当前选择内容 .insertItem(index,string) #插入字符串项到Item项index后 .insertItems(index,list) #插入列表或元组元素到Item项index后 .insertSeparator(index) #插入分隔符到Item项index后 .itemText(index) #返回Item项index的内容 .removeItem(index) #删除Item项index .setCurrentIndex(index) #设置Item项index为当前选择 .setEditable(True) #设置选框可编辑 .setEditText(string) #设置编辑框内容 .setItemText(index,string) #设置Item项index内容为字符串值
相关文章推荐
- Android Studio failed to find build tools revision 19.1.0 问题
- leetcode: (232) Implement Queue using Stacks
- UGUI(六)资源下载之Icon
- UGUI(五)动画系统
- UGUI(四)事件系统的封装
- 解决 ffmpeg yasm not found, use --disable-yasm for a crippled build
- Request(对象)
- UGUI(三)无限循环列表
- The request sent by the client was syntactically incorrect
- UITableViewCell自定义右边的文字以及更改左边图片的大小
- UGUI(二)摄像机渲染纹理
- request
- UGUI(一)List列表的封装
- 【IOS】高仿网易4.0新UI框架
- Gradle build设置自动log开关
- UIScrollView
- NSIS 的 Modern UI 教程(一)
- NSIS 的 Modern UI 教程(二)
- UIWindow & UIWindowLevel
- 统计 p-value 含义