,可以尝试使用这个方法,下面简单介绍一下实现的过程。...void printDocument(QPrinter *printer);
打印版式设置
横向打印和纵向打印;
打印方向 Portrait 纵向,Landscape:横向
使用如下函数设置
enum...,y1,x2,y2;
painter->setFont(QFont("宋体", 10));
//绘制表格列单元线
for (int i = 1; i < m_colNum; i...+ m_colWidth*i;
y2 = m_starty + m_height;
painter->drawLine(x1, y1, x2, y2);..., y1, x2, y2);
}
//表最下面的备注
painter->drawText(QRect(m_startx,m_starty+m_height+2,450,25),