From 2e45ed87ada7eb2d38112ad7c52d45c0483b06d9 Mon Sep 17 00:00:00 2001 From: tianduanrui Date: Sun, 11 Nov 2018 16:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9D=83=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配置文件路径:工作目录 当前工作目录:应用程序所在目录。 按照LGPLv2.1的定义,用户如果修改了这些工作路径,需要开源经过修改的LibQQt。 --- src/frame/qqtapplication.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/frame/qqtapplication.cpp b/src/frame/qqtapplication.cpp index 418f8c3f..83337591 100644 --- a/src/frame/qqtapplication.cpp +++ b/src/frame/qqtapplication.cpp @@ -41,7 +41,7 @@ QQtApplication::QQtApplication ( int& argc, char** argv ) : QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, CONFIG_PATH ); QSettings::setPath ( QSettings::IniFormat, QSettings::SystemScope, CONFIG_PATH ); - /*程序中,需要更改语言,可以通过qqtApp->setLanguage实现。languageChanged信号连接到每个页面的刷新语言的函数,一般会在这个槽函数里调用ui->retranslateUI()*/ + /*程序中,需要更改语言,可以通过qqtApp->setLanguage实现。languageChanged信号连接到每个页面的刷新语言的槽函数,一般会在槽函数里调用ui->retranslateUi(this)*/ qqtApp = this; /*这里是个方便,因为配置文件默认在运行目录.*/ @@ -51,10 +51,13 @@ QQtApplication::QQtApplication ( int& argc, char** argv ) : QDir::setCurrent ( qApp->applicationDirPath() ); #endif - pline() << "app root:" << qApp->applicationDirPath(); - pline() << "app work root:" << QDir::currentPath(); + qDebug() << "GengZhan (TM) QQt应用程序框架中间件"; + qDebug() << "Copyright (C) 2017-2018 山东耕战智能设备有限公司。保留所有权利。"; + pline() << "Qt version:" << QT_VERSION_STR; pline() << "LibQQt version:" << STR ( QQT_VERSION ); + pline() << "App root:" << qApp->applicationDirPath(); + pline() << "App work root:" << QDir::currentPath(); #ifdef __EMBEDDED_LINUX__ pline() << "QTDIR:" << QProcessEnvironment::systemEnvironment().value ( "QTDIR" );