From 6ed22da05b872a65f1ad2b1cc607daf7840b6a34 Mon Sep 17 00:00:00 2001 From: Yonghye Kwon Date: Wed, 14 Nov 2018 22:54:10 +0900 Subject: [PATCH] Fix Bug: Read names failure with white space --- mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index faeb66e..635cb33 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -239,10 +239,8 @@ void MainWindow::load_label_list_data(QString qstrLabelListFile) ui->label_image->m_drawObjectBoxColor.clear(); string strLabel; - QStringList verticalHeaderLabels; - int fileIndex = 0; - while(inputLabelListFile >> strLabel) + while(getline(inputLabelListFile, strLabel)) { int nRow = ui->tableWidget_label->rowCount(); std::cout << nRow << endl;