C++ (Qt)#include <QTextCodec> int main(int argc, char *argv[]){ QApplication app(argc, argv); QTextCodec* tc = QTextCodec::codecForName("utf-8"); QTextCodec::setCodecForTr(tc); QTextCodec::setCodecForCStrings(tc); QTextCodec::setCodecForLocale(tc); ... return app.exec();}
StandardToolBar->addAction(QPixmap(":/toolbar/toolbar/open.xpm"), tr("Open"), this, SLOT(OpenFile()));