1.I create a QTreeWidgetItem
Qt Code:
  1. QTreeWidgetItem *cities = new QTreeWidgetItem(this);
  2. cities->setText(0, tr("Cities"));
To copy to clipboard, switch view to plain text mode 
and use lupdate and linguist to translate "Cities" into other languages.but it can not ,and "Cities" still exist.Why?
By the way,I create a Menu,
Qt Code:
  1. fileMenu = menuBar()->addMenu(tr("&File"));
To copy to clipboard, switch view to plain text mode 
and the program can do translation.