Hello guys,

I want to know how to run shell commands within Qt. This is my first application:

I want to find a File using file name and file location. But how can I do that? I try to do this:
Qt Code:
  1. void Dialog::on_lineEdit_textEdited(QString )
  2. {
  3.  
  4. }
  5.  
  6. void Dialog::on_lineEdit_2_textEdited(QString )
  7. {
  8.  
  9. }
  10.  
  11. void Dialog::on_pushButton_clicked()
  12. {
  13. QString strText = QString("find ./%1 -name \'%2\' | zenity --text-info --title \'Find Files\'").arg(lineEdit.text()).arg(lineEdit_2.text());
  14. }
To copy to clipboard, switch view to plain text mode 
But it doesn't work:
Qt Code:
  1. /home/tonto/Desktop/FindFiles/dialog.cpp:22: error: ‘lineEdit’ was not declared in this scope
  2. /home/tonto/Desktop/FindFiles/dialog.cpp:22: error: ‘lineEdit_2’ was not declared in this scope
To copy to clipboard, switch view to plain text mode 
So, can anyone help me? Thanks.

PS: I use Ubuntu Linux.