引用第2楼colourwoo于2013-03-11 16:09发表的 :
What you can do is just create a QDoubleValidator...retrieve the string from the QTableWidgetItem...and call the validate method of your QDoubleValidator passing it the value of your QTableWidgetItem. It will return a QValidator::State that you can check to make sure it is valid.
度娘真是渣。
某歌第一条。
.......
