Hi, I was able send Selecteditem of QListView to a QLineEdit in next window, now I need to send that Selecteditem’s Query information to Second Window’s Form fields. Do I need to use QStringList to hold all the information? Or any other way? guide me thanks

Here is the source of firstwindow.cpp:

Qt Code:
  1. void MainWindow::showValue(){
  2.  
  3.  
  4.  
  5. GetValue *v = new GetValue(ui->listView->currentIndex().data().toString());
  6.  
  7. this->hide();
  8.  
  9. v->show();
  10.  
  11. v->setWindowTitle("Form Information");
  12.  
  13. }
To copy to clipboard, switch view to plain text mode 

The Second WIndow’s code:

Qt Code:
  1. GetValue::GetValue(const QString &text,QWidget *parent) :
  2.  
  3. QMainWindow(parent),
  4.  
  5. ui(new Ui::GetValue)
  6.  
  7. {
  8.  
  9. ui->setupUi(this);
  10.  
  11. ui->lineEdit->setText(text);
  12.  
  13. }
To copy to clipboard, switch view to plain text mode 

Here I need to show information from first window in the form of a query like:

Qt Code:
  1. Select * from User where UserName="Selecteditem";
To copy to clipboard, switch view to plain text mode 

All the information relating to that row will be displayed in the Second Window’s fields.