make a wrapper for all of the static calls. copy the text to your file before calling the Qt static method
class MyMessageBox
{
public:
static void information
(...,
QString msg
) {
myfile << msg;
}
};
class MyMessageBox
{
public:
static void information(..., QString msg)
{
myfile << msg;
QMessageBox::information(..., msg);
}
};
To copy to clipboard, switch view to plain text mode
alternatively, emit a signal with the string as an argument, and connect to it with some logging class
emit MessageForLog(msg);
QMessageBox::information(..., msg);
emit MessageForLog(msg);
To copy to clipboard, switch view to plain text mode
Bookmarks