czyBlog icon indicating copy to clipboard operation
czyBlog copied to clipboard

用release编译能读不能写,用的QT5.9

Open ghost opened this issue 7 years ago • 0 comments

QString xlsFile = QFileDialog::getExistingDirectory(this); if(xlsFile.isEmpty()) return; xlsFile += "/excelRWByCztr1988.xls"; if(m_xls.isNull()) m_xls.reset(new ExcelBase); m_xls->create(xlsFile); //返回true m_xls->setCurrentSheet(1); // 返回true m_xls->writeCurrentSheet(write_data); //返回false,write_data已测试行数为187 m_xls->save();

ghost avatar Oct 09 '18 15:10 ghost