//Тест #include #include #include #define charset "KOI8-R" int main(int argc, char *argv[]) { QApplication app(argc, argv); QTextCodec *codec = QTextCodec::codecForName(charset); QTextCodec::setCodecForTr(codec); QMainWindow *mw = new QMainWindow(0, Qt::Window); mw->setWindowTitle(QMainWindow::tr("Тестовое приложение на Qt4")); mw->resize(400, 300); mw->show(); return app.exec(); }