intresult=QMessageBox::question(this,tr("Info"),tr("When Changeing card type, the data and keys in this app will be cleard.")+"\n"+tr("Continue?"),QMessageBox::Yes|QMessageBox::No);
intresult;
if(id>typeBtnGroup->checkedId())// id is specified in uiInit() with a proper order, so I can compare the size by id.
{
result=QMessageBox::question(this,tr("Info"),tr("When Changeing card type, the data and keys in this app will be cleard.")+"\n"+tr("Continue?"),QMessageBox::Yes|QMessageBox::No);