查看表格汉字显示乱码修改
This commit is contained in:
parent
401d75ec43
commit
78e652354c
|
|
@ -636,7 +636,8 @@ void WellLogTableDialogNew::slotSave()
|
|||
char buf[513];
|
||||
if(field[j].RepCode == 6 || field[j].Reserved)
|
||||
{
|
||||
strcpy(buf, mColumn.toStdString().c_str());
|
||||
//strcpy(buf, mColumn.toStdString().c_str());
|
||||
strcpy(buf, mColumn.toLocal8Bit().data());
|
||||
logio->SetTableFieldData(iIndex, j, buf, row + 1);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -2775,7 +2775,8 @@ void GridDataAdapter::updatetTableWellLogData()
|
|||
QString Qbug = digDec(/*QString::fromLocal8Bit*/(buf));
|
||||
lstData<<DataPair(Qbug);
|
||||
}
|
||||
else lstData<<DataPair(buf);
|
||||
else lstData<<DataPair(QString::fromLocal8Bit(buf));
|
||||
//else lstData<<DataPair(buf);
|
||||
}
|
||||
data<<lstData;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user