Hi
If you mean, do something like this:
emit NewMessage("some string");
emit NewMessage("some string");
To copy to clipboard, switch view to plain text mode
and in the slot have something like this:
void MyQObject
::OnNewMessage(QString messageString
) {
DisplayString(tr(messageString));
LogString(messageString);
}
void MyQObject::OnNewMessage(QString messageString)
{
DisplayString(tr(messageString));
LogString(messageString);
}
To copy to clipboard, switch view to plain text mode
That won't work. The string will never get translated as tr() needs a literal string.
Bookmarks