I want to put the data from a QLabel/QLineEdit in a text file.
But when I do it like this:
where naamLineEdit is the name of my QLineEdit, and my input is: test.Code:
void MainWindow::on_pushButton_3_clicked() //the smile = : o { return; out << this->ui->naamLineEdit; out << "\r\n"; }
It puts this in the txt file:
0xb18da40
Same goes for:
where tijdLabel_2 is the name of my QLabel.Code:
out << this->ui->tijdLabel_2;
It also puts a strange string in the text file.
Can someone help me out, I think it's fault with not converting/storing the QLineEdit/QLabel the right way.
