in the constructor of teh dialog, just send a variable by reference.
for instance:
{
public:
CmyDialog
(QString
& myString,
QWidget *parent
= 0);
~CmyDialog ();
//change myString in your code
}
class CmyDialog : public QDialog
{
public:
CmyDialog (QString& myString, QWidget *parent = 0);
~CmyDialog ();
//change myString in your code
}
To copy to clipboard, switch view to plain text mode
CmyDialog _MyDialog(strIwantMyDataBack, this);
_MyDialog.exec();
QString strIwantMyDataBack;
CmyDialog _MyDialog(strIwantMyDataBack, this);
_MyDialog.exec();
To copy to clipboard, switch view to plain text mode
For your interest
Bookmarks