Qt, read the data of one-dimensional array and two-dimensional array in txt file, independent document display

Relying on the desktop display

getLine(QString("C:/Users/12845/Desktop/CYS_design/0825_data/GYB/GYB-16Ziz.txt"), this->gyb_16_Ziz);

Independent document display

//pro文件添加
DESTDIR += ../Magnetic_0114/
getLine(QDir::currentPath().append("/0825_data/GYB/GYB-16Ziz.txt"), gyb_16_Ziz);

Guess you like

Origin blog.csdn.net/qq_43641765/article/details/112707039