QT输出多页PDF文档

上传者: 44322043 | 上传时间: 2023-07-04 15:27:29 | 文件大小: 13.34MB | 文件类型: RAR
在使用QT开发软件时,难免遇到需要将软件的输出信息输出到PDF文档中,对于没有使用过QT导出PDF的人遇到这样的情况,需要先查资料学习QT导出PDF的方法,会浪费一部分时间。此列使用简洁的代码描述实现QT导出多页PDF,简单易懂,可快速助于学习。 其大致原理是使用QPainter在QPrinter的区域中绘制文字、图片、表格、图形等类容,并通过新建页实现多页绘制,最终以PDF格式导出为文件。

文件下载

资源详情

[{"title":"( 62 个子文件 13.34MB ) QT输出多页PDF文档","children":[{"title":"PrintPDF","children":[{"title":"PrintOutPDF","children":[{"title":"PrintOutPDF.pro.user <span style='color:#111;'> 21.89KB </span>","children":null,"spread":false},{"title":"outputpdf.h <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"outputpdf.cpp <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"outputpdf.ui <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"PrintOutPDF.pro <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false}],"spread":true},{"title":"PrintOutPDFRelease","children":[{"title":"Makefile.Debug <span style='color:#111;'> 45.96KB </span>","children":null,"spread":false},{"title":"ui_outputpdf.h <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"Makefile.Release <span style='color:#111;'> 45.95KB </span>","children":null,"spread":false},{"title":"debug","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 35.34KB </span>","children":null,"spread":false},{"title":"release","children":[{"title":"main.obj <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"moc_outputpdf.cpp <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"PrintOutPDF.exe <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"moc_outputpdf.obj <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"outputpdf.obj <span style='color:#111;'> 21.87KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"PrintPDFexe","children":[{"title":"iconengines","children":[{"title":"qsvgicon.dll <span style='color:#111;'> 34.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"libEGL.dll <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"Qt5Svg.dll <span style='color:#111;'> 265.62KB </span>","children":null,"spread":false},{"title":"imageformats","children":[{"title":"qwbmp.dll <span style='color:#111;'> 24.62KB </span>","children":null,"spread":false},{"title":"qjpeg.dll <span style='color:#111;'> 363.12KB </span>","children":null,"spread":false},{"title":"qtiff.dll <span style='color:#111;'> 337.62KB </span>","children":null,"spread":false},{"title":"qtga.dll <span style='color:#111;'> 25.62KB </span>","children":null,"spread":false},{"title":"qico.dll <span style='color:#111;'> 31.12KB </span>","children":null,"spread":false},{"title":"qgif.dll <span style='color:#111;'> 31.12KB </span>","children":null,"spread":false},{"title":"qicns.dll <span style='color:#111;'> 39.12KB </span>","children":null,"spread":false},{"title":"qsvg.dll <span style='color:#111;'> 26.62KB </span>","children":null,"spread":false},{"title":"qwebp.dll <span style='color:#111;'> 424.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"platforms","children":[{"title":"qwindows.dll <span style='color:#111;'> 1.17MB </span>","children":null,"spread":false}],"spread":true},{"title":"PrintOutPDF.exe <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"D3Dcompiler_47.dll <span style='color:#111;'> 3.31MB </span>","children":null,"spread":false},{"title":"Qt5Core.dll <span style='color:#111;'> 5.05MB </span>","children":null,"spread":false},{"title":"Qt5PrintSupport.dll <span style='color:#111;'> 267.62KB </span>","children":null,"spread":false},{"title":"opengl32sw.dll <span style='color:#111;'> 15.25MB </span>","children":null,"spread":false},{"title":"translations","children":[{"title":"qt_fi.qm <span style='color:#111;'> 175.72KB </span>","children":null,"spread":false},{"title":"qt_fr.qm <span style='color:#111;'> 162.26KB </span>","children":null,"spread":false},{"title":"qt_gd.qm <span style='color:#111;'> 185.13KB </span>","children":null,"spread":false},{"title":"qt_ru.qm <span style='color:#111;'> 194.38KB </span>","children":null,"spread":false},{"title":"qt_ko.qm <span style='color:#111;'> 128.18KB </span>","children":null,"spread":false},{"title":"qt_ca.qm <span style='color:#111;'> 179.71KB </span>","children":null,"spread":false},{"title":"qt_pl.qm <span style='color:#111;'> 159.15KB </span>","children":null,"spread":false},{"title":"qt_de.qm <span style='color:#111;'> 209.03KB </span>","children":null,"spread":false},{"title":"qt_bg.qm <span style='color:#111;'> 161.45KB </span>","children":null,"spread":false},{"title":"qt_uk.qm <span style='color:#111;'> 154.52KB </span>","children":null,"spread":false},{"title":"qt_en.qm <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"qt_lv.qm <span style='color:#111;'> 150.00KB </span>","children":null,"spread":false},{"title":"qt_hu.qm <span style='color:#111;'> 156.72KB </span>","children":null,"spread":false},{"title":"qt_sk.qm <span style='color:#111;'> 122.81KB </span>","children":null,"spread":false},{"title":"qt_cs.qm <span style='color:#111;'> 170.60KB </span>","children":null,"spread":false},{"title":"qt_ja.qm <span style='color:#111;'> 126.86KB </span>","children":null,"spread":false},{"title":"qt_da.qm <span style='color:#111;'> 170.02KB </span>","children":null,"spread":false},{"title":"qt_zh_TW.qm <span style='color:#111;'> 124.84KB </span>","children":null,"spread":false},{"title":"qt_ar.qm <span style='color:#111;'> 156.26KB </span>","children":null,"spread":false},{"title":"qt_he.qm <span style='color:#111;'> 135.43KB </span>","children":null,"spread":false},{"title":"qt_es.qm <span style='color:#111;'> 161.29KB </span>","children":null,"spread":false},{"title":"qt_it.qm <span style='color:#111;'> 157.35KB </span>","children":null,"spread":false}],"spread":false},{"title":"styles","children":[{"title":"qwindowsvistastyle.dll <span style='color:#111;'> 125.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"libGLESv2.dll <span style='color:#111;'> 2.73MB </span>","children":null,"spread":false},{"title":"Qt5Widgets.dll <span style='color:#111;'> 4.38MB </span>","children":null,"spread":false},{"title":"printsupport","children":[{"title":"windowsprintersupport.dll <span style='color:#111;'> 43.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"Qt5Gui.dll <span style='color:#111;'> 5.70MB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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