Hi
I'm using public member-functions to get data from a called Dialog.
#ifndef A_H
#define A_H
#include <QtGui/QDialog>
namespace Ui {
class a;
}
Q_OBJECT
public:
~a();
protected:
private:
Ui::a *m_ui;
};
#endif // A_H
#ifndef A_H
#define A_H
#include <QtGui/QDialog>
namespace Ui {
class a;
}
class a : public QDialog {
Q_OBJECT
public:
a(QWidget *parent = 0);
~a();
QString getA();
protected:
void changeEvent(QEvent *e);
private:
Ui::a *m_ui;
};
#endif // A_H
To copy to clipboard, switch view to plain text mode
Calling the Dialog ...
void Dialog::calla()
{
a x;
x.exec();
ui->a_lineEdit->setText(x.getA());
}
void Dialog::calla()
{
a x;
x.exec();
ui->a_lineEdit->setText(x.getA());
}
To copy to clipboard, switch view to plain text mode
Could someone point me other ways to do this!
Thanks
Bookmarks