📅  最后修改于: 2022-03-11 14:44:54.754000             🧑  作者: Mango
if myVariant.canConvert(QMetaType.Int):
value = myVariant.toInt()
elif myVariant.canConvert(QMetaType.QString)
value = myVariant.toString()