Skip to content

Commit 09b7727

Browse files
committed
support korean path
1 parent af8d500 commit 09b7727

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

label_img.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void label_img::showImage()
161161

162162
void label_img::loadLabelData(const QString& labelFilePath)
163163
{
164-
ifstream inputFile(labelFilePath.toStdString());
164+
ifstream inputFile(qPrintable(labelFilePath));
165165

166166
if(inputFile.is_open())
167167
{

mainwindow.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ void MainWindow::save_label_data()const
131131
if(m_imgList.size() == 0) return;
132132

133133
QString qstrOutputLabelData = get_labeling_data(m_imgList.at(m_imgIndex));
134-
135-
ofstream fileOutputLabelData(qstrOutputLabelData.toStdString());
134+
ofstream fileOutputLabelData(qPrintable(qstrOutputLabelData));
136135

137136
if(fileOutputLabelData.is_open())
138137
{
@@ -221,11 +220,10 @@ void MainWindow::prev_label()
221220

222221
void MainWindow::load_label_list_data(QString qstrLabelListFile)
223222
{
224-
ifstream inputLabelListFile(qstrLabelListFile.toStdString());
223+
ifstream inputLabelListFile(qPrintable(qstrLabelListFile));
225224

226225
if(inputLabelListFile.is_open())
227226
{
228-
229227
for(int i = 0 ; i <= ui->tableWidget_label->rowCount(); i++)
230228
ui->tableWidget_label->removeRow(ui->tableWidget_label->currentRow());
231229

0 commit comments

Comments
 (0)