Hi!
I have this "Line edit" and a "list View" now I would like to write something in the line edit and when I press enter I would like it to be displayed in the list view.
I've writen this small line but I have no Idea what I should write for index to be displayed in the list view.

Qt Code:
  1. void MainWindow::on_lineEdit_2_returnPressed()
  2. {
  3. on_listView_entered(line1->text());
  4.  
  5. }
  6.  
  7.  
  8. void MainWindow::on_listView_entered(QString index)
  9. {
  10.  
  11. }
To copy to clipboard, switch view to plain text mode 

best regards