Of course you can always do something like this:
public:
// ...
if(exec())
return myresult();
else return "";
}
private:
QString myresult
() const { return ...
} };
class MyDialog : public QDialog {
public:
// ...
QString myExec(){
if(exec())
return myresult();
else return "";
}
private:
QString myresult() const { return ... }
};
To copy to clipboard, switch view to plain text mode
and call it using
MyDialog dlg;
MyDialog dlg;
QString r = dlg.myExec();
To copy to clipboard, switch view to plain text mode
Bookmarks