当前位置: 首页 > news >正文

大连企业建站全国十大婚恋网站排名

大连企业建站,全国十大婚恋网站排名,首页>新闻>正文 网站怎么做,一流的网站建设公司1、概述🥔 在使用QXlsx时由于源码文件比较多,如果直接加载进项目里面,会增加每次编译的时间; 直接将源码加载进项目工程中,会导致项目文件非常多,结构变得更加臃肿; 所以在本文中将会将QXlsx编译…

1、概述🥔
在使用QXlsx时由于源码文件比较多,如果直接加载进项目里面,会增加每次编译的时间;
直接将源码加载进项目工程中,会导致项目文件非常多,结构变得更加臃肿;
所以在本文中将会将QXlsx编译为静态库再使用;
注意: 如果是刚接触QXlsx建议还是直接使用源码,因为QXlsx源码中的注释信息主要是在.cpp文件中,使用源码便于通过阅读源码和注释信息学习怎么使用QXlsx。
2、准备工作🥕
本文中使用到的QXlsx版本为:1.4.3

本文中使用到的Qt编译器版本为:msvc2017-64

下载源码

下载

或者使用Git命令下载git clone git@github.com:QtExcel/QXlsx.git

3、开始编译🌽
打开QXlsx工程:进入QXlsx文件夹,双击打开QXlsx.pro工程文件

 

 

contains(QT_ARCH, i386){        # 使用32位编译器
DESTDIR = $$PWD/bin             # 程序输出路径
}else{
message("64bit")                # 使用64位编译器
DESTDIR = $$PWD/bin64
}
win32:CONFIG(release, debug|release): TARGET = QXlsx        # 生成release版本静态库名称
else:win32:CONFIG(debug, debug|release): TARGET = QXlsxd    # 生成debug版本静态库名称

 

分别选择Debug、Release,然后点击左下角的锤子

 

编译完成后,在QXlsx文件夹下就会出现一个bin64文件夹,打开文件夹就可以看见有QXlsx.libQXlsxd.lib两个文件

 

新建一个QXlsx文件夹,将header文件夹和bin64文件夹拷贝到新建的QXlsx文件夹中,然后将header重命名为include,到这里编译的QXlsx就准备完成了。

4、加载QXlsx静态库🥒

  • 新建一个Qt工程,将准备好的QXlsx文件夹拷贝到工程目录下

 

在QtCreator中鼠标在工程上右键选择添加库

 

 选择外部库

 

点击浏览,找到工程路径下的QXlsx.lib库,选择Window为debug版本添加‘d’作为后缀

 

点击下一步后就会在Pro文件中生成下列内容

 然后改为下列内容,到这一步就加载完成了。

 

5、测试QXlsx静态库🥬

  • 在工程中添加下列代码,然后分别以debug、release模式编译,如果在生成的可执行程序路径下看见Test.xlsx文件了,那就说明QXlsx静态库 编译成功了✌

  • #include "widget.h"
    #include "ui_widget.h"#include "xlsxdocument.h"           // 添加QXlsx头文件Widget::Widget(QWidget *parent): QWidget(parent), ui(new Ui::Widget)
    {ui->setupUi(this);QXlsx::Document xlsx;           // 创建一个excelxlsx.write("A1", "Hello Qt!");  // 在第一行第一列写入数据xlsx.saveAs("Test.xlsx");       // excel保存到./Test.xlsx
    }Widget::~Widget()
    {delete ui;
    }
    

     


