Qt comBox按钮怎么获取当前值

1.currentIndex(); 获取当bai前ducomBox的索引,是int类型的值。
2.currentText(); 获取当前comBox的文本dao,是QString类型。
3.currentData(int role = Qt::UserRole)获取当前comBox绑定的数据,是QVariant类型。

原文地址:https://www.cnblogs.com/ybqjymy/p/13785711.html