Hello everyone:
I have some trouble when I setWindowTitle in AIX.
my platform is:
OS: AIX 5.3.0.0
Qt: 4.5.2
When I use QWidget::setWindowTitle( tr("标题栏"));
of course, the title name is in chinese especially.
and when I run the applicatoin,the windows title can not display right.
the title string is show like "A ".

but the same code in AIX 6.2.1.0 or other linux OS is right!
so I don't know how to resolve it?

if i just user the Qt example like examples/widgets/lineedits
I rewrite the code in window.cpp:
Qt Code:
  1. Window::Window()
  2. {
  3. //....
  4. QLabel *echoLabel = new QLabel(tr("Mode:"));
  5. QString strLabel = QString("模式");
  6. echoLabel->setText(strLabel);
  7. //....
  8. QString strTitle = QString("标题栏");
  9. setWindowTitle(strTitle);
  10. }
To copy to clipboard, switch view to plain text mode 

and in main.cpp:
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QTextCodec* codec= QTextCodec::codecForName("GB2312");
  4. QTextCodec::setCodecForTr(codec);
  5. QTextCodec::setCodecForLocale(codec);
  6. QTextCodec::setCodecForCStrings(codec);
  7.  
  8. QApplication app(argc, argv);
  9. Window window;
  10. window.show();
  11. return app.exec();
  12. }
To copy to clipboard, switch view to plain text mode 

Then i run the lineedits application:
just the title show "A "
and the label is ok!