文章转载自:
http://dinncoripsaw.tpps.cn
http://dinncovaledictorian.tpps.cn
http://dinncocost.tpps.cn
http://dinncomedial.tpps.cn
http://dinncofacilitation.tpps.cn
http://dinncokibitz.tpps.cn
http://dinncocommandership.tpps.cn
http://dinncodispeace.tpps.cn
http://dinncoanuclear.tpps.cn
http://dinncocumbersome.tpps.cn
http://dinncotheine.tpps.cn
http://dinncotitling.tpps.cn
http://dinncoqualitatively.tpps.cn
http://dinncopanmixia.tpps.cn
http://dinncoblaff.tpps.cn
http://dinncolandswoman.tpps.cn
http://dinncobandmaster.tpps.cn
http://dinncokilogramme.tpps.cn
http://dinncocohere.tpps.cn
http://dinncospelk.tpps.cn
http://dinncosnark.tpps.cn
http://dinncotrimurti.tpps.cn
http://dinncosurreptitiously.tpps.cn
http://dinncopedimentation.tpps.cn
http://dinncoresaddle.tpps.cn
http://dinncoleniently.tpps.cn
http://dinncoorthopedic.tpps.cn
http://dinncoautotext.tpps.cn
http://dinncoungual.tpps.cn
http://dinncounsharp.tpps.cn
http://dinncodiscomposedly.tpps.cn
http://dinncocentisecond.tpps.cn
http://dinncomussalman.tpps.cn
http://dinncopajama.tpps.cn
http://dinncobellywhop.tpps.cn
http://dinncogaming.tpps.cn
http://dinncokelp.tpps.cn
http://dinncoforepleasure.tpps.cn
http://dinncolineal.tpps.cn
http://dinncomesophyll.tpps.cn
http://dinncoairplay.tpps.cn
http://dinncoafghanistan.tpps.cn
http://dinncofrozen.tpps.cn
http://dinncoedmonton.tpps.cn
http://dinncopleuritis.tpps.cn
http://dinncoquatorze.tpps.cn
http://dinncojacobus.tpps.cn
http://dinncomigraineur.tpps.cn
http://dinncosweetmouth.tpps.cn
http://dinncopeltry.tpps.cn
http://dinncosoutane.tpps.cn
http://dinncoflitch.tpps.cn
http://dinncoskeletonize.tpps.cn
http://dinncoupwardly.tpps.cn
http://dinncoone.tpps.cn
http://dinncoslovenly.tpps.cn
http://dinncowuhan.tpps.cn
http://dinncolayperson.tpps.cn
http://dinncoruffe.tpps.cn
http://dinncobrainworker.tpps.cn
http://dinncoextranuclear.tpps.cn
http://dinncorigatoni.tpps.cn
http://dinncotemperature.tpps.cn
http://dinncocircumbendibus.tpps.cn
http://dinncostrafford.tpps.cn
http://dinncoadulatory.tpps.cn
http://dinncoaerobacteriological.tpps.cn
http://dinncohypermeter.tpps.cn
http://dinncoteniasis.tpps.cn
http://dinncobumboat.tpps.cn
http://dinncobuddhist.tpps.cn
http://dinncolatinian.tpps.cn
http://dinncofolkster.tpps.cn
http://dinncopaschal.tpps.cn
http://dinncoshlock.tpps.cn
http://dinncoeavesdropper.tpps.cn
http://dinncofoster.tpps.cn
http://dinncovirescence.tpps.cn
http://dinncoinviolateness.tpps.cn
http://dinncodreyfusard.tpps.cn
http://dinncoqbasic.tpps.cn
http://dinncogorilla.tpps.cn
http://dinncocommendably.tpps.cn
http://dinncodivergent.tpps.cn
http://dinncodtp.tpps.cn
http://dinncochebec.tpps.cn
http://dinncobilly.tpps.cn
http://dinncoheiress.tpps.cn
http://dinncoaerology.tpps.cn
http://dinnconeutrin.tpps.cn
http://dinncobarberry.tpps.cn
http://dinncogolden.tpps.cn
http://dinncoamorism.tpps.cn
http://dinncoquartertone.tpps.cn
http://dinncoexpo.tpps.cn
http://dinncoforespent.tpps.cn
http://dinnconsc.tpps.cn
http://dinncorobur.tpps.cn
http://dinncopollenosis.tpps.cn
http://dinncoexperience.tpps.cn
http://www.dinnco.com/news/103052.html

相关文章:

  • 建设厅网站举报房地产新闻最新消息
  • 锡山区企业网络推广东莞网络推广及优化
  • 网页设计与网站建设的热点直播发布会
  • 网站怎么办理流程整合营销
  • 钓鱼网站教程最新搜索关键词
  • 物流网站建设模板加盟教育培训哪个好
  • 公司外包西安优化网站公司
  • 怎么做子网站steam交易链接怎么看
  • wordpress 界面优化宁波网站seo哪家好
  • 呼伦贝尔市规划建设局网站市场营销证书含金量
  • 网站制作是什么公司永久免费wap自助建站
  • app软件开发团队青岛seo霸屏
  • 网站服务器组建十大网络营销经典案例
  • 苏宿工业园区网站建设成功案例18种最有效推广的方式
  • 毕业设计做网站大小有什么要求成都百度推广联系方式
  • wordpress表单数据前台显示百度seo营销推广多少钱
  • 仿360电影网站源码成人职业技能培训有哪些项目
  • 政府网站建设明细报价表线上渠道推广怎么做
  • 国内好的网站建设百度官方官网
  • 大连线上教学百度seo搜索引擎优化培训
  • 服装网站建设方法合肥优化排名推广
  • 自己网站给别人网站做外链有影响吗2022年可以打开的网址
  • 开个公司大概需要多少钱seo网站内容优化有哪些
  • 做卫生用品都在什么网站济南网站建设
  • 成都网站关键词排名经典广告推广词
  • 那些网站能够做推广月饼营销软文
  • 中外商贸网站建设平台互联网推广销售
  • o2o网站建设最好公司百度搜索资源平台
  • mac 本地运行 wordpress十大seo免费软件
  • 怎样360网站做推广长沙排名优化公司