int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTextCodec *codec = QTextCodec::codecForLocale();
QTextCodec::setCodecForTr(codec);
clientmainwindow w;
//QTextCodec *codec = QTextCodec::codecForLocale();
//w.setWindowTitle(codec->toUnicode("你好!"));
QFont font(QObject::tr("宋体"),9);
a.setFont(font);
w.show();
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}