#include <QtGui>#include "mainwindow.h"int main(int argc, char *argv[]){ QApplication a(argc, argv); QTextCodec* codec = QTextCodec::codecForName("UTF-8"); QTextCodec::setCodecForTr(codec); QTextCodec::setCodecForCStrings(codec); QTextCodec::setCodecForLocale(codec); QString sys_lang = QLocale::system().name(); QTranslator translator; if (sys_lang == "ru_RU" || sys_lang == "ru") { translator.load("lang_ru", QCoreApplication::applicationDirPath()); a.installTranslator(& translator); } QFile llog(QCoreApplication::applicationDirPath() + "/llog.txt"); llog.open(QIODevice::ReadWrite); llog.write(QString("PrefixPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::PrefixPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("DocumentationPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::DocumentationPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("HeadersPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::HeadersPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("LibrariesPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::LibrariesPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("BinariesPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::BinariesPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("PluginsPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::PluginsPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("ImportsPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::ImportsPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("DataPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::DataPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("TranslationsPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::TranslationsPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("SettingsPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::SettingsPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("ExamplesPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::ExamplesPath).toAscii()); llog.write(QString("\n").toAscii()); llog.write(QString("DemosPath: ").toAscii()); llog.write(QLibraryInfo::location(QLibraryInfo::DemosPath).toAscii()); llog.write(QString("\n").toAscii()); llog.close(); MainWindow w; w.show(); return a.exec();}
[Paths]Prefix = c:/my_projects/build-Qtimer-Desktop-Release/release/Plugins = ppppp
PrefixPath: C:\Qt\4.8.4DocumentationPath: C:\Qt\4.8.4\docHeadersPath: C:\Qt\4.8.4\includeLibrariesPath: C:\Qt\4.8.4\libBinariesPath: C:\Qt\4.8.4\binPluginsPath: C:\Qt\4.8.4\pluginsImportsPath: C:\Qt\4.8.4\importsDataPath: C:\Qt\4.8.4TranslationsPath: C:\Qt\4.8.4\translationsSettingsPath: C:/Qt/4.8.4ExamplesPath: C:\Qt\4.8.4\examplesDemosPath: C:\Qt\4.8.4\demos
PrefixPath: q:\install\qt-4.8.4DocumentationPath: q:\install\qt-4.8.4\docHeadersPath: q:\install\qt-4.8.4\includeLibrariesPath: q:\install\qt-4.8.4\libBinariesPath: q:\install\qt-4.8.4\binPluginsPath: C:\Qt\qtcreator-2.7.0\pluginsImportsPath: C:\Qt\qtcreator-2.7.0\binDataPath: q:\install\qt-4.8.4TranslationsPath: q:\install\qt-4.8.4\translationsSettingsPath: q:/install/qt-4.8.4ExamplesPath: q:\install\qt-4.8.4\examplesDemosPath: q:\install\qt-4.8.4\demos