首页 > 技术文章 > QComboBox的activated与currentIndexChanged的区别

yunsicai 2015-04-26 13:50 原文

void activated ( int index )
void activated ( const QString & text )

信号activated是只要单击选择框即使所选内容选择前后没有变化也会触发此信号。

 

 

void currentIndexChanged ( int index )
void currentIndexChanged ( const QString & text )

信号currentIndexChanged 是在单击选择框仅当所选内容前后有变化时才会出发此信号。

 

转载: QComboBox的activated与currentIndexChanged的区别-http://blog.chinaunix.net/uid-22237858-id-68324.html

推荐阅读