#include #include #include #include #include #include #include #include #include #include "InkJetPrinter.h" #include "logo_form.h" #include "MyInputMethod.h" #include "mainwindow.h" #include #include #include #include #include "myinclude.h" #include "Public.h" #include "Log/filelogger.h" //#define SYS_CN /* 1. WenQuanYiMH_12_50.qpf2 是由 Zfull-GB_12_50(Zpix.ttf)在PCMAKEQPF软件下生成的,它包含较完整的字体库 nono 20160302 2. 基于WenQuanYiCN编越南语,中文通用字库 3. 基于WenQuanYiMicroHei编 普通版本字库 #git commit -am "测试提交新数据" #git push #git clone xiongnie@119.23.201.56:/var/repo_dir/QtUI.git #git pull xiongnie@119.23.201.56:/var/repo_dir/QtUI.git #git remote add origin git@github.com:username/Hello-World.git #git push origin master 将本地项目给提交到服务器中 #----------------------------------------------------------- #git pull 本地与服务器端同步 #----------------------------------------------------------------- #git push (远程仓库名) (分支名) 将本地分支推送到服务器上去。 #git push origin serverfix:awesomebranch git remote add origin xiongnie@119.23.201.56:/var/repo_dir/QRUIV53.git ### */ InkJetPrinter *pInkJectPrinter; MyInputMethod *myInputMethod; //#include //#include //#include int main(int argc, char *argv[]) { QApplication a(argc, argv,QApplication::GuiServer); QApplication::setStyle(QStyleFactory::create("Windows")); QFont f = a.font(); QString langurageFile; QFile file(SYS_ROOT_DIR"UseEn"); if(file.exists()) { #ifdef VNLG QString langurageType = Public::ReadLanguageName();//"";// //qDebug()<<"La:"<load(langurageFile)==false){ translator->deleteLater(); QMessageBox::critical(0,("错误"),("无法加载中文翻译文件") + langurageFile); } else { QApplication::installTranslator(translator); } #ifndef Q_OS_WIN32 //QWSServer::setCurrentInputMethod(new MyInputMethod()); myInputMethod = new MyInputMethod(); QWSServer::setCurrentInputMethod(myInputMethod); #endif // 配置日志 QString configFileName = ":/conf/config.ini"; QSettings* logSettings = new QSettings(configFileName, QSettings::IniFormat, &a); logSettings->beginGroup("logging"); FileLogger* logger = new FileLogger(logSettings, 10000, &a); logger->installMsgHandler(); InkJetPrinter w; #ifndef Q_OS_WIN32 w.setWindowTitle(("比洋喷码")); w.setStyleSheet("QTabBar::tab {height:40px;} QTabBar::scroller{ width:40px;} QRadioButton::indicator{ width: 25px; height: 25px; } \ QCheckBox::indicator { width: 18px; height: 18px; }"); const QString style_main2="QTabBar::tab {height:35px;border-top-left-radius: 6px;border-top-right-radius: 6px;padding-left: 11px;padding-right: 11px;border: 2px solid #C4C4C3;} \ QTabBar::tab:selected {background-color: rgb(255, 170, 127);height:38px;}\ QTabBar::tab:!selected {margin-top: 3px;}\ QTabBar::scroller{ width:40px;} \ QRadioButton::indicator{ width: 25px; height: 25px; } \ QCheckBox::indicator { width: 18px; height: 18px; } "; w.setStyleSheet(style_main2); w.showFullScreen(); /*保证全屏,看不到系统标题*/ #endif w.show(); pInkJectPrinter = &w; return a.exec(); }