Qt pro中设置应用程序版本并在cpp中调用.pro 增加VERSION = 1.0.1DEFINES += APP_VERSION=\\\"$$VERSION\\\"当需要当前版本号时,直接使用APP_VERSION宏的值即可。https://blog.csdn.net/zjgo007/arti Read More
posted @ 2017-02-07 21:09 findumars Views(2458) Comments(0) Diggs(0)
使用方式如下 //设置皮肤样式 static void SetStyle(const QString &styleName) { QFile file(QString(":/image/%1.css").arg(styleName)); file.open(QFile::ReadOnly); QSt Read More
posted @ 2017-02-07 21:08 findumars Views(1371) Comments(0) Diggs(0)
在使用c/c++的connect函数时在前面写::connect()这样就可以解决了 Read More
posted @ 2017-02-07 20:39 findumars Views(1151) Comments(0) Diggs(0)
在做一个Qt项目的时候,完成上传文件时,通过fopen打开文件用来读时发现fopen不能打开中文的文件名,自己在网查找一下,解决方法如下 参考:http://weidaohang.org/wangluo/h/index.PHP?q=aHR0cDovL3d3dy5qYjUxLm5ldC9hcnRpY2 Read More
posted @ 2017-02-07 20:38 findumars Views(2920) Comments(0) Diggs(0)
最近接了个项目,合作的学长让用Qt写,而其中最重要的需求是将数据库的数据写入excel表格中和将excel的数据导入到数据库中,自己查阅了和多资料,最后决定使用qtxlsx开源库来操作excel,在编译这个库的时候自己花了很大的力气才搞定,写出来和大家分享一下 QTxlsx的开源库的下载地址:htt Read More
posted @ 2017-02-07 20:36 findumars Views(2966) Comments(0) Diggs(0)