首页 开发技术 C++     /    Qt操作Excel

Qt操作Excel

上传者: qq_24282081 | 上传时间:2023/12/6 10:12:12 | 文件大小:12.87MB | 文件类型:rar
Qt操作Excel
*该类通过COM来操作excel,主要使用QAxObject以及ExcelVBA,须在.pro文件中添加“QT+=axcontainer”**Excel的层次结构为excel应用程序->工作簿->工作表->单元格*一个类对象可以创建多个工作簿,每个工作簿可以操作多张工作表**在新线程中使用要单独初始化COM,OleInitialize(0);**使用流程:创建类对象->创建/打开工作簿->添加/打开/删除工作表->添加表信息->关闭工作簿->删除工作簿->关闭excel

文件下载

资源详情

[{"title":"(53个子文件12.87MB)Qt操作Excel","children":[{"title":"testQWord","children":[{"title":"testQWord.vcxproj.user <span style='color:#111;'>619B</span>","children":null,"spread":false},{"title":"Makefile.Debug <span style='color:#111;'>38.31KB</span>","children":null,"spread":false},{"title":"testQWord.pro <span style='color:#111;'>423B</span>","children":null,"spread":false},{"title":"testQWord.suo <span style='color:#111;'>13.00KB</span>","children":null,"spread":false},{"title":"testQWord.sdf <span style='color:#111;'>18.08MB</span>","children":null,"spread":false},{"title":"widget.h <span style='color:#111;'>618B</span>","children":null,"spread":false},{"title":"Win32","children":[{"title":"Debug","children":[{"title":"CL.write.1.tlog <span style='color:#111;'>2.32KB</span>","children":null,"spread":false},{"title":"qexcel.obj <span style='color:#111;'>483.45KB</span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'>98.28KB</span>","children":null,"spread":false},{"title":"custombuild.read.1.tlog <span style='color:#111;'>336B</span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'>702B</span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'>5.87KB</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>68.00KB</span>","children":null,"spread":false},{"title":"testQWord.lastbuildstate <span style='color:#111;'>52B</span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'>818B</span>","children":null,"spread":false},{"title":"testQWord.log <span style='color:#111;'>3.51KB</span>","children":null,"spread":false},{"title":"testQWord.exe.intermediate.manifest <span style='color:#111;'>638B</span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'>3.23KB</span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'>4.19KB</span>","children":null,"spread":false},{"title":"moc_widget.obj <span style='color:#111;'>71.77KB</span>","children":null,"spread":false},{"title":"custombuild.write.1.tlog <span style='color:#111;'>378B</span>","children":null,"spread":false},{"title":"custombuild.command.1.tlog <span style='color:#111;'>1.56KB</span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'>244B</span>","children":null,"spread":false},{"title":"testQWord.vcxprojResolveAssemblyReference.cache <span style='color:#111;'>713B</span>","children":null,"spread":false},{"title":"testQWord.write.1.tlog <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'>1020.00KB</span>","children":null,"spread":false},{"title":"widget.obj <span style='color:#111;'>163.12KB</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"widget.ui <span style='color:#111;'>1.95KB</span>","children":null,"spread":false},{"title":"qexcel.h <span style='color:#111;'>10.82KB</span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'>37.32KB</span>","children":null,"spread":false},{"title":"testQWord.sln <span style='color:#111;'>884B</span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'>175B</span>","children":null,"spread":false},{"title":"GeneratedFiles","children":[{"title":"Release","children":null,"spread":false},{"title":"ui_widget.h <span style='color:#111;'>3.96KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"moc_widget.cpp <span style='color:#111;'>4.27KB</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"debug","children":[{"title":"testQWord.ilk <span style='color:#111;'>2.06MB</span>","children":null,"spread":false},{"title":"testqword.pdb <span style='color:#111;'>3.29MB</span>","children":null,"spread":false},{"title":"qexcel.obj <span style='color:#111;'>484.66KB</span>","children":null,"spread":false},{"title":"excel.xlsx <span style='color:#111;'>9.93KB</span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'>67.79KB</span>","children":null,"spread":false},{"title":"testQWord.exe.embed.manifest <span style='color:#111;'>638B</span>","children":null,"spread":false},{"title":"testQWord.exe_manifest.rc <span style='color:#111;'>103B</span>","children":null,"spread":false},{"title":"moc_widget.obj <span style='color:#111;'>71.10KB</span>","children":null,"spread":false},{"title":"testQWord.exe_manifest.res <span style='color:#111;'>704B</span>","children":null,"spread":false},{"title":"testQWord.exe <span style='color:#111;'>402.50KB</span>","children":null,"spread":false},{"title":"widget.obj <span style='color:#111;'>145.37KB</span>","children":null,"spread":false}],"spread":false},{"title":"Makefile <span style='color:#111;'>20.54KB</span>","children":null,"spread":false},{"title":"qexcel.cpp <span style='color:#111;'>17.28KB</span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"testqword-7e26ab7d","children":[{"title":"testqword-6f3f6fa8.ipch <span style='color:#111;'>51.00MB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"widget.cpp <span style='color:#111;'>1.16KB</span>","children":null,"spread":false},{"title":"testQWord.vcxproj.filters <span style='color:#111;'>3.21KB</span>","children":null,"spread":false},{"title":"testQWord.vcxproj <span style='color:#111;'>13.32KB</span>","children":null,"spread":false},{"title":"testQWord.pro.user <span style='color:#111;'>17.75KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • qq_49830834:
    没法运行,垃圾2021-02-05
  • yulinxx:
    可行基础操作2019-07-11

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明