Hi
I'm using public member-functions to get data from a called Dialog.
Qt Code:
  1. #ifndef A_H
  2. #define A_H
  3.  
  4. #include <QtGui/QDialog>
  5.  
  6. namespace Ui {
  7. class a;
  8. }
  9.  
  10. class a : public QDialog {
  11. Q_OBJECT
  12. public:
  13. a(QWidget *parent = 0);
  14. ~a();
  15. QString getA();
  16. protected:
  17. void changeEvent(QEvent *e);
  18. private:
  19. Ui::a *m_ui;
  20. };
  21.  
  22. #endif // A_H
To copy to clipboard, switch view to plain text mode 

Calling the Dialog ...
Qt Code:
  1. void Dialog::calla()
  2. {
  3. a x;
  4. x.exec();
  5. ui->a_lineEdit->setText(x.getA());
  6. }
To copy to clipboard, switch view to plain text mode 

Could someone point me other ways to do this!

Thanks