我在 MyForm ComboBox ( myComboBox )中使用EnumType myEnumType 。
在modified
方法中,我希望获得该值。
我使用代码看起来像:
if (myComboBox.enumTypeValue() == myEnumType::Value1 )
{
//action
}
或者其他方式
if (myComboBox.enumType(myEnumType::Value1) )
{
//action
}
在这两种情况下,我都不能接受这个价值。
是什么方式?谢谢,全部!
享受!
答案 0 :(得分:3)
要获取ComboBox的值,请使用HasLifecycleCallbacks
方法
selection