I'm newbie and using qt creator. I want to make loop to read until 11th line from beginning of my text file.
After read read until 11th line of text file, i want to the double spin box value to 11th line.
My code does not work well. If explain just like use QTextStream, then i cannot understand. I'm newbie.
Can anyone know? and explain detail to newbie?
My text file is large, and qt version is 5.13
Qt Code:
void MainWindow::on_doubleSpinBox_6_editingFinished() { { int i=0; while (true) { if(i==10) { file = stream.readLine(); break; } else { i=i+1; } } } outputFile.close();To copy to clipboard, switch view to plain text mode
Bookmarks