Qt6:移除[signal] void QComboBox:: currentIndexChanged (const QString & text )信号

Qt6:移除[signal] void QComboBox:: currentIndexChanged (const QString & text )信号

Qt下拉框QComboBox类

检测了好几遍代码,发现代码没有问题,但就是触发不了void QComboBox:: currentIndexChanged (const QString & text )这个信号,其他信号都可以触发。
最后,通过对比qt 6.0.1和qt 5.12.9的文档发现,qt 6.0.1中已经没有[signal] void QComboBox:: currentIndexChanged (const QString & text )信号了。

Qt 6.0.1

qt6.0.1版本
一共7个信号,不包含[signal] void QComboBox:: currentIndexChanged (const QString & text ),[signal] void QComboBox:: activated (const QString & text ),[signal] void QComboBox:: highlighted (const QString & text )这三个信号。
新增[signal, since 5.14] void QComboBox:: textActivated (const QString & text )和[signal, since 5.14] void QComboBox:: textHighlighted (const QString & text ),这两个信号是从qt 5.14开始引入的。
Qt 5.12.9
qt5.12.9版本
一共8个信号,包含[signal] void QComboBox:: currentIndexChanged (const QString & text )。

猜你喜欢

转载自blog.csdn.net/weixin_45355387/article/details/117768452