出口手续往往是一些数据需求,学习文本导出到今天pdf文件.主要用于QPrinter,QPainter TextEditToPdf::TextEditToPdf(QWidget *parent, Qt::WFlags flags) : QDialog(parent, flags) { ui.setupUi(this); int ret = connect(ui.m_pExportBtn,SIGNAL(clicked()),this,SLOT(exportSlot())); } TextEditTo…