直接强制转换

Field_Type a = (Field_Type)ui->comboBox_type->currentIndex();

Field_Type就是一个枚举

 

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-08-04
  • 2021-08-21
相关资源
相似解决方案