查看表格中文引起的无法查看问题。
This commit is contained in:
parent
9c8539db81
commit
a887e9c2ab
|
|
@ -2613,7 +2613,7 @@ void GridDataAdapter::initTableWellLogData(DType type,QList<CObjWellLog*> WellLo
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
char name[100];
|
char name[100];
|
||||||
strcpy(name,m_pWellLogs[0]->GetName().toLocal8Bit().toStdString().c_str());
|
strcpy(name,m_pWellLogs[0]->GetName().toStdString().c_str());
|
||||||
int iIndex=logio->OpenTable(name);
|
int iIndex=logio->OpenTable(name);
|
||||||
if (iIndex >=0)
|
if (iIndex >=0)
|
||||||
{
|
{
|
||||||
|
|
@ -2747,7 +2747,7 @@ void GridDataAdapter::updatetTableWellLogData()
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
char name[100];
|
char name[100];
|
||||||
strcpy(name,m_pWellLogs[0]->GetName().toLocal8Bit().toStdString().c_str());
|
strcpy(name,m_pWellLogs[0]->GetName().toStdString().c_str());
|
||||||
int iIndex=logio->OpenTable(name);
|
int iIndex=logio->OpenTable(name);
|
||||||
if (iIndex >=0)
|
if (iIndex >=0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1123,6 +1123,8 @@ QString GBKToUTF8(const QByteArray& gbkData) {
|
||||||
|
|
||||||
// UTF-8 转 GBK
|
// UTF-8 转 GBK
|
||||||
QByteArray UTF8ToGBK(const QString& utf8Str) {
|
QByteArray UTF8ToGBK(const QString& utf8Str) {
|
||||||
|
// 此处编码 库加了#pragma execution_character_set("utf-8") ,是否正确???
|
||||||
|
return utf8Str.toStdString().c_str();
|
||||||
QTextCodec* gbkCodec = QTextCodec::codecForName("GBK");
|
QTextCodec* gbkCodec = QTextCodec::codecForName("GBK");
|
||||||
if (!gbkCodec) {
|
if (!gbkCodec) {
|
||||||
return QByteArray();
|
return QByteArray();
|
||||||
|
|
|
||||||
|
|
@ -2012,8 +2012,10 @@ void QtProjectWidgets::onDeleteObject()
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<QString> listDeleteObject = mapDeleteObject[strSlfName];
|
QList<QString> listDeleteObject = mapDeleteObject[strSlfName];
|
||||||
for (int j=0; j<listDeleteObject.size(); j++)
|
for (int j = 0; j < listDeleteObject.size(); j++)
|
||||||
logio->DeleteObject(listDeleteObject.at(j).toLocal8Bit().data());
|
{
|
||||||
|
logio->DeleteObject(listDeleteObject.at(j).toStdString().c_str());
|
||||||
|
}
|
||||||
logio->Close();
|
logio->Close();
|
||||||
delete logio;
|
delete logio;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user