That is because naamLineEdit is a pointer to your QLineEdit.
And you will need to call the text() member function to return the text as a QString, so code will become something like:
Qt Code:
  1. out << this->ui->naamLineEdit->text();
To copy to clipboard, switch view to plain text mode