技术
文章平均质量分 87
微光呀
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sqlite数据库的常用语句(qt)
参考资料:https://www.w3school.com.cn/sql/sql_intro.asp 注意在 .pro文件中加上: QT += sql #include <QApplication> #include <QtSql> #include <QtDebug> int main( int argc, char **argv ) { QApplication app( argc, argv ); /*************************原创 2020-09-29 19:42:27 · 410 阅读 · 0 评论 -
Jsoncpp在qt中的使用
我的demo,注意把相应头文件包含进来,不然容易报错 #include "widget.h" #include <QDebug> #include "json.h" #include<fstream> // istream ostream 是 的子类 #include<istream> using namespace std; Widget::Widget(QWidget *parent) : QWidget(parent) { jsonWrite原创 2020-09-27 21:38:49 · 427 阅读 · 0 评论 -
Qt翻译——简洁步骤
1、在 .pro 文件中注明生成的 .ts文件名称 TRANSLATIONS+=cn.ts\ en.ts 2、程序中要翻译的字段,用 tr(“字段”) 扩起来,不然qt识别不了 3、点击lupdate 生成 .ts 文件 4、将 .ts 文件放到 资源目录下,这样就可以直接在代码里看到 .ts 文件中的内容,并对其进行翻译。如图: 5、翻译好后,点击 lrelease 生成最终的 .qm 文件 6、使用翻译文件 声明QTranslator对象 QTranslator tr原创 2020-09-25 19:10:56 · 6273 阅读 · 1 评论 -
win10环境下qt 使用git(GitHub)来管理代码
原文链接:Qt Creator 中使用 Git / Github 侵删 注意: ——使用: git push origin master 将本地更改推送到远程master分支时 如果在github的remote上已经有了文件,比如readme文件,会出现错误, 此时应当先pull一下 ` git pull origin master 然后再进行: git push origin master ...原创 2020-09-21 15:37:59 · 1361 阅读 · 0 评论
分享