找回密码
 立即注册
收起左侧

ComboBox的currentIndexChanged信号找不到

5
回复
8398
查看
[复制链接]
累计签到:138 天
连续签到:1 天
来源: 2015-3-11 09:33:09 显示全部楼层 |阅读模式
1Qter豆
在文档里找不到这个信号啊

最佳答案

查看完整内容

他说得是QComboBox 和你QML里面的不一样
回复

使用道具 举报

累计签到:410 天
连续签到:1 天
2015-3-11 09:33:10 显示全部楼层
wxxzs123 发表于 2015-3-12 10:55
真没有啊,可能看的文档不一样

他说得是QComboBox  和你QML里面的不一样
回复

使用道具 举报

累计签到:138 天
连续签到:1 天
2015-3-11 10:15:53 显示全部楼层
原来是内建的信号,on<属性>Changed
回复

使用道具 举报

累计签到:595 天
连续签到:1 天
2015-3-12 09:08:14 显示全部楼层
Signals

void        activated ( int index )
void        activated ( const QString & text )
void        currentIndexChanged ( int index )
void        currentIndexChanged ( const QString & text )
void        editTextChanged ( const QString & text )
void        highlighted ( int index )
void        highlighted ( const QString & text )

你竟然没找到?
回复

使用道具 举报

累计签到:595 天
连续签到:1 天
2015-3-12 09:08:46 显示全部楼层
void QComboBox::currentIndexChanged ( int index ) [signal]
This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's index is passed or -1 if the combobox becomes empty or the currentIndex was reset.

This function was introduced in Qt 4.1.

void QComboBox::currentIndexChanged ( const QString & text ) [signal]
This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's text is passed.

This function was introduced in Qt 4.1.

这都是我从文档里复制出来的。
回复

使用道具 举报

累计签到:138 天
连续签到:1 天
2015-3-12 10:55:10 显示全部楼层
sywh 发表于 2015-3-12 09:08
Signals

void        activated ( int index )

真没有啊,可能看的文档不一样
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了