在HTML<body中加入leftmargin topmargin 具体实现方法如下: out<<QString("<body leftmargin=\"0\" topmargin=\"0\" >");