1.currentIndex(); 获取当bai前ducomBox的索引,是int类型的值。
2.currentText(); 获取当前comBox的文本dao,是QString类型。
3.currentData(int role = Qt::UserRole)获取当前comBox绑定的数据,是QVariant类型。
1.currentIndex(); 获取当bai前ducomBox的索引,是int类型的值。
2.currentText(); 获取当前comBox的文本dao,是QString类型。
3.currentData(int role = Qt::UserRole)获取当前comBox绑定的数据,是QVariant类型。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。