Hi,

thank you, but i have a problem.

I do this e.g.:
Qt Code:
  1. void MyMainWindow::createActions()
  2. {
  3. actionOpen = new QAction(QIcon(":/myPic.png"), tr("&Open File"), this);
  4. }
To copy to clipboard, switch view to plain text mode 

and i must do this:
Qt Code:
  1. void MyMainWindow::retranslate()
  2. {
  3. actionOpen->setText(tr("&Datei öffnen"));
  4. }
To copy to clipboard, switch view to plain text mode 
I think that’s dirty and a lot to do, but it’s OK.

What can i do in a function like that:
Qt Code:
  1. void AnyWidget::anyFunction(){
  2. QString html;
  3.  
  4. html.append("<table border=\"0\" width=\"100%\">");
  5. html.append("<tr><td>" + tr("Text to Translate") + "</td>");
  6. html.append("<td>" + tr("Text to Translate") + "</td></tr>");
  7. html.append("</table>");
  8.  
  9. myTextEdit->document()->setHtml(html);
  10. }
To copy to clipboard, switch view to plain text mode 
I can’t translate in retranslate()

Thanks in advance,

Whitefurrows