2014年6月24日

git修改远程方法

摘要: gitremoteset-urloriginhttps://192.168.9.108/git/qt.git 阅读全文

posted @ 2014-06-24 14:58 涛涛宝贝 阅读(141) 评论(0) 推荐(0) 编辑

2014年6月20日

ubuntu '/dev/video0': 2, 没有那个文件或目录

摘要: UBUNTU安装中心搜索UVC 安装以后即可 阅读全文

posted @ 2014-06-20 09:20 涛涛宝贝 阅读(1478) 评论(0) 推荐(0) 编辑

2014年5月15日

git出现error: bad signature fatal: index file corrupt

摘要: git出现error: bad signature fatal: index file corruptgit的index被损坏解决方法:需要重新生成index文件,rm -f .git/indexgit reset --mixed HEAD 阅读全文

posted @ 2014-05-15 10:17 涛涛宝贝 阅读(1718) 评论(0) 推荐(0) 编辑

2014年4月14日

华为号

该文被密码保护。 阅读全文

posted @ 2014-04-14 10:34 涛涛宝贝 阅读(1) 评论(0) 推荐(0) 编辑

2014年4月1日

git 修改分支名

摘要: git branch -m curBranchName branchName 阅读全文

posted @ 2014-04-01 18:06 涛涛宝贝 阅读(417) 评论(0) 推荐(0) 编辑

2014年3月6日

qml国际化

摘要: http://qt-project.org/wiki/How_to_do_dynamic_translation_in_QMLqml internationalization 步骤 一、对需要国际化的地方加上qsTr eg. text: qsTr("Welcome to china!"); 二、生成ts文件: ts文件生成方法: 在Qt Command Prompt命令行中使用lrelease生成 eg. lupdate main.qml -ts t1_fr.ts 可以同时对qml文件生成多种语言的ts文件 eg. lup... 阅读全文

posted @ 2014-03-06 18:00 涛涛宝贝 阅读(1413) 评论(0) 推荐(0) 编辑

2014年3月5日

qml listmodel internationalization (国际化)

摘要: listmodel 进行国际化时ListModel{id:listModel_2ListElement{listModel_itemName:qsTr("NONE")}ListElement{listModel_itemName:qsTr("PDC")}ListElement{listModel_itemName:qsTr("CAM")}ListElement{listModel_itemName:qsTr("PDC+CAM")}}调试会出现ListElement: cannot use script for pr 阅读全文

posted @ 2014-03-05 15:37 涛涛宝贝 阅读(1051) 评论(0) 推荐(0) 编辑

2014年2月26日

根据进程获得exe名称

摘要: #include//定义出错类型,列举所有出错提示框的信息const TCHAR *szErrorInfo[] = { _T("致命的应用程序错误"), _T("应用程序错误"), _T("Fatal Application Error"), _T("Application Error"), NULL,};int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, ... 阅读全文

posted @ 2014-02-26 15:22 涛涛宝贝 阅读(407) 评论(0) 推荐(0) 编辑

2013年11月6日

Qt加载lib文件

摘要: lib文件存放在sqlite文件夹下,sqlite和.pro在同一个目录下 lib是Sqlite.lib 加载Sqlite.lib在.pro文件中LIBS+=-L.\sqlite #-L 表示路径 LIBS+=-lSqlite #-l 后面是lib名。名字后面不能加.lib或者LIBS+=-L.\sqlite\Sqlite.lib或者LIBS+=-L.\sqlite-lSqlite 阅读全文

posted @ 2013-11-06 18:06 涛涛宝贝 阅读(1408) 评论(0) 推荐(0) 编辑

2013年9月26日

int转QString的两种方法

摘要: QString::number(int );QString("%1").arg(int ); 阅读全文

posted @ 2013-09-26 11:24 涛涛宝贝 阅读(1866) 评论(0) 推荐(0) 编辑

导航