title: Store QLineEdit's data into a QString upon a QPushButton click
body: <p>I am new to Qt programming. What I want to do is pretty much self explanatory from the title I guess. I have a lineEdit whose data I want to store in a QString when a cretain PushButton is clicked. The problem is the above widgets are inside a graphicsScene so i dont have a 
      on_pushbutton_clicked();
  function.</p>
  
  <p>The code for my own solution is below, but as you might have guessed, its not working.</p>
  
  <pre><code>QLineEdit *l = new QLineEdit ;
  QPushButton *b = new QPushButton;
  
  QGraphicsProxyWidget *line = scene.addWidget(l);
  QGraphicsProxyWidget *button = scene.addWidget(b);
  
  line-&gt;setPos(-600,270);
  button-&gt;setPos(-600,310);
  //b-&gt;clicked();
  
  QString input;
  QString input = l-&gt;text(input);
  
  
  QObject::connect(b,SIGNAL (clicked()),l, SLOT (setText(QString)));
  </code></pre>
  
  <p>Any kind of help will be greatly appreciated.</p>