Skip to content

Commit

Permalink
support korean path
Browse files Browse the repository at this point in the history
  • Loading branch information
developer0hye committed Nov 25, 2021
1 parent af8d500 commit 09b7727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion label_img.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void label_img::showImage()

void label_img::loadLabelData(const QString& labelFilePath)
{
ifstream inputFile(labelFilePath.toStdString());
ifstream inputFile(qPrintable(labelFilePath));

if(inputFile.is_open())
{
Expand Down
6 changes: 2 additions & 4 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ void MainWindow::save_label_data()const
if(m_imgList.size() == 0) return;

QString qstrOutputLabelData = get_labeling_data(m_imgList.at(m_imgIndex));

ofstream fileOutputLabelData(qstrOutputLabelData.toStdString());
ofstream fileOutputLabelData(qPrintable(qstrOutputLabelData));

if(fileOutputLabelData.is_open())
{
Expand Down Expand Up @@ -221,11 +220,10 @@ void MainWindow::prev_label()

void MainWindow::load_label_list_data(QString qstrLabelListFile)
{
ifstream inputLabelListFile(qstrLabelListFile.toStdString());
ifstream inputLabelListFile(qPrintable(qstrLabelListFile));

if(inputLabelListFile.is_open())
{

for(int i = 0 ; i <= ui->tableWidget_label->rowCount(); i++)
ui->tableWidget_label->removeRow(ui->tableWidget_label->currentRow());

Expand Down

0 comments on commit 09b7727

Please sign in to comment